Back to list
morodomi

tdd-commit

by morodomi

Question-Driven TDD workflow for Claude Code. Risk-based automation: INIT → PLAN → RED → GREEN → REFACTOR → REVIEW → COMMIT

0🍴 0📅 Jan 23, 2026

SKILL.md


name: tdd-commit description: 変更をGitコミットしてTDDサイクルを完了する。REVIEWの次フェーズ。「コミットして」「commit」で起動。

TDD COMMIT Phase

変更をGitコミットしてTDDサイクルを完了する。

Progress Checklist

コピーして進捗を追跡:

COMMIT Progress:
- [ ] git status で変更確認
- [ ] Pre-commit Hook確認
- [ ] git diff で差分確認
- [ ] コミットメッセージ生成
- [ ] git add & git commit
- [ ] Cycle doc更新(phase: DONE)
- [ ] docs/STATUS.md 更新
- [ ] サイクル完了

Workflow

Step 1: 変更確認

git status
git diff --stat

Step 2: Pre-commit Hook確認

コミット時のテスト自動実行を確認:

ls .husky/pre-commit .git/hooks/pre-commit 2>/dev/null
状態メッセージ
hookありコミット時に自動実行されます
hookなし手動でテスト実行を推奨(tdd-reviewで実行済みならOK)

Step 3: コミットメッセージ生成

Type: feat / fix / refactor / test

<type>: <subject>

<body>

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>

Step 4: コミット実行

git add -A
git commit -m "..."

Step 5: Cycle doc更新

phase を DONE に変更。

Step 6: docs/STATUS.md 更新

gh issue list --limit 10 --json number,title,labels
ls -t docs/cycles/*.md | head -5

STATUS.md を最新状態に更新。

Step 7: サイクル完了

================================================================================
TDDサイクル完了
================================================================================
コミット: [hash]
機能: [機能名]

次: git push / tdd-init で新サイクル開始
================================================================================

Reference

  • 詳細: reference.md
  • Gitコンベンション: .claude/rules/git-conventions.md

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon