shep-kit:new-feature
Skill262 starsChanged 8 months agoMITView on GitHub
Use when starting any new feature, functionality, or enhancement. Triggers include "new feature", "start developing", "add functionality", "implement X", or explicit /shep-kit:new-feature invocation. Creates spec branch and scaffolds specification directory. Part of the Shep autonomous SDLC platform — https://shep.bot
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:parallel-taskSkill
- shep-kit:planSkill
- shep-kit:researchSkill
- shep-kit:statusSkill
- shep:ui-componentSkill
- shep-workstreamsSkill
- tsp-modelSkill
- vercel-react-best-practicesSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Start spec-driven development by creating a feature branch and specification directory.
- Distinctive: line 36
Ask the user for:
- Distinctive: line 70
Before filling the spec, analyze:
- Very specific: line 72
Existing specs: Read specs/*/spec.yaml (or specs/*/spec.md) to understand feature landscape and discover dependencies
- Distinctive: line 95
Add missing context or requirements
- Very specific: line 113
IMPORTANT: Always edit spec.yaml. Never hand-edit Markdown spec files.
- Very specific: line 128
If questions are identified, add them to the openQuestions array in spec.yaml
- Distinctive: line 134
Branch first: All spec work happens on the feature branch
- Distinctive: line 137
User confirms: Always get approval before writing files
- Distinctive: line 138
Open questions block progress: Never proceed with unresolved questions
- Very specific: line 158
All shep-kit skills update feature.yaml as work progresses.
- Very specific: line 164
Create initial feature.yaml with:
≈ “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 New Feature Specification
Start spec-driven development by creating a feature branch and specification directory.
Full workflow guide: docs/development/spec-driven-workflow.md
Phase Lifecycle
Requirements → Research → Planning → Implementation → Complete
↓ ↓ ↓ ↓ ↓
spec.yaml research.yaml plan.yaml tasks.yaml all files
↓ ↓ ↓ ↓ ↓
spec.md research.md plan.md tasks.md (auto-generated)CRITICAL: Each phase MUST update the Phase status field before proceeding.
IMPORTANT: Edit YAML files, not Markdown.
Workflow
1. Gather Minimal Input
Ask the user for:
- Feature name (kebab-case, e.g.,
user-authentication) - One-liner description (brief summary)
2. Create Branch
# Determine next number
NEXT_NUM=$(ls -d specs/[0-9][0-9][0-9]-* 2>/dev/null | wc -l | xargs printf "%03d" $(($ + 1)))
# If no specs exist, use 001
[ -z "$NEXT_NUM" ] && NEXT_NUM="001"
# Create branch from main
git checkout main && git pull
git checkout -b "feat/${NEXT_NUM}-${FEATURE_NAME}"3. Run Init Script
Execute the scaffolding script:
.claude/skills/shep-kit-new-feature/scripts/init-feature.sh <NNN> <feature-name>This creates specs/NNN-feature-name/ with all template files using a YAML-first approach:
- YAML source files:
spec.yaml,research.yaml,plan.yaml,tasks.yaml(source of truth) - Markdown files:
spec.md,research.md,plan.md,tasks.md(auto-generated from YAML) - Status tracking:
feature.yaml(implementation status, unchanged)
4. Analyze Context
Before filling the spec, analyze:
- Existing specs: Read
specs/*/spec.yaml(orspecs/*/spec.md) to understand feature landscape and discover dependencies - Codebase: Identify affected areas, patterns, existing implementations
- Cross-reference: Infer dependencies, impact areas, size estimate
5. Propose Spec Content
Fill the template placeholders with inferred values:
- Problem statement (from user description + context)
- Success criteria (inferred from scope)
- Affected areas with impact levels (from codebase analysis)
- Dependencies on other features (from existing specs)
- Size estimate with reasoning (S/M/L/XL)
- Open questions (gaps identified during analysis)
Present the proposed spec to the user for review.
6. User Confirms/Adjusts
Allow the user to:
- Approve the proposed spec
- Modify any inferred values
- Add missing context or requirements
7. Write Spec & Update feature.yaml
# Write confirmed content to spec.yaml (the source of truth)
# feature.yaml already created by init script with initial state:
# - lifecycle: "research"
# - phase: "research"
# - checkpoint: "feature-created"
# See: docs/development/feature-yaml-protocol.md for details
# Stage and commit (both YAML source and generated Markdown)
git add specs/NNN-feature-name/
git commit -m "feat(specs): add NNN-feature-name specification"IMPORTANT: Always edit spec.yaml. Never hand-edit Markdown spec files.
feature.yaml Status: Already initialized by init script. No manual updates needed at this stage.
8. Next Steps
Inform the user:
Spec created on
feat/NNN-feature-name! Next:/shep-kit:researchto analyze technical approach.
Open Questions Policy
CRITICAL: Open questions in spec.yaml (the openQuestions array) MUST be resolved before /shep-kit:research.
- If questions are identified, add them to the
openQuestionsarray inspec.yaml - User must confirm answers or mark the array empty (
openQuestions: []) - Research phase will REFUSE to proceed if unresolved open questions exist in
spec.yaml
Key Principles
- Branch first: All spec work happens on the feature branch
- Infer, don't interrogate: Analyze codebase to propose smart defaults
- Dependencies from specs: Scan existing
specs/*/spec.yamlfor relationships - User confirms: Always get approval before writing files
- Open questions block progress: Never proceed with unresolved questions
Template Location
Templates are in: .claude/skills/shep-kit-new-feature/templates/
YAML Templates (Source of Truth)
spec.yaml- Feature specificationresearch.yaml- Technical decisionsplan.yaml- Implementation strategytasks.yaml- Task breakdown
Other Templates
data-model.md- Domain modelsfeature.yaml- Status tracking
feature.yaml Protocol
All shep-kit skills update feature.yaml as work progresses.
Reference: docs/development/feature-yaml-protocol.md
This skill's responsibility:
- Create initial
feature.yamlwith:lifecycle: "research"phase: "research"- Checkpoint: "feature-created"
Example
See: .claude/skills/shep-kit-new-feature/examples/001-sample-feature/
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.

