一键导入
tdd
Test-Driven Development — Red/Green/Refactor cycle. Writes failing tests first from a spec, implements minimum code to pass, refactors, then verifies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Test-Driven Development — Red/Green/Refactor cycle. Writes failing tests first from a spec, implements minimum code to pass, refactors, then verifies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Commit all changes, push to remote, and open a pull request in one shot. The most common inner-loop workflow.
Clean start for a new task. Saves important decisions, clears context, and re-reads project config.
Resume work from a previous session. Reads MEMORY.md and continues autonomously.
Adversarial code review — stress-tests recent changes by hunting for bugs, edge cases, security holes, and design flaws. Spawns parallel attack agents, consolidates into a severity-rated report.
Debug and investigate issues — trace symptoms to root cause. Use when something is broken, a test fails mysteriously, or behavior is unexpected.
Prove that the current implementation works. Runs tests, diffs behavior, validates correctness. Use after implementing a feature or fix to verify before marking complete.
| name | tdd |
| description | Test-Driven Development — Red/Green/Refactor cycle. Writes failing tests first from a spec, implements minimum code to pass, refactors, then verifies. |
| user_invocable | true |
| argument-hint | ["feature description or requirement"] |
| tools | Read, Write, Edit, Glob, Grep, Bash |
| model | inherit |
Run a full test-driven development cycle for a feature or requirement. Tests are written before implementation, ensuring the design is driven by the specification rather than the code.
Input: A feature description, requirement, or user story passed as the skill argument.
Agent perspective: Tester
#[cfg(test)] module or tests/ directory, cargo testpytest in tests/ or test_*.py, pytest -vRED checkpoint: N tests written, all failing. Specs covered: [list]
Agent perspective: Builder
cargo clippy -- -D warningsruff checkshellcheckGREEN checkpoint: N/N tests passing. Files modified: [list]
Agent perspective: Simplifier
REFACTOR checkpoint: [changes made or "none needed"]. Tests still passing: YES/NO
Agent perspective: Verifier
## TDD Report: [Feature]
**Cycle**: RED -> GREEN -> REFACTOR -> VERIFIED
### Red Phase
- Tests written: [N] in [file(s)]
- All failing: YES/NO
- Specs covered: [list]
### Green Phase
- Files modified: [list]
- Tests passing: [X/Y]
- Implementation approach: [brief]
### Refactor Phase
- Changes made: [list or "none needed"]
- Tests still passing: YES/NO
### Verdict: PROVEN / FAILED
/tdd with a feature description