← スキル一覧に戻る

tdd-enforce
by mway
⭐ 4🍴 0📅 2026年1月22日
SKILL.md
name: tdd-enforce description: Use when strict test-first discipline is explicitly requested or required for a change. allowed-tools: ["shell", "read_file", "apply_patch", "update_plan"] metadata: short-description: Strict TDD (opt-in)
Test-Driven Development (Strict)
Read these references:
~/.config/agent/domain/testing/unit.md- Unit testing strategy~/.config/agent/domain/testing/coverage.md- Coverage expectations
Overview
This is strict TDD. It is opt-in: use only when explicitly requested. Default guidance elsewhere is to encourage TDD, not require it.
Core principle: If you didn't watch the test fail, you don't know if it tests the right thing.
The Iron Law
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
If code was written before the failing test, delete it and start over.
Red-Green-Refactor
- RED: Write a failing test
- Verify RED: Run test, confirm it fails for the right reason
- GREEN: Minimal code to pass
- Verify GREEN: Run tests, confirm pass
- REFACTOR: Clean up while keeping tests green
Key Rules
- One behavior per test
- Tests must fail before implementation
- Minimal implementation first
- Refactor only after green
When Not to Use
- Throwaway prototypes
- Generated code
- Configuration-only changes
If tests fail unexpectedly or behavior is unclear, switch to systematic-debugging.
Testing Anti-Patterns
Read testing-anti-patterns.md before adding mocks or test utilities.
Arguments
Target: ${ARGUMENTS}
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です