원클릭으로
create-feature
Create a new feature using TDD and tracer bullets. Trigger: new feature, add feature, implement feature, build feature
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create a new feature using TDD and tracer bullets. Trigger: new feature, add feature, implement feature, build feature
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | create-feature |
| description | Create a new feature using TDD and tracer bullets. Trigger: new feature, add feature, implement feature, build feature |
Features are built as tracer bullets -- each bullet cuts through all layers (data, logic, API, UI, tests). The first bullet is the simplest end-to-end path. Each subsequent bullet adds one behavior. Every bullet follows RED, GREEN, REFACTOR. This avoids the trap of building all tests first, then all code -- which creates feedback gaps where assumptions go unchallenged until integration, when they're expensive to fix.
WRONG (horizontal): RIGHT (vertical):
1. Write ALL test cases 1. Write ONE test for simplest path
2. Write ALL database models 2. Implement just enough to pass
3. Write ALL service logic 3. Refactor
4. Write ALL API handlers 4. Write NEXT test (next behavior)
5. Wire everything together 5. Implement, refactor
6. Pray it works 6. Repeat until done
Horizontal slicing delays feedback. You discover integration problems at step 5, when you've already committed to all your abstractions. Tracer bullets surface integration problems on bullet 1, when changing course is cheap.
Step 0: WORKTREE
|__ EnterWorktree(name="feature-[name]")
Step 0.5: READ CONTEXT
|__ Read .context.md for every module that will be touched
(If .context.md is missing, run /explore-module first)
Step 1: PLANNING
|__ Gather requirements:
| - What should it do? (behavior)
| - What should it NOT do? (constraints)
| - Who uses it? (API consumers, end users)
| - What existing code does it interact with?
|__ Enter plan mode
|__ Decompose into tracer bullets (see tracer-bullets.md)
| |__ First bullet = simplest end-to-end path
|__ For each bullet: list tests, files, acceptance criteria
|__ Save plan to working/plans/YYYY-MM-DD_feature-name.md
|__ Present plan, wait for approval
Step 2: VALIDATE PLAN (optional but recommended)
|__ Run /review-plan on the plan file
Step 3: BUILD (repeat for each bullet)
|
|__ RED: Write failing test for this bullet's behavior
| |__ Checklist:
| [ ] Test name describes behavior (see tests.md)
| [ ] Test fails for the RIGHT reason
| [ ] One behavior per test
|
|__ GREEN: Write minimum code to pass
| |__ Checklist:
| [ ] Only code needed for this test
| [ ] No speculative features
|
|__ REFACTOR: Clean up while green
| |__ Checklist:
| [ ] Tests still pass
| [ ] No duplication with previous bullets
|
|__ REPEAT for next bullet
Step 4: UPDATE CONTEXT
|__ Update .context.md for every module touched
Step 5: VERIFY
|__ make check (build + test + lint + typecheck)
Step 6: REVIEW
|__ Spawn review subagents:
- code-reviewer (always)
- security-reviewer (if auth, user input, config, or sensitive data)
- test-reviewer (if complex test logic)
Step 7: FIX & SCORE
|__ Address Critical/Major findings (max 3 rounds)
|__ Re-verify: make check
|__ Present summary with quality score
/create-feature [name] -- start with a named feature/create-feature -- interactive, asks for feature descriptionBreak features into tracer bullet stories and tasks. Trigger: decompose, break down, split feature, tracer bullet, stories, tasks, decompose feature
Deploy to staging or production with safety checks. Trigger: deploy, ship, release, push to staging, push to production
Build or update .context.md for a module. Trigger: explore module, explore, understand module, what does this module do, context file, update context
Fix a bug with root cause analysis and regression testing. Trigger: fix bug, broken, regression, error, crash, not working, failing
Run linters, formatters, and static analysis. Trigger: lint, format, standards, style check, code quality, lint setup
Safely refactor existing code with tests as the contract. Trigger: refactor, tech debt, code smell, clean up, restructure, reorganize