npx claudepluginhub morodomi/tdd-skills --plugin tdd-coreThis skill uses the workspace's default tool permissions.
テストコードを作成し、失敗することを確認する(並列実行がデフォルト)。
Generates failing tests for TDD red phase defining expected behavior, edge cases, errors in JavaScript/TypeScript (Jest/Vitest), Python (pytest), Go, Ruby (RSpec).
Generates failing tests for TDD red phase defining expected behavior, edge cases, and errors in Jest/Vitest, pytest, Go, and RSpec frameworks.
Runs full RED-GREEN-REFRACTOR TDD workflow for features from descriptions, task IDs, or specs. Confirms plan then automates failing tests (RED), minimal implementation (GREEN), and refactoring.
Share bugs, ideas, or general feedback.
テストコードを作成し、失敗することを確認する(並列実行がデフォルト)。
RED Progress:
- [ ] Cycle doc確認、TODO→WIPに移動
- [ ] テストファイル依存関係分析
- [ ] red-worker並列起動
- [ ] 結果収集・マージ
- [ ] 全テスト実行→失敗確認
- [ ] Cycle doc更新(WIP→DONE相当)
- [ ] GREEN自動実行
ls -t docs/cycles/*.md 2>/dev/null | head -1
Test ListのTODOからテストケースを選択してWIPに移動。
テストケースを対象テストファイル別にグルーピング:
| テストファイル | テストケース |
|---|---|
| tests/AuthTest.php | TC-01, TC-02 |
| tests/UserTest.php | TC-03 |
原則: 同一テストファイル→同一workerに割り当て(競合回避)
Taskツールで tdd-core:red-worker を並列起動:
Task 1: TC-01, TC-02 → tests/AuthTest.php
Task 2: TC-03 → tests/UserTest.php
全workerの完了を待ち、結果を統合。失敗時は該当workerのみ再試行(最大2回)。
php artisan test --filter=TestName # PHP
pytest tests/test_xxx.py -v # Python
期待: テストが失敗すること(RED状態)
| 結果 | 判定 | アクション |
|---|---|---|
| テスト失敗 | PASS | GREENへ自動進行 |
| テスト成功 | BLOCK | テスト条件を見直して再試行 |
================================================================================
RED完了
================================================================================
テスト作成完了。失敗を確認しました。
GREENフェーズを自動実行します。
================================================================================
Skill(tdd-core:tdd-green) を呼び出して自動的にGREENフェーズへ進行。