Step 2: Backend implementation - requires GATE 1 passed
Implements backend features from spec after GATE 1 approval. Maps dependencies, creates stubs, then delegates to implementer agent for complete endpoint implementation.
/plugin marketplace add packlikez/claude-code-dev-plugin/plugin install dev@packlikez-dev-plugins<feature-name>□ GATE 1 PASSED (spec complete)
□ Spec exists: specs/{type}/{feature-name}.md
cat specs/{type}/{feature-name}.md # Spec (source of truth)
cat .claude/project.md # Project patterns
Load dependency-map skill and map ALL needed items:
cat skills/dependency-map.md
Extract from spec:
| Service | Purpose | Exists? | Action |
|---|---|---|---|
| {service} | {purpose} | ? | CREATE/REUSE |
| Utility | Purpose | Exists? | Action |
|---|---|---|---|
| {utility} | {purpose} | ? | CREATE/REUSE |
Quick existence check:
ls src/services/ 2>/dev/null
ls src/utils/ src/lib/ 2>/dev/null
grep -r "{function-name}" src/utils/ 2>/dev/null
Create stubs for ALL missing items FIRST:
// Create stub files with throw new Error('Not implemented')
// This ensures no "module not found" during implementation
Based on dependency map:
Use Task tool with implementer agent:
Implement backend for {feature-name}:
- Dependency map: .claude/deps/{feature-name}.md
- All endpoints from spec
- All validation rules from spec
- All error responses from spec
- Follow project patterns
From spec:
Quality:
If you discover gaps during implementation:
Use AskUserQuestion:
"Found gap in spec: {issue}
Options:
1. Update spec to {A}
2. Update spec to {B}"
Update spec first, then implement.
Use Task tool with gate-keeper agent:
Validate GATE 2 for {feature-name}
See gate-2-backend skill for all 17 criteria.
src/migrations/ (if needed)