← Back to list

tdd
by harlan-zw
Personal Claude Code plugin for Nuxt/Vue/TS development
⭐ 2🍴 0📅 Jan 20, 2026
SKILL.md
name: tdd description: Use when user says "write tests first", "TDD", "test-driven", "tests before implementation", or when implementing a feature where verification is critical. Creates scratchpad, writes failing tests, then iterates implementation until tests pass. user_invocable: true
Test-Driven Development Workflow
Structured TDD approach with grind pattern for autonomous iteration.
Phase 1: Write Tests
-
Initialize scratchpad
# .claude/scratchpad.md ## Goal TDD: [feature/fix description] ## Phase 1. Writing tests ## Current Task - [ ] Write test cases - [ ] Confirm tests fail - [ ] Commit tests -
Write test cases based on expected behavior
- Focus on input/output pairs
- Cover happy path and edge cases
- NO mocks for unimplemented functionality
- Use existing test patterns in the codebase
-
Run tests - confirm they fail
pnpm test [test-file] -
Commit tests (if requested)
git add [test-files] git commit -m "test: add tests for [feature]"
Phase 2: Implement
-
Update scratchpad
## Phase 2. Implementing ## Current Task - [ ] Write minimal implementation - [ ] Verify tests pass - [ ] Iterate until pass -
Write implementation
- Minimal code to pass tests
- Do NOT modify tests
- Focus on one test at a time
-
Tests auto-run on each edit
vitest.shhook runs related tests automatically on Write/Editeslint.shhook auto-fixes lint issuestypecheck.shsuggests running typecheck- Check hook output for failures
-
Iterate until all tests pass
- Grind hook will continue automatically if scratchpad not marked DONE
- If tests keep failing, update scratchpad with what's blocking
-
Mark complete
## DONE All tests passing - Tests: [count] passing - Files: [list]
Phase 3: Refactor (Optional)
- With tests green, refactor implementation
- Run tests after each refactor
- Keep tests passing throughout
Key Rules
- Never modify tests during implementation phase
- Tests must fail before implementation
- Commit tests separately from implementation
- Use real dependencies, not mocks for new code
- One test at a time for complex features
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