commit

A Git workflow skill that completes a TDD cycle by committing changes after required review, tests, logs, and retrospective checks pass. Git is a version-control system that records code changes and commits.

In plain words
What is it for?
Use it after the RED, GREEN, REFACTOR, and REVIEW phases to check the cycle document and create the final Git commit.
Why use it?
It prevents incomplete or insufficiently reviewed cycle work from being committed. It blocks when required phases, test-list items, review records, or retrospective status are missing.

Skill for Claude CodeCodex

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/dev-crew/commit
Any agent
npx skills add morodomi/dev-crew --skill commit
Clone the repo
git clone --depth 1 https://github.com/morodomi/dev-crew

Made for: Claude Code, Codex.

Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,325 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.00034 $0.01325
Opus 5 $0.00017 $0.00662
Sonnet 5 $0.00007 $0.00265
Haiku 4.5 $0.00003 $0.00133

Measured yesterday against content hash 2f66cf2a95cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

skills/commit/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Workflow

Cycle Doc Gate

for f in docs/cycles/*.md; do [ -f "$f" ] || continue; fm=$(awk '/^---$/{c++;next} c==1{print}' "$f"); echo "$fm" | grep -q '^phase:' || continue; echo "$fm" | grep -q 'phase: DONE' && continue; printf '%s\t%s\n' "$(echo "$fm" | awk 'sub(/^updated: */,""){gsub(/T/," ");print;exit}')" "$f"; done | sort | tail -1 | cut -f2 → found: continue / not found: BLOCK(run spec)

Phase Ordering Gate: Progress Log に REVIEWPhase completed 記録があるか確認。なければ BLOCK: 「先に review を実行してください」

Test List Completion Gate: Test List の TODO/WIP/DISCOVERED に未完了項目(- [ ] TC-)が残っていれば BLOCK。DISCOVERED残項目は review の DISCOVERED→Issue 処理に戻す。詳細: reference.md

Progress Log Completeness Gate: Progress Log に RED/GREEN/REFACTOR/REVIEW の全4フェーズの Phase completed 記録があるか確認。不足フェーズがあれば BLOCK。詳細: reference.md

Pre-COMMIT Gate (deterministic)

Cycle doc の Progress Log を確認し、以下が全て満たされなければ BLOCK:

  1. REVIEW完了: Progress Log に ### ... - REVIEW セクションがあり、Phase completed 記録がある
  2. Codex review記録 (which codex 成功時のみ): Progress Log に Codex + review の記録がある
  3. retro_status check: retro_status: captured / resolved で PASS。none で BLOCK (cycle-retrospective 実行)、field 不在は WARN のみで PASS (legacy compat)
# 1. REVIEW チェック(phaseヘッダーにアンカー)
awk '/^### .* - REVIEW/,/Phase completed/' "$CYCLE_DOC" | grep -qi 'Phase completed'
# 2. Codex review チェック(codex利用可能時のみ)
which codex && grep -qiE 'Codex.*review|codex.*Review' "$CYCLE_DOC"

いずれか失敗 → BLOCK(不足ステップを案内)

STATUS.md同期警告 (非BLOCK): ls tests/test-*.sh | wc -l と STATUS.md の Test Scripts 値を比較。不一致なら警告表示。

Step 2: 変更確認 + Pre-commit Hook

git status && git diff --stat
ls .husky/pre-commit .git/hooks/pre-commit 2>/dev/null

Step 3: ドキュメント更新

ドキュメント 条件 更新内容
Cycle doc 常に phase: DONE, Progress Log に COMMIT 記録
STATUS.md 常に 完了タスクを Completed に移動
README.md skills/ or agents/ 変更時 スキル一覧・構成の更新
AGENTS.md skills/ or agents/ 変更時 cross-toolセクションの更新
CLAUDE.md skills/ or agents/ 変更時 Skills セクションの更新

Read the full file on GitHub · 94 lines

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. yesterday First seen · 94 lines · 34 tokens per session scan A 2f66cf2a95cc

Subscribe to this mod's changes

commit is a skill published in the GitHub repository morodomi/dev-crew (1 stars, last pushed 3d ago), licensed MIT. It adds 34 tokens to every session and 1,325 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.