implement
/implement
Execute implementation phases from PLAN.md, writing code in spaces/ while tracking progress in ideas/.
Usage
/implement yourbench YB-2 1.1 # Execute phase 1.1 of issue YB-2
/implement yourbench YB-2 --next # Auto-find next uncompleted phase
/implement yourbench --next # Auto-detect issue + next phase
/implement coordinatr 003 --full # Execute all remaining phases
The Bridge Pattern
ideas/yourbench/issues/YB-2-auth/ spaces/yourbench/
├── TASK.md (requirements) ├── src/
├── PLAN.md (phases) ←→ │ └── auth/ ← CODE WRITTEN HERE
└── worklog/ └── tests/
├── _state.json (current state)
└── 001-phase-*.json (entries)
Prerequisites
REQUIRED:
issues/###-name/PLAN.mdmust exist- Active issue context (issue number specified or inferable)
spaces/{project}/exists (code repository)
If PLAN.md missing: Run /plan first to create implementation plan
Execution Flow
1. Parse & Validate
- Locate issue in
ideas/[project]/issues/###-*/ - Verify
spaces/[project]/exists - Check git branch (warn if on main/develop)
- Check dependencies (warn if incomplete)
2. Load Worklog Context
Read worklog/_state.json for:
- Current phase progress
- Key decisions made
- Previous agent context
- Blockers
3. Branch & Status Management
On first phase:
- Create feature branch:
feature/###-slugorbugfix/###-slug - Update issue status to
in_progress - Initialize worklog directory
4. Execute Phase
- Load context:
- PLAN.md (phases and checkboxes)
- Spec section from
implements:field in TASK.md - ADRs and research docs
- Select agent based on phase domain
- Write code to
spaces/[project]/ - Run tests and quality gates
- Create worklog entry
- Update PLAN.md checkboxes
- Update
_state.json
5. Agent Coordination
| Phase Type | Primary Agent |
|---|---|
| Frontend UI | frontend-specialist |
| Backend API | backend-specialist |
| Database | database-specialist |
| Tests (RED) | test-engineer |
| Refactor | code-reviewer |
6. Per-Phase Security Checks (Conditional)
Trigger security-auditor after phase if touching:
- Authentication/Authorization
- Secrets/API keys
- Database operations
- File operations
- External APIs
- Deployment config
7. Worklog Entries (MANDATORY)
After each phase, create JSON entry:
- Filename:
{sequence:03d}-phase-{slug}.json - Required:
type,phase,author,summary,work,learnings,next_steps,blockers
8. Final Review (--full mode)
When all phases complete:
- Launch code-reviewer agent
- Launch security-auditor agent
- Process combined results
- Block if CRITICAL issues
Modes
Specific Phase
/implement yourbench YB-2 1.1 # Execute only phase 1.1
Next Phase
/implement yourbench YB-2 --next # Find first uncompleted checkbox
Full Run
/implement yourbench YB-2 --full # All remaining phases + final review
Flags
| Flag | Purpose |
|---|---|
--full |
Execute all remaining phases |
--next |
Auto-detect next phase |
--skip-branch-check |
Skip branch warnings |
--skip-security-checks |
Skip per-phase security |
--skip-reviews |
Skip final reviews |
--force |
Skip dependency warnings |
Workflow
/spec → /issue → /plan → /implement → /commit → /complete
↓ ↓
implements: Load spec section
spec section for requirements
↓
worklog/ entries created
↓
spaces/[project]/ code written
Spec Compliance
When implementing, the code should fulfill the requirements from the spec section referenced in the issue's implements: field. The /complete command will validate that all spec requirements are met.
More from taylorhuston/local-life-manager
daily-review
Complete daily journal review. Use at end of day or next morning to fill in journal sections, review highlights, and plan tomorrow. Triggers on "daily review", "end of day", "journal review", "what did I do today".
48weekly-review
Weekly review and planning session. Use at end of week or weekend to review progress, plan next week, and set priorities. Triggers on "weekly review", "plan my week", "what did I do this week", "Sunday planning".
25daily-journal
Daily journal management for the my-vault Obsidian vault. Use for morning routines, daily reviews, quick journal updates, checking yesterday's entry, or setting today's highlight. Triggers on "good morning", "daily review", "journal", "what did I do", "highlight".
23life-planning
Cross-repo life and project planning. Use when user wants to plan their week, prioritize projects, review progress across all areas, or make decisions about what to focus on. Triggers on "plan my week", "what should I work on", "prioritize", "weekly review", "life planning".
23flashcards
Generate spaced repetition flashcards from notes or topics. Use when user wants to create flashcards, make review cards, prepare for spaced repetition, or convert notes to quiz format. Triggers on "flashcards", "make cards", "spaced repetition", "review cards".
21video-summarize
Summarize a single YouTube video and create a note. Use when user shares a video URL or asks to summarize a specific video. Triggers on "summarize this video", "video summary", YouTube URLs.
17