用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tim-hub/superpowers-slim --skill test-driven-development命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Use when implementation is complete and tests pass, and the work needs integrating
Use when about to claim work is complete, fixed, or passing, before committing or creating a PR
基于 SOC 职业分类
正在显示 SKILL.md
| name | test-driven-development |
| description | Use when implementing any feature or bugfix, before writing implementation code |
Production code that exists without a test that failed first: delete it and start at step 1. Keeping it as reference and adapting it while writing tests is testing after.
Assert on real behaviour, not on mock behaviour. Match test style to the surrounding suite. If a test is hard to write, the interface is probably hard to use — treat that as a design signal.
For a bug: write a test that reproduces it, watch it fail, then fix it. The test is what stops the bug coming back.
Terminal state: invoke requesting-code-review.
Depth: writing-good-tests.md