commit-craft

commit-craft is a skill for Claude Code, Codex from avmnu-sng/sutra. It costs 32 tokens per session (1,558 once invoked), scanned A, original, MIT.

A writing guide for creating clear Git commit messages and splitting changes into useful commits. Git commits are saved steps in a code project's history.

In plain words
What is it for?
Use it when writing or revising commit messages, dividing work into commits, or organizing a branch.
Why use it?
It helps future developers understand what changed and why when reviewing history or using git blame.

Skill for Claude CodeCodex

Part of the sutra plugin — 19 skills, 4 agents, 2 hooks 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/avmnu-sng/sutra/commit-craft
Any agent
npx skills add avmnu-sng/sutra --skill commit-craft
Clone the repo
git clone --depth 1 https://github.com/avmnu-sng/sutra

Made for: Claude Code, Codex.

Or install sutra, the plugin that ships this one along with the rest of its 19 skills, 4 agents, 2 hooks.

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 commit-craft

README.md
[![agentmods](https://agentmods.dev/badge/skills/avmnu-sng/sutra/commit-craft.svg)](https://agentmods.dev/skills/avmnu-sng/sutra/commit-craft)
Your own site
<a href="https://agentmods.dev/skills/avmnu-sng/sutra/commit-craft"><img src="https://agentmods.dev/badge/skills/avmnu-sng/sutra/commit-craft.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,558 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.00032 $0.01558
Opus 5 $0.00016 $0.00779
Sonnet 5 $0.00006 $0.00312
Haiku 4.5 $0.00003 $0.00156

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

Security

Grade A, and why

commit-craft 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 3d 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/sutra/skills/commit-craft/SKILL.md · 153 lines

How it starts

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

Commit craft

Write the message for the engineer who lands on this line six months from now with git blame, no context, and a production incident. Describe the codebase-observable change and why it exists. Strip everything that only made sense inside the session that produced it.

When to use

  • You are about to write or amend a commit message.
  • You are deciding how to split a pile of changes into commits.
  • You are structuring a branch (or a stack of dependent branches).

When not to use

  • Trivial mechanical noise the reader will never blame (leave it, or fold it into the logical commit it belongs to).

Subject line

  • Imperative mood, plain English, under ~72 characters. "Add retry to upload client", not "Added" or "Adding".
  • If your project uses a commit convention (Conventional Commits feat:/fix:/..., gitmoji, an area: summary scope, or a ticket-key prefix), follow it consistently. Absent one, a plain imperative subject naming the symbols is enough.
  • Use fix(scope): only when the scope is genuinely narrower than the files touched. If the fix spans the files it names, drop the scope -- a scope wider than reality misleads.
  • Name the codebase-observable delta and the symbols involved: the function, type, constant, or file. "fix(auth): reject empty token in verify_session", not "fix: bug in auth".
  • Never cite line numbers. They rot on the next edit. Name the symbol instead; a symbol survives a reformat, a line number does not.

Body

  • Lead with WHAT the commit ships, in plain prose. Open with a verb on the delta: "Move parse_headers to http/headers.rb.", "Raise the connection pool cap from 8 to 32.", "Delete the unused LegacyEncoder path."
  • Keep the WHY only when it is not obvious from the WHAT. Non-obvious reasons worth a sentence:
    • a constraint (an upstream API caps page size at 100).
    • a correctness or compliance reason (values must be redacted before logging).
    • dead-code removal (no caller since the v2 client shipped).
    • an operational precondition (requires the new column to be backfilled first).
  • Optionally name who depends on this and one short pointer to verify it: "Consumed by the image-upload endpoint; run the upload smoke suite."
  • Keep the body wrapped and readable. One blank line between subject and body.

Read the full file on GitHub · 153 lines

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. 3d ago First seen · 153 lines · 32 tokens per session scan A 524deb9e59ae

Subscribe to this mod's changes

commit-craft is a skill published in the GitHub repository avmnu-sng/sutra (2 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 1,558 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.

Related

Other skills, from other repositories

ship

Build, commit, push & version bump workflow - automates the complete release cycle.

rtk-ai/rtk · 16 tokens

review-delta

Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.

tirth8205/code-review-graph · 24 tokens

chinese-commit-conventions

中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。.

jnMetaCode/superpowers-zh · 65 tokens

commit-push-pr

Commit selected local changes, push the branch, and create or update a GitHub pull request with BitFun attribution. Use when the user asks to 提交 PR、提代码、commit and push、开 PR、create a pull request, or wants a Claude Code-like one-command PR publishing flow from BitFun.

GCWing/BitFun · 68 tokens

commit-push-pr

Commit current changes, push to remote, and create or update a pull request. Use when the user wants to commit and create a PR, push changes and open a pull request, or ship their current work as a PR.

dyoshikawa/rulesync · 50 tokens

run-work

Execute a work unit end-to-end: sequence tasks by dependency, implement, test between tasks, commit, and track progress. Use to deliver a complete feature in one session. Invoked as /agiflow:run-work . Uses getworkunit, listtasks, updatetask, getworkunitprogress.

hashgraph-online/awesome-codex-plugins · 68 tokens