tdd
Builds a requested feature test-first, one behavior at a time, and stops at a diff for review. Use when the user asks for a new function or feature, or says test-first or TDD.
- License 许可
- NOASSERTION
- 最近更新
- 2026-11-11
- Stars
- ★ 3.7k
- Forks
- 417
01 前言 Front Matter
- name
- tdd
- description
- Builds a requested feature test-first, one behavior at a time, and stops at a diff for review. Use when the user asks for a new function or feature, or says test-first or TDD.
03 SKILL.md 正文
Build this test-first, one behavior at a time: $ARGUMENTS
- Red: write one failing test for the next behavior. Run the tests and confirm that it fails, and fails for the reason you expect. Don't change code outside the tests in this step.
- Green: write the least code that makes the new test pass, then run the whole test suite and confirm that every test passes. Don't change the tests in this step.
- Refactor: improve the names and structure of the code you just wrote without changing what it does, and run the tests again. They must still pass.
Repeat until the feature is done, then run the whole test suite and show the diff. Don't commit: the user reviews the diff and commits.
04 同仓库更多 Skills
check-links
Runs the link checker on a folder and explains each broken link it finds, with the file, the line and a likely fix. Use when someone asks to check links or find broken links in the docs.
changelog
Adds a one-line entry for the staged changes to CHANGELOG.md. Use when the user asks for a changelog entry.
team-review
The team's review of a change to linkcheck, run the same way on a laptop and in CI. Use on a staged diff or a pull request.
review-checklist
The team's checklist for reviewing a change to linkcheck. Use before you commit or open a pull request.
onboard
Explains this repository's shared Claude Code setup to a new teammate, covering what is committed and shared, what stays personal, and what the team-kit plugin adds. Use when someone asks how the team's Claude Code setup works or what they get by cloning the repository.
tdd
TODO