一键导入
tdd
Use when implementing any feature or bugfix, before writing implementation code, or when the user says "write tests first", "TDD", or "test-drive this".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when implementing any feature or bugfix, before writing implementation code, or when the user says "write tests first", "TDD", or "test-drive this".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user says "/deep-review", "deep review", "thorough review", or wants the deepest possible code review before pushing a branch.
Use when the user says "/harness-update", "update the harness", "upgrade agent-harness", "pull the latest harness", or after seeing an UPGRADE_AVAILABLE notice. Pulls latest harness files into this project, preserves project-specific configuration and local-only skills, and walks the user through any conflicts.
Use when the user wants to audit or understand the agent harness itself — its hooks, skills, agents, or commands — or asks "what's in this harness", "how does this harness work", or "harness overview".
Use when the user has a one-off task that slots into the current sprint and needs a quick written plan — lighter than /plan-sprint. Reads existing plans for context, uses plan mode, writes a focused plan file.
Use when the user says "/build", hands off a sprint-plan document path, or asks to execute a written plan end-to-end. Branches, implements, tests, verifies in browser, commits incrementally, and prepares the PR. Auto-fires /lg-* skills when plan steps involve LangGraph/LangChain agent work.
Use when the user says "review migrations", "db review", "check schema changes", "safe to migrate?", or before deploying schema changes to production.
| name | tdd |
| description | Use when implementing any feature or bugfix, before writing implementation code, or when the user says "write tests first", "TDD", or "test-drive this". |
| user-invocable | true |
| tier | rigid |
| kind | verification |
Override: see
CLAUDE.md§ Instruction precedence. The user is principal; this skill is advisory.
Test-driven development for every new function, bugfix, refactor, or behavior change. The order is the proof.
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
Wrote code before the test? Delete it. Start over. Don't keep it as reference, don't adapt it, don't look at it. Implement fresh from the test.
Project mock patterns (Vitest vi.hoisted(), Jest) live in mock-patterns.md.
All of these mean: stop. Delete the code. Start over with a failing test.
REQUIRED SUB-FILE: Read rationalizations.md if you find yourself making excuses. The verbatim-excuse-to-reality table is harvested from real subagent baselines under pressure.
mock-patterns.md).Cannot check all boxes? You skipped TDD. Delete and start over.
Throwaway prototypes (with explicit user permission), generated code, configuration files, and documentation changes. For exemptions outside this list, name them in CLAUDE.md § Instruction precedence — not as a per-task rationalization.
After the cycle passes:
/build? Return to the /build execution loop. Terminal state = next Implementation Step..tsx / .jsx / .vue / .svelte, paths under src/components/ or apps/web/)? Terminal state is /e2e-verify. Do NOT mark complete without browser evidence.Do NOT invoke /ship, /pre-deploy, or other downstream skills directly from /tdd — let the caller (/build or the user) drive the next gate, or hand off to /e2e-verify per the rule above. The user can override per CLAUDE.md § Instruction precedence.