← Back to list

test-driven-agent
by cityfish91159
⭐ 0🍴 0📅 Jan 24, 2026
SKILL.md
name: test_driven_agent description: An advanced testing protocol that enforces TDD (Test Driven Development) and self-healing tests. allowed-tools: Bash, Read, Edit, Write
Test Driven Agent Protocol
1. The Red-Green-Refactor Cycle
- Red: Write a test that fails (demonstrating the bug or missing feature).
- Agent Note: If fixing a bug, YOU MUST reproduce it with a test first.
- Green: Write the minimal code to pass the test.
- Refactor: Clean up the code while ensuring tests still pass.
2. Test Coverage Requirements
- Happy Path: The "standard" usage case.
- Sad Path: Error states, network failures, invalid inputs.
- Edge Cases: Empty lists, max values, concurrent actions.
3. Self-Healing Mandate
If a test fails after your changes:
- DO NOT delete the test.
- DO NOT comment out the assertion.
- DO NOT change the test expectation to match the buggy result (unless the spec changed).
- DO: Fix the implementation logic until the test passes.
4. Integration vs Unit
- Unit: Mock external dependencies (Supabase, API). Fast, isolated.
- Integration: Test the hook or service with realistic (mocked) data flows.
5. Verification Checklist
- Did I write a test case for this requirement?
- Did I run
npm test <filename>? - Did I check specifically for regression in related headers/components?
Score
Total Score
50/100
Based on repository quality metrics
✓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
Reviews
💬
Reviews coming soon