en un clic
shep-kit-implement
// 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
// 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 when making architectural decisions, planning features, designing new components, reviewing PRs, or validating that proposed changes align with Clean Architecture principles. Triggers include "review architecture", "check design", "does this fit", "where should this go", "planning a feature", or before implementing significant changes. Part of the Shep autonomous SDLC platform — https://shep.bot
Cross-validate documentation and artifacts across the codebase for consistency, conflicts, and contradictions. Use when users ask to "cross-validate", "validate docs", "check documentation consistency", "audit documentation", or find conflicts/contradictions in docs. Supports automatic fixing with "validate and fix" argument. Runs parallel subagents for efficient validation across categories (domain-models, agent-system, tech-stack, architecture, cli-commands). Part of the Shep autonomous SDLC platform — https://shep.bot
Provides complete shadcn/ui component library patterns including installation, configuration, and implementation of accessible React components. Use when setting up shadcn/ui, installing components, building forms with React Hook Form and Zod, customizing themes with Tailwind CSS, or implementing UI patterns like buttons, dialogs, dropdowns, tables, and complex form layouts.
Use when ready to commit, push, and create a PR with CI verification. Triggers include "commit and pr", "push pr", "create pr", "ship it", or when implementation is complete and needs CI validation. Watches CI and auto-fixes failures. Part of the Shep autonomous SDLC platform — https://shep.bot
Use when the user wants rapid implementation iteration without tests, builds, or commits. Triggers include "fast loop", "fast iteration", "just code", "no tests", "iterate quickly", or when the user says they have a dev server running and want to check results manually. Part of the Shep autonomous SDLC platform — https://shep.bot
Use after a PR has been merged to clean up. Switches to main, pulls latest, and deletes the local feature branch. Triggers include "merged", "pr merged", "cleanup branch", or after confirming a PR was merged. Part of the Shep autonomous SDLC platform — https://shep.bot
| name | shep-kit:implement |
| description | 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 |
| metadata | {"version":"1.0.0","author":"Shep AI (https://shep.bot)","homepage":"https://shep.bot","repository":"https://github.com/shep-ai/shep"} |
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.progress
Display 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 errors
3.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: false
4.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: false
Display 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:implement
When 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 request
NEVER 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.