Purpose
This skill helps you:- Implement code from task documents (
task/TASK-FASE-{N}.md) one task at a time - Follow test-first development: write failing tests, then implementation, then verify
- Create atomic commits with conventional commit messages from task definitions
- Track progress by marking completed tasks in task documents
- Verify implementation satisfies acceptance criteria before committing
- Enforce spec traceability — every code artifact traces to UC, ADR, INV, REQ
- Pause on blockers, ambiguities, or design issues instead of guessing
When to use
Use this skill when:- Task documents exist in
task/TASK-FASE-{N}.md(generated by task-generator) - You want to implement a specific FASE or specific task(s)
- You want to resume implementation from the last incomplete task
- You want to verify that existing implementation matches task acceptance criteria
Core principles
Spec-driven construction
Implement exactly what the spec says. Each line of code is traceable to UC, ADR, INV, or REQ.One task = one commit
Test-first construction (TDD)
Pause on ambiguity
Incremental integration
Defensive construction
Execution phases
Context loading and inventory
Load all necessary context:
- Read
CLAUDE.mdfor tech stack, conventions, structure - Read
spec/domain/01-GLOSSARY.mdfor ubiquitous language - Read domain model: entities, value objects, states, invariants
- Read FASE file:
plan/fases/FASE-{N}-*.md - Read plan:
plan/PLAN-FASE-{N}.md - Read task document:
task/TASK-FASE-{N}.md - Identify all specs referenced in Refs fields of tasks
- Build context map: which UCs, ADRs, INVs, REQs apply
Readiness gates
Verify prerequisites:
- Task document exists
- Plan artifact exists
- FASE file exists
- Glossary exists
- All referenced specs exist
- Git working tree is clean
- Previous FASE tasks complete (if FASE > 0)
- Tech stack tools available
Task selection and ordering
Parse task document extracting all tasks. Identify completed (
[x]) and pending ([ ]) tasks. Read dependencies from task document. Build execution order respecting dependencies, internal phases, and [P] markers.Pre-implementation design
For each task, before writing code:
- Read specs referenced in Refs field
- Extract contracts (request/response schemas, event schemas)
- Identify applicable invariants (INV-*)
- Review state machines if task touches stateful entity
- Analyze integration with previous and subsequent tasks
- Detect ambiguities (if spec has [DECISION PENDING] → PAUSE)
- Plan structure: which files to create/modify, imports, dependencies
Test-first construction
For each task with testable component:
- Create test file in correct location
- Write tests for each acceptance criterion
- Write tests for exception flows from referenced UCs
- Write tests for applicable invariants
- Execute tests → verify they FAIL (RED phase)
- If tests pass without implementation → tests are wrong → fix
Implementation
Write the minimal solution that satisfies acceptance criteria:
- Follow contracts exactly: schemas, types, routes, HTTP methods
- Apply invariants as validations in code
- Handle errors according to UC exception flows
- Use ubiquitous language from glossary in names
- Execute tests → verify they PASS (GREEN phase)
- Refactor if necessary keeping tests green (REFACTOR phase)
- Minimize complexity: simple, readable code
- Construct for verification: facilitate testing and debugging
- Reuse assets: use frameworks, libraries, patterns from plan
- Apply standards: follow project coding standards
- Defensive programming: validate inputs at system boundaries
Quality verification
Execute review checklist from task before committing:
- Run review checklist from Review field
- Execute complete test suite (not just this task’s tests)
- Verify build — project compiles without errors
- Verify lint/format — no relevant warnings
- Cross-check against spec — implementation meets each acceptance criterion
Atomic commit and SHA capture
Create atomic commit with exact message from task:
- Stage only task files — never
git add -A - Use message from Commit field verbatim
- Add footer with Refs and Task ID
- Verify commit contains exactly expected files
- Capture SHA:
git rev-parse --short HEAD - Store mapping: TASK-F- →
- Mark task as complete in
task/TASK-FASE-{N}.md:- [ ]→- [x]
Progress tracking and task loop
Update progress and continue:
- Update checkbox in task document
- Report progress to user (include SHA)
- Evaluate next task:
- If pending tasks with complete dependencies → continue
- If blocked tasks → report missing dependencies
- If all internal phase tasks complete → place checkpoint
- If all FASE tasks complete → go to FASE checkpoint
- Loop: return to pre-implementation design for next task
What this stage produces
The task implementer generates:- Implementation code in
src/directory following project structure - Test code in
tests/directory (unit, integration, BDD) - Updated task documents with checkboxes marked
[x]for completed tasks - Git commits — one atomic commit per task with conventional commit message
- Git tags — checkpoint tags for each internal phase and complete FASE
- Implementation feedback (optional) at
feedback/IMPL-FEEDBACK-FASE-{N}.mdfor spec-level issues found during implementation - Implementation session report summarizing progress, commits, pauses, and next steps
Implementation feedback protocol
When a pause condition reveals a spec-level issue (ambiguity, conflict, missing behavior, incorrect contract), the implementer generates a feedback file:Feedback file: feedback/IMPL-FEEDBACK-FASE-{N}.md
One file per FASE, appended as issues are discovered:
Feedback workflow
- On PAUSE, evaluate if issue is spec-level or implementation-level
- If spec-level, append entry to feedback file
- If BLOCKER, mark task as
[!](blocked) and skip to next non-dependent task - If WARNING, document workaround, proceed with implementation, flag for later reconciliation
- Continue implementing non-blocked tasks while feedback is pending
- At session end, include feedback summary in implementation session report
- User runs
req-change --file feedback/IMPL-FEEDBACK-FASE-{N}.mdto process spec corrections
Real example
Task execution:Pipeline integration
This skill is Step 6 (final) of the SDD pipeline:task/TASK-FASE-{N}.md, plan/PLAN-FASE-{N}.md, plan/fases/FASE-{N}-*.md, all specs referenced in task Refs fields
Output: Implementation code in src/, test code in tests/, updated task documents with [x] checkboxes, atomic git commits, checkpoint tags, optional feedback files
Final step: System is implemented incrementally, FASE by FASE, with each commit traceable to specifications