SDD Exec
Implement approved tasks while preserving traceability to requirements and design.
Purpose
Execution turns approved specs into code. The agent must stay within the task scope, follow project conventions, verify the result, and update task status only when evidence exists. Because this edits production code, use it only after an explicit user request to execute or implement approved SDD work.
Workflow
-
Load the SDD reference.
- Read
../_shared/references/sdd-practical.md. - Apply the Language Policy: respond and write artifacts in the user's initial chat language while keeping skill instructions and templates in EN-US.
- Load relevant
.ai/steering/*.mdfiles when present, especiallytech-stack.md,conventions.md, andprinciples.md.
- Read
-
Locate the feature and task, then validate the gate.
- Use
.ai/sdd/specs/NNN-feature-name/. - Read
.status. - Validate
.statusagainst the official status values fromsdd-practical.md. - If
.statusis missing or invalid, stop and ask the user to repair it; do not infer task approval fromtasks.mdexisting. - Block if status is not
tasks:approvedorimplementation:in-progress, unless the user explicitly requests a spike. - If blocked, report the current status and recommend
/skill:sdd-tasksapproval as the next safe action. - Read
requirements.md,design.md,tasks.md, anddecisions.mdif present. - Identify the requested task. If no task is specified, select the first incomplete task whose dependencies are complete and confirm with the user.
- Use
-
Reconcile workspace state.
- Inspect current files before editing.
- Do not overwrite user changes.
- If unexpected edits overlap with the task, stop and ask how to proceed.
-
Build an execution checklist.
- Extract task work items, acceptance criteria, file targets, and verification items.
- Print the checklist before editing.
- Set
.statustoimplementation:in-progresswhen starting implementation fromtasks:approved. - If already
implementation:in-progress, preserve that status while continuing incomplete approved tasks.
-
Implement.
- Keep scope limited to the selected task.
- Follow existing project patterns and real dependency APIs.
- Add or update tests when behavior changes or regressions are possible.
- Stop if requirements and design conflict; do not guess.
- Record any necessary spec change as a proposed update, not an implicit code divergence.
-
Verify.
- Run task-specific verification first when listed.
- Run the broad project verification command when available: lint, test, build, or the project-defined gate.
- If no automated verification exists, perform manual checks and state the limitation.
- Do not claim completion without fresh verification evidence.
-
Update tracking.
- Mark completed checklist items in
tasks.mdonly after evidence exists. - Mark the task complete only after implementation and verification pass.
- If all tasks are complete, set
.statustoimplementation:done. - Otherwise keep
.statusasimplementation:in-progress. - Update
.ai/sdd/INDEX.mdwith the current status when practical; if not updated, tell the user the index may be stale.
- Mark completed checklist items in
-
Report.
- Summarize files changed.
- Summarize requirements/design coverage.
- Include verification report with exact command, exit code, summary, and PASS/FAIL verdict.
- Suggest the next incomplete task or recommend review when all tasks are complete.
Verification Report Format
textVERIFICATION REPORT Claim: [claim] Command: [exact command or manual check] Exit code: [0/non-zero/not applicable] Output summary: [key result] Errors: [none or summary] Verdict: PASS/FAIL
Critical Rules
- Do not implement before
tasks:approved. - Do not infer task approval from file existence; require valid
.status. - Do not expand scope beyond the selected task.
- Do not mark work complete without verification evidence.
- Do not hide failing checks; report actual status.
- Do not update requirements or design silently during implementation.


