Validate specs and autonomously execute implementation tasks with status tracking. Use after /shep-kit:plan when ready to start implementation. Part of the Shep autonomous SDLC platform — https://shep.bot
Use this skill after /shep-kit:plan has created plan.yaml and tasks.yaml, and you're ready to start implementation.
Triggers:
/shep-kit:implement explicitlyDon't use if:
plan.yaml or tasks.yaml missing)tasks.yaml sequentiallyfeature.yaml throughout executionRequired YAML source files in spec directory:
spec.yaml - Complete feature specificationresearch.yaml - Technical decisions documentedplan.yaml - Implementation strategytasks.yaml - Task breakdown with acceptance criteriafeature.yaml - Status tracking file (created by :new-feature)Run comprehensive validation BEFORE starting implementation:
pnpm spec:validate <feature-id>This script validates all 3 categories (completeness, architecture, consistency) against the YAML source files. See validation/*.md for the detailed rules it implements.
spec.yaml, research.yaml, plan.yaml, tasks.yaml, feature.yaml)openQuestions[].resolved: true in YAML)tasks.yaml tasks[].acceptanceCriteria)spec.yamlValidation rules: validation/completeness.md
plan.yaml contentplan.yamlValidation rules: validation/architecture.md
tasks.yaml tasks[] matches plan.yaml phases[].taskIdstasks.yaml tasks[].dependencies)Validation rules: validation/consistency.md
Apply ONLY safe structural fixes:
tasks.yaml from template if only plan.yaml existsShow summary of auto-fixes and require user approval before proceeding.
If pnpm spec:validate finds blocking issues, STOP and report:
Display validation report (see examples/validation-report.md) and exit.
Read feature.yaml to determine state:
# Check current state
current_phase = feature.yaml:status.phase
current_task = feature.yaml:status.currentTask
progress = feature.yaml:status.progressDisplay status summary:
Feature {ID}: {Name}
Progress: {completed}/{total} tasks ({percentage}%)
Current: {currentTask}
Last updated: {lastUpdated}Validate current state:
currentTask is not null, verify work is complete:
currentTask or next taskcurrentTaskAuto-resume immediately (no user prompt).
Execute tasks from tasks.yaml in sequence:
3.1 Update Status (Start)
# Update feature.yaml
status:
currentTask: 'task-N'
lastUpdated: '<timestamp>'
lastUpdatedBy: 'shep-kit:implement'3.2 Read Task Definition
tasks.yaml (structured YAML data)tasks[N].description, tasks[N].acceptanceCriteria, tasks[N].tddPhases, tasks[N].dependencies3.3 Execute TDD Cycle
CRITICAL: Follow TDD discipline EXACTLY as defined in plan:
RED Phase:
GREEN Phase:
REFACTOR Phase:
3.4 Run Verification
pnpm test # All tests must pass
pnpm build # Build must succeed
pnpm typecheck # No TypeScript errors
pnpm lint # No lint errors3.5 Handle Result
If verification PASSES:
# Update feature.yaml
status:
progress:
completed: { N+1 }
percentage: { calculated }
currentTask: 'task-{N+1}'
lastUpdated: '<timestamp>'Continue to next task.
If verification FAILS: → Enter Error Handling (Phase 4)
When task fails:
4.1 Capture Error
# Update feature.yaml
errors:
current:
taskId: 'task-N'
attempt: 1
error: '<concise description>'
details: '<full error message/stack trace>'
timestamp: '<timestamp>'
resolved: false4.2 Run Systematic Debugging
4.3 Check Retry Count
errors.current, add to errors.history, continue4.4 Stop After 3 Failed Attempts
# Update feature.yaml
status:
phase: 'blocked'
tasks:
failed: ['task-N']
errors:
current:
taskId: 'task-N'
attempt: 3
error: '<description>'
details: '<full details>'
timestamp: '<timestamp>'
resolved: falseDisplay error report to user:
❌ Implementation blocked on task-N after 3 retry attempts
Error: <concise description>
Details:
<full error message>
Manual intervention required.
To resume: Fix the issue and re-run /shep-kit:implementWhen all tasks complete successfully:
5.1 Update feature.yaml
status:
phase: 'ready-for-review'
progress:
completed: { total }
percentage: 100
currentTask: null
checkpoints:
- phase: 'implementation-complete'
completedAt: '<timestamp>'
completedBy: 'shep-kit:implement'5.2 Display completion summary:
✅ Feature {ID}: Implementation complete!
Summary:
- {total} tasks completed
- All tests passing
- Build successful
- Ready for code review
Next steps:
1. Review all changes
2. Run `/shep-kit:commit-pr` to create pull requestNEVER skip RED-GREEN-REFACTOR cycle:
If plan doesn't specify TDD phases, STOP and ask user to update plan.
Execute tasks STRICTLY in order from tasks.yaml:
tasks[].dependencies)Update feature.yaml after EVERY state change:
See docs/development/feature-yaml-protocol.md for update patterns.
Maximum 3 automatic retry attempts per task:
No user prompts during execution (except for auto-fix approval):
docs/development/feature-yaml-protocol.mdvalidation/*.md in this skill directorydocs/development/spec-driven-workflow.mddocs/development/tdd-guide.mdSee examples/validation-report.md for example validation output and error handling scenarios.
Remember: This skill bridges planning and implementation. Validation ensures quality gates are met before any code is written. Autonomous execution with bounded retries maximizes velocity while maintaining safety.
e86d11c
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.