shep-kit:plan
Skill262 starsChanged 8 months agoMITView on GitHub
Use after /shep-kit:research to create implementation plan and task breakdown. Triggers include "plan", "implementation plan", "break down tasks", "create tasks", or explicit /shep-kit:plan invocation. Part of the Shep autonomous SDLC platform — https://shep.bot
- Commits and pushes
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- packages/CLAUDE.mdCLAUDE.md
- src/CLAUDE.mdCLAUDE.md
- architecture-reviewerSkill
- cross-validate-artifactsSkill
- mermaid-diagramsSkill
- react-flowSkill
- shadcn-uiSkill
- shep-kit:commit-prSkill
- shep-kit:fast-loopSkill
- shep-kit:implementSkill
- shep-kit:mergedSkill
- shep-kit:new-feature-fastSkill
- shep-kit:new-featureSkill
- shep-kit:parallel-taskSkill
- shep-kit:researchSkill
- shep-kit:statusSkill
- shep:ui-componentSkill
- shep-workstreamsSkill
- tsp-modelSkill
- vercel-react-best-practicesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 12 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Before starting planning, verify:
- Very specific: line 29
If any items have
resolved: false: STOP and inform user: - Very specific: line 32
Only proceed: when all open questions have resolved: true or the openQuestions array is empty
- Distinctive: line 38
Read both YAML source files to understand:
- Distinctive: line 60
RED: Write failing tests first
- Distinctive: line 61
GREEN: Write minimal code to pass tests
- Distinctive: line 94
Document rollback plan if needed
- Distinctive: line 106
Write structured YAML source files (the source of truth):
- Very specific: line 122
CRITICAL: Update status in YAML source files AND feature.yaml:
- Very specific: line 124
Update the status field in each YAML source file:
- Distinctive: line 163
If feature requires entity changes:
- Distinctive: line 166
Document modifications to existing entities
- Distinctive: line 203
Gate enforcement: Never skip the open questions check
- Distinctive: line 205
Tests FIRST: Every TDD phase starts with failing tests, never implementation first
- Distinctive: line 208
Reversible: Always have a rollback plan
- Distinctive: line 209
Status tracking: Always update Phase fields before committing
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create Implementation Plan
Generate a detailed implementation plan with architecture overview and task breakdown.
Full workflow guide: docs/development/spec-driven-workflow.md
Prerequisites
- Feature spec exists at
specs/NNN-feature-name/spec.yaml - Research completed at
specs/NNN-feature-name/research.yaml - On the feature branch
feat/NNN-feature-name
GATE CHECK (Mandatory)
Before starting planning, verify:
- Read
research.yamland check theopenQuestionsfield - If any items have
resolved: false: STOP and inform user:Cannot proceed with planning. Open questions in research.yaml must be resolved first. Please complete research or mark questions as resolved.
- Only proceed when all open questions have
resolved: trueor theopenQuestionsarray is empty
Workflow
1. Review Spec & Research
Read both YAML source files to understand:
- Requirements and success criteria (
spec.yaml) - Technical decisions and constraints (
research.yaml) - Affected areas and dependencies
2. Design Architecture
Create high-level architecture:
- Component diagram (ASCII or Mermaid)
- Data flow between components
- Integration points with existing code
3. Define Implementation Phases (MANDATORY TDD STRUCTURE)
CRITICAL: Plans MUST follow Test-Driven Development (TDD) with RED-GREEN-REFACTOR cycles.
Break implementation into phases following TDD:
- Foundational phases (no tests): Build pipeline, TypeSpec models, configuration
- TDD Cycle phases: For each layer (Domain, Application, Infrastructure):
- RED: Write failing tests first
- GREEN: Write minimal code to pass tests
- REFACTOR: Clean up while keeping tests green
- Each phase should be independently testable
- Order by dependencies (foundational first)
- Identify parallelizable work
4. Identify Files to Create/Modify
For each phase, list:
- New files: Path and purpose
- Modified files: Path and changes needed
5. Define Testing Strategy (TDD: Tests FIRST)
MANDATORY: Define what tests to write FIRST in each TDD cycle.
For each layer, specify tests to write BEFORE implementation:
- Unit tests (RED first): Domain logic, use cases with mocks
- Integration tests (RED first): Repositories, migrations, database operations
- E2E tests (RED first): User-facing features, CLI commands
Each TDD phase MUST follow:
- RED: Write failing test
- GREEN: Write minimal code to pass
- REFACTOR: Improve code while keeping tests green
6. Document Risks & Rollback
- Identify potential risks
- Define mitigation strategies
- Document rollback plan if needed
7. Create Task Breakdown
Convert phases into actionable tasks:
- Each task should be completable in one session
- Mark parallelizable tasks with [P]
- Include acceptance checklist
8. Write plan.yaml and tasks.yaml
Write structured YAML source files (the source of truth):
specs/NNN-feature-name/plan.yaml- Architecture and strategyspecs/NNN-feature-name/tasks.yaml- Detailed task list
NO DUPLICATION between files:
- plan.yaml
content: Architecture overview, implementation strategy walkthrough, file tables, testing strategy, risks. NO task-by-task listing (that's in tasks.yaml). - tasks.yaml
content: Brief summary (scope + counts) and acceptance checklist ONLY. Individual task details live exclusively in thetasks[]structured array. - tasks.yaml
tasks[]: The single source of truth for all task details (title, description, TDD cycles, acceptance criteria, dependencies, effort).
9. Update Status Fields & feature.yaml
CRITICAL: Update status in YAML source files AND feature.yaml:
Update the status field in each YAML source file:
spec.yaml→ setstatus.phase: planning(was research)research.yaml→ setstatus.phase: planning(was research)plan.yaml→ setstatus.phase: planning,status.updatedAt: <today's date>tasks.yaml→ setstatus.phase: implementation,status.updatedAt: <today's date>
Update feature.yaml:
# specs/NNN-feature-name/feature.yaml
feature:
lifecycle: 'implementation' # Update from "planning"
status:
phase: 'ready-to-implement' # Update from "planning"
progress:
total: <count from tasks.yaml> # Count tasks[].id entries
lastUpdated: '<timestamp>'
lastUpdatedBy: 'shep-kit:plan'
checkpoints:
# Add new checkpoint:
- phase: 'plan-complete'
completedAt: '<timestamp>'
completedBy: 'shep-kit:plan'Count tasks from the YAML array (not markdown grep):
# Count entries in tasks.yaml tasks[] array
yq '.tasks | length' specs/NNN-feature-name/tasks.yamlReference: docs/development/feature-yaml-protocol.md
10. Update data-model.md (if needed)
If feature requires entity changes:
- Define new entities with TypeSpec structure
- Document modifications to existing entities
- List new enums or value objects
11. Commit
git add specs/NNN-feature-name/
git commit -m "feat(specs): add NNN-feature-name implementation plan"12. Next Steps
Inform the user:
Plan complete for
NNN-feature-name! Ready to implement. Use tasks.yaml to track progress.⚠️ MANDATORY TDD: Each phase follows RED-GREEN-REFACTOR:
- RED: Write failing test FIRST
- GREEN: Write minimal code to pass
- REFACTOR: Improve while keeping tests green
MANDATORY Phase Completion Workflow:
After EACH phase:
- Update tasks.yaml status fields FREQUENTLY (as you complete items, not at the end!)
- Commit and push:
git add . && git commit -m "feat: complete phase N" && git push- Watch CI:
gh run watch --exit-status- If CI fails: Fix → Commit → Push → Watch again (LOOP until green)
- Only proceed to next phase after CI passes
IMPORTANT: After implementation, update all spec file statuses to "Complete"
Key Principles
- Gate enforcement: Never skip the open questions check
- TDD MANDATORY: Plans MUST follow RED-GREEN-REFACTOR cycles for all implementation phases
- Tests FIRST: Every TDD phase starts with failing tests, never implementation first
- Incremental: Each phase produces working, tested code
- Parallel-aware: Mark independent tasks for concurrent execution
- Reversible: Always have a rollback plan
- Status tracking: Always update Phase fields before committing
Template Locations
- Plan:
.claude/skills/shep-kit-new-feature/templates/plan.yaml - Tasks:
.claude/skills/shep-kit-new-feature/templates/tasks.yaml - Data Model:
.claude/skills/shep-kit-new-feature/templates/data-model.md
Example
See: .claude/skills/shep-kit-plan/examples/sample-plan.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

