From team-shinchan
Enforces RED-GREEN-REFACTOR TDD cycle when writing code or fixing bugs. Runs tests at each stage, blocks production code without a prior failing test, and counters common excuses to skip testing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/team-shinchan:test-driven-developmentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**No production code without a failing test first.**
No production code without a failing test first.
Every line of production code must be justified by a test that failed without it. No exceptions unless explicitly approved by a human.
Write a test for the behavior you need. Run it. It MUST fail. If it passes, your test is wrong or the behavior already exists.
verify-RED: Run test → confirm FAIL
If test passes → STOP. Investigate why.
Write the minimum production code to make the test pass. Nothing more.
verify-GREEN: Run test → confirm PASS
If test fails → fix production code (not the test)
Improve code structure while keeping tests green. Run tests after every change.
Do NOT skip TDD. Every excuse has a counter:
| Excuse | Counter |
|---|---|
| "It's too simple to test" | Simple code has simple tests. Write it in 30 seconds. |
| "I'll add tests after" | You won't. And if you do, they'll test your implementation, not your intent. |
| "This is just a config change" | Config changes break things. Write a test that loads the config. |
| "Tests will slow me down" | Debugging without tests is slower. TDD prevents 80% of debugging. |
| "I need to prototype first" | Prototypes become production. Start with a test or get explicit human approval to skip. |
| "The existing code has no tests" | Add a test for the behavior you're changing. Don't perpetuate the gap. |
| "It's a one-line fix" | One-line fixes cause production outages. A one-line test prevents them. |
TDD may be skipped ONLY with explicit human approval for:
If in doubt, write the test. It takes less time than debating whether to skip it.
npx claudepluginhub seokan-jeong/team-shinchan --plugin team-shinchanGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.