tdd-commit

tdd-commit is a skill for Claude Code, Codex from morodomi/tdd-skills. It costs 37 tokens per session (542 once invoked), scanned A, original, MIT.

A skill for finishing a test-driven development cycle by checking changes and creating a Git commit. Git is a tool for recording and reviewing changes to a codebase.

In plain words
What is it for?
Use it after review to inspect the diff, update cycle documentation and status files, prepare a commit message, stage files, and commit the changes.
Why use it?
It helps ensure the work, tests, project status, and commit message are checked before the cycle is marked complete. It also checks whether pre-commit hooks will run automated checks.

Skill for Claude CodeCodex

Part of the tdd-core plugin — 13 skills, 14 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/morodomi/tdd-skills/tdd-commit
Any agent
npx skills add morodomi/tdd-skills --skill tdd-commit
Clone the repo
git clone --depth 1 https://github.com/morodomi/tdd-skills

Made for: Claude Code, Codex.

Or install tdd-core, the plugin that ships this one along with the rest of its 13 skills, 14 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tdd-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/morodomi/tdd-skills/tdd-commit.svg)](https://agentmods.dev/skills/morodomi/tdd-skills/tdd-commit)
Your own site
<a href="https://agentmods.dev/skills/morodomi/tdd-skills/tdd-commit"><img src="https://agentmods.dev/badge/skills/morodomi/tdd-skills/tdd-commit.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 542 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.00542
Opus 5 $0.00018 $0.00271
Sonnet 5 $0.00007 $0.00108
Haiku 4.5 $0.00004 $0.00054

Measured 4d ago against content hash 3d182a47e46d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tdd-commit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/tdd-core/skills/tdd-commit/SKILL.md · 96 lines

What it actually says

TDD COMMIT Phase

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

Progress Checklist

コピーして進捗を追跡:

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

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: Cycle doc更新

phase を DONE に変更。Next Stepsを更新。

Step 4: docs/STATUS.md 更新

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

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

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

Type: feat / fix / refactor / test

<type>: <subject>

<body>

Co-Authored-By: Claude Opus 4.5 <[email protected]>

Step 6: git add & git commit

git add <files>
git commit -m "..."

Step 7: サイクル完了

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

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

Reference

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

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 96 lines · 37 tokens per session scan A 3d182a47e46d

Subscribe to this mod's changes

tdd-commit is a skill published in the GitHub repository morodomi/tdd-skills (8 stars, last pushed 6mo ago), licensed MIT. It adds 37 tokens to every session and 542 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.