conductor-implement
Execute tasks from a track's implementation plan following TDD workflow
Implement Track
Execute tasks from a track's implementation plan, following the workflow rules defined in conductor/workflow.md.
Use this skill when
Do not use this skill when
Instructions
resources/implementation-playbook.md.Pre-flight Checks
- Check
conductor/product.md exists- Check
conductor/workflow.md exists- Check
conductor/tracks.md exists- If missing: Display error and suggest running
/conductor:setup first- Read
conductor/workflow.md- Parse TDD strictness level
- Parse commit strategy
- Parse verification checkpoint rules
Track Selection
If argument provided:
conductor/tracks/{argument}/plan.mdIf no argument:
conductor/tracks.md[ ] or [~])
Select a track to implement: In Progress:
1. [~] auth_20250115 - User Authentication (Phase 2, Task 3)
Pending:
2. [ ] nav-fix_20250114 - Navigation Bug Fix
3. [ ] dashboard_20250113 - Dashboard Feature
Enter number or track ID:
Context Loading
Load all relevant context for implementation:
-
conductor/tracks/{trackId}/spec.md - Requirements-
conductor/tracks/{trackId}/plan.md - Task list-
conductor/tracks/{trackId}/metadata.json - Progress state-
conductor/product.md - Product understanding-
conductor/tech-stack.md - Technical constraints-
conductor/workflow.md - Process rules-
conductor/code_styleguides/{language}.mdTrack Status Update
Update track to in-progress:
conductor/tracks.md:- Change
[ ] to [~] for this trackconductor/tracks/{trackId}/metadata.json:- Set
status: "in_progress"- Update
updated timestampTask Execution Loop
For each incomplete task in plan.md (marked with [ ]):
1. Task Identification
Parse plan.md to find next incomplete task:
- [ ] Task X.Y: {description}2. Task Start
Mark task as in-progress:
[ ] to [~] for current task3. TDD Workflow (if TDD enabled in workflow.md)
Red Phase - Write Failing Test:
Following TDD workflow for Task X.Y...Step 1: Writing failing test
Green Phase - Implement:
Step 2: Implementing minimal code to pass testRefactor Phase:
Step 3: Refactoring while keeping tests green4. Non-TDD Workflow (if TDD not strict)
5. Task Completion
Commit changes (following commit strategy from workflow.md):
git add -A
git commit -m "{commit_prefix}: {task description} ({trackId})"Update plan.md:
[~] to [x] for completed taskgit add conductor/tracks/{trackId}/plan.md
git commit -m "chore: mark task X.Y complete ({trackId})"Update metadata.json:
tasks.completedupdated timestamp6. Phase Completion Check
After each task, check if phase is complete:
[x]:Run phase verification:
Phase {N} complete. Running verification...npm test / pytest / etc.Report and wait for approval:
Phase {N} Verification Results:
All phase tasks: Complete
Tests: {passing/failing}
Verification: {pass/fail} Approve to continue to Phase {N+1}?
Yes, continue
No, there are issues to fix
Pause implementation CRITICAL: Wait for explicit user approval before proceeding to next phase.
Error Handling During Implementation
On Tool Failure
ERROR: {tool} failed with: {error message}Options:
Retry the operation
Skip this task and continue
Pause implementation
Revert current task changes On Test Failure
TESTS FAILING after Task X.YFailed tests:
{test name}: {failure reason} Options:
Attempt to fix
Rollback task changes
Pause for manual intervention On Git Failure
GIT ERROR: {error message}This may indicate:
Uncommitted changes from outside Conductor
Merge conflicts
Permission issues Options:
Show git status
Attempt to resolve
Pause for manual intervention Track Completion
When all phases and tasks are complete:
1. Final Verification
All tasks complete. Running final verification...2. Update Track Status
In conductor/tracks.md:
[~] to [x] for this trackIn conductor/tracks/{trackId}/metadata.json:
status: "complete"phases.completed to totaltasks.completed to totalupdated timestampIn conductor/tracks/{trackId}/plan.md:
[x] Complete3. Documentation Sync Offer
Track complete! Would you like to sync documentation?This will update:
conductor/product.md (if new features added)
conductor/tech-stack.md (if new dependencies added)
README.md (if applicable) Yes, sync documentation
No, skip 4. Cleanup Offer
Track {trackId} is complete.Cleanup options:
Archive - Move to conductor/tracks/_archive/
Delete - Remove track directory
Keep - Leave as-is 5. Completion Summary
Track Complete: {track title}Summary:
Track ID: {trackId}
Phases completed: {N}/{N}
Tasks completed: {M}/{M}
Commits created: {count}
Tests: All passing Next steps:
Run /conductor:status to see project progress
Run /conductor:new-track for next feature Progress Tracking
Maintain progress in metadata.json throughout:
{
"id": "auth_20250115",
"title": "User Authentication",
"type": "feature",
"status": "in_progress",
"created": "2025-01-15T10:00:00Z",
"updated": "2025-01-15T14:30:00Z",
"current_phase": 2,
"current_task": "2.3",
"phases": {
"total": 3,
"completed": 1
},
"tasks": {
"total": 12,
"completed": 7
},
"commits": [
"abc1234: feat: add login form (auth_20250115)",
"def5678: feat: add password validation (auth_20250115)"
]
}Resumption
If implementation is paused and resumed:
metadata.json for current statecurrent_task field[~] in plan.md
Resuming track: {title} Last task in progress: Task {X.Y}: {description}
Options:
1. Continue from where we left off
2. Restart current task
3. Show progress summary first