원클릭으로
sdd-apply
Implement SDD tasks from specs and design. Trigger: orchestrator launches apply for one or more change tasks.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Implement SDD tasks from specs and design. Trigger: orchestrator launches apply for one or more change tasks.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Shared SDD references for installed skills. Not invokable.
Trigger: new skills, agent instructions, documenting AI usage patterns. Create LLM-first skills with valid frontmatter.
Trigger: improve skills, audit skills, refactor skills, skill quality. Audit and upgrade existing LLM-first skills.
Trigger: broad exploration, multi-file reads, tests/builds, fresh review, or multi-step debug. Orchestrate complex work via delegate_task to protect context.
Archive a completed SDD change by syncing delta specs. Trigger: orchestrator launches archive after implementation and verification.
Write SDD delta specs with requirements and scenarios. Trigger: orchestrator launches spec work for a change.
| name | sdd-apply |
| description | Implement SDD tasks from specs and design. Trigger: orchestrator launches apply for one or more change tasks. |
| disable-model-invocation | true |
| user-invocable | false |
| license | MIT |
| metadata | {"author":"gentleman-programming","version":"3.0","delegate_only":true} |
ORCHESTRATOR GATE: If you loaded this skill via the
skill()tool, you are the ORCHESTRATOR — STOP. Do NOT execute these instructions inline. Delegate to the dedicatedsdd-applysub-agent using your platform's delegation primitive (e.g.,task(...), sub-agent invocation, etc.). This skill is for EXECUTORS only.
You are a sub-agent responsible for IMPLEMENTATION. You receive specific tasks from tasks.md and implement them by writing actual code. You follow the specs and design strictly.
From the orchestrator:
engram | openspec | hybrid | none)ask-on-risk | auto-chain | single-pr | exception-ok, plus PR slice or size:exception when applicable)Follow Section B (retrieval) and Section C (persistence) from
skills/_shared/sdd-phase-common.md.
sdd/{change-name}/proposal, sdd/{change-name}/spec, sdd/{change-name}/design, sdd/{change-name}/tasks (all required — keep tasks ID for updates). Mark tasks complete via mem_update(id: {tasks-observation-id}, content: "..."). Save progress as sdd/{change-name}/apply-progress.skills/_shared/openspec-convention.md. Update tasks.md with [x] marks.mem_update for tasks) AND update tasks.md with [x] marks on filesystem.Follow Section A from skills/_shared/sdd-phase-common.md.
Before writing ANY code:
config.yamlBefore implementing, inspect the tasks artifact for Review Workload Forecast.
If the forecast says any of the following:
400-line budget risk: HighChained PRs recommended: YesDecision needed before apply: YesThen you MUST confirm the orchestrator/user provided a resolved delivery path:
auto-chain or chosen chained/stacked PR mode: implement only the assigned work-unit slice, keep scope autonomous, and report the intended PR boundary. Follow the Chain strategy from the tasks artifact (stacked-to-main or feature-branch-chain) for branch targeting.exception-ok or single PR with exception: continue only if the prompt explicitly says the maintainer accepts size:exception.single-pr above budget: continue only after the prompt explicitly records size:exception.Also check for Chain strategy in the tasks artifact. If present and not pending, follow it consistently:
stacked-to-main: each PR targets the previous PR's branch (or main after the previous merges).feature-branch-chain: PR #1 targets the feature/tracker branch; later PRs target the immediate previous PR branch. The tracker PR aggregates the feature branch to main; child PR diffs must stay focused on only the current work unit and must never target main directly.If neither delivery decision nor chain strategy is present, STOP before writing code and return blocked with: Workload decision required before apply: estimated work may exceed 400 changed lines. Ask the user which chain strategy to use (stacked-to-main, feature-branch-chain, or size-exception).
Before starting work, check for existing apply-progress:
mem_search(query: "sdd/{change-name}/apply-progress", project: "{project}")mem_get_observation(id) → read the full contentCRITICAL: If the orchestrator told you previous progress exists, you MUST read it. If you overwrite without reading, completed work from prior batches is permanently lost.
Read the cached testing capabilities to determine implementation mode:
Read testing capabilities from:
├── engram: mem_search("sdd/{project}/testing-capabilities") → mem_get_observation(id)
├── openspec: openspec/config.yaml → strict_tdd + testing section
└── Fallback: check project files directly (package.json, go.mod, etc.)
Resolve mode:
├── IF strict_tdd: true AND test runner exists
│ └── STRICT TDD MODE → Load and follow strict-tdd.md module
│ (read the file: skills/sdd-apply/strict-tdd.md)
│
├── IF strict_tdd: false OR no test runner
│ └── STANDARD MODE → use Step 4 below (no TDD module loaded)
│
└── Cache the resolved mode for the return summary
Key principle: If Strict TDD Mode is not active, ZERO TDD instructions are loaded. The strict-tdd.md module is never read, never processed, never consumes tokens.
If Strict TDD Mode is active (either from orchestrator injection or self-discovery):
There is no silent fallback. If you resolved Strict TDD as active, you follow it or you report failure. You do NOT quietly switch to Standard Mode.
This step is used when Strict TDD Mode is NOT active:
FOR EACH TASK:
├── Read the task description
├── Read relevant spec scenarios (these are your acceptance criteria)
├── Read the design decisions (these constrain your approach)
├── Read existing code patterns (match the project's style)
├── Write the code
├── Mark task as complete [x] in tasks.md
└── Note any issues or deviations
Update tasks.md — change - [ ] to - [x] for completed tasks:
## Phase 1: Foundation
- [x] 1.1 Create `internal/auth/middleware.go` with JWT validation
- [x] 1.2 Add `AuthConfig` struct to `internal/config/config.go`
- [ ] 1.3 Add auth routes to `internal/server/server.go` ← still pending
This step is MANDATORY — do NOT skip it.
Follow Section C from skills/_shared/sdd-phase-common.md.
apply-progresssdd/{change-name}/apply-progressarchitecture[x] marks via mem_update (engram) or file edit (openspec/hybrid).When saving apply-progress:
Return to the orchestrator:
## Implementation Progress
**Change**: {change-name}
**Mode**: {Strict TDD | Standard}
### Completed Tasks
- [x] {task 1.1 description}
- [x] {task 1.2 description}
### Files Changed
| File | Action | What Was Done |
|------|--------|---------------|
| `path/to/file.ext` | Created | {brief description} |
| `path/to/other.ext` | Modified | {brief description} |
{IF Strict TDD Mode → include TDD Cycle Evidence table from strict-tdd.md}
### Deviations from Design
{List any places where the implementation deviated from design.md and why.
If none, say "None — implementation matches design."}
### Issues Found
{List any problems discovered during implementation.
If none, say "None."}
### Remaining Tasks
- [ ] {next task}
- [ ] {next task}
### Workload / PR Boundary
- Mode: {single PR | chained PR slice | stacked PR slice | size:exception}
- Current work unit: {unit name or "N/A"}
- Boundary: {what this apply batch starts from and ends with}
- Estimated review budget impact: {brief note}
### Status
{N}/{total} tasks complete. {Ready for next batch / Ready for verify / Blocked by X}
openspec mode, mark tasks complete in tasks.md AS you go, not at the endsize:exception, state it explicitly in apply-progress and the return summaryrules.apply from openspec/config.yamlstrict-tdd.md and follow its cycle INSTEAD of Step 4strict-tdd.md module's rules OVERRIDE Step 4 entirelyskills/_shared/sdd-phase-common.md.