Agent skill
add-new-feature
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/add-new-feature
SKILL.md
Add New Feature (SAM Workflow)
You MUST convert the user's request into durable SAM artifacts under the repo:
plan/feature-context-{slug}.md(discovery)plan/codebase/{FOCUS}.md(optional, analysis)plan/architect-{slug}.md(architecture/design spec)plan/tasks-{N}-{slug}.md(executable task plan with Agents, deps, and verification)
<feature_request> $ARGUMENTS </feature_request>
Orchestrator Discipline
You are an orchestrator. You coordinate work across specialized agents. Prefer delegating discovery and analysis.
Phase 1: Discovery (feature-researcher)
Delegate to feature-researcher to produce plan/feature-context-{slug}.md and questions for resolution.
Phase 2: Codebase Analysis (codebase-analyzer)
If helpful, delegate to codebase-analyzer for one or more focus areas:
- patterns
- architecture
- testing
- conventions
Outputs go to plan/codebase/.
Phase 3: Architecture Spec (python-cli-design-spec)
Delegate to python-cli-design-spec to write plan/architect-{slug}.md based on:
- the feature context doc
- codebase analysis docs (if created)
- existing repo constraints (
CLAUDE.md,pyproject.toml, etc.)
Phase 4: Task Decomposition (swarm-task-planner)
Delegate to swarm-task-planner to:
- create
plan/tasks-{N}-{slug}.md - ensure every task has:
- Status, Dependencies, Priority, Complexity, Agent
- Acceptance Criteria (3+)
- Verification Steps (3+)
Phase 5: Plan Validation Gate (plan-validator)
Delegate to plan-validator. If it returns BLOCKED, do not proceed.
Phase 6: Context Manifest (context-gathering)
Delegate to context-gathering with the task file path. It must insert a ## Context Manifest into the task file.
Success Outcome
When all phases complete, provide the user:
- the feature slug
- the task file path
- next step: run the
implement-featureskill with the slug or task file path
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?