スキル一覧に戻る
staticWagomU

tdd

by staticWagomU

6🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: tdd description: Guide Test-Driven Development using Kent Beck's Red-Green-Refactor cycle. Use when writing tests, implementing features via TDD, or following plan.md test instructions.

INSTRUCTIONS

Follow Kent Beck's TDD and Tidy First principles using the three-phase workflow:

  1. RED - /tdd:red - Write ONE small failing test
  2. GREEN - /tdd:green - Make it pass with minimal code, then commit
  3. REFACTOR - /tdd:refactor - Improve structure without changing behavior, commit each step

Workflow Pattern

/tdd:red → write failing test → /tdd:green → pass test → /git:commit
                                                              ↓
        ← next feature ← /tdd:red ← satisfied? ← /tdd:refactor (repeat as needed)

Core Principles

  • One test at a time: Each RED adds exactly ONE failing test
  • Minimal code: GREEN phase writes just enough to pass
  • Never skip REFACTOR: Every TDD cycle must complete all three phases
  • Tidy First: Separate structural changes (refactor) from behavioral changes (feat/fix)
  • Small commits: Commit after GREEN, commit after EACH refactor step

Strategy Selection (GREEN Phase)

ConfidenceStrategyUse When
LowFake ItReturn constant, generalize later
HighObvious ImplementationSolution is clear
GeneralizingTriangulationAdd test to break a fake

Quality Standards

  • Eliminate duplication between test and production code
  • Express intent through clear naming
  • Keep methods small and focused
  • Run ALL tests after EVERY change

スコア

総合スコア

50/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

レビュー

💬

レビュー機能は近日公開予定です