| name | implement-user-story |
| description | Gates implementation of a Meridian user story — verifies ready true, Plan, deps and architecture refs before product code. Use with /implement-us US-XXXX. |
| allowed-tools | Read, Glob, Grep, Bash, Edit, Write |
Implement user story (Meridian)
v11: load US from SQLite — never assume docs/us/*.md on disk.
Selective reading
| File | When to read |
|---|
references/implement-gate-checklist.md | Mandatory |
.agent/references/templates/code-quality-at-us-time.md | Mandatory |
| Target US | meridian_delivery.py show US-XXXX --full |
docs/05_architecture.md, docs/04_principles.md | Refs + quality |
Delivery commands
python3 .agent/scripts/meridian_delivery.py implement-gate US-0115
python3 .agent/scripts/meridian_delivery.py implement-gate US-0115 --json
python3 .agent/scripts/meridian_delivery.py show US-0115 --full
Hard gate
| Check | Requirement |
|---|
| Architecture | 05_architecture.md approved |
| US row | exists in SQLite |
ready | true |
| Dependencies | all depends_on at ✅ |
If gate fails → no product code; recommend /refine-us.
Procedure
- Run
implement-gate; read checklist + US --full.
- If passed → implement per Acceptance and Planned (DRY/SRP).
- Close with
complete-user-story / /complete-us — not in same turn unless asked.
Output
Implement gate:
US: US-XXXX
Result: PASS | BLOCKED
Blockers:
Next: code | /refine-us US-XXXX