commit

commit is a skill for Claude Code from thettwe/nyann. It costs 175 tokens per session (2,182 once invoked), scanned A, original, MIT.

A workflow that creates a Git commit message from staged changes using the Conventional Commits format, a shared style such as feat for a new feature or fix for a bug. It waits for your confirmation before creating the commit.

In plain words
What is it for?
Use it to inspect staged files, generate or edit a commit message, and create the commit after approval.
Why use it?
It turns a diff—the exact changes between versions—into a consistent summary while avoiding accidental commits when nothing is staged or when the project is not a Git repository.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash bin/pre-action-guard.sh --flow commit --target <cwd> [--profile <resolved-profile.json>].

Part of the nyann plugin — 41 skills, 41 commands, 3 hooks shipped together

Good fit Use it to inspect staged files, generate or edit a commit message, and create the commit after approval.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/thettwe/nyann
agentmods
npx agentmods add skills/thettwe/nyann/commit

Made for: Claude Code.

Or install nyann, the plugin that ships this one along with the rest of its 41 skills, 41 commands, 3 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

README.md
[![agentmods](https://agentmods.dev/badge/skills/thettwe/nyann/commit/github.svg)](https://agentmods.dev/skills/thettwe/nyann/commit)
Your own site
<a href="https://agentmods.dev/skills/thettwe/nyann/commit"><img src="https://agentmods.dev/badge/skills/thettwe/nyann/commit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/thettwe/nyann/commit"><img src="https://agentmods.dev/badge/skills/thettwe/nyann/commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 175 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,182 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00175 $0.02182
Opus 5.5 $0.00070 $0.00873
Sonnet 5.5 $0.00035 $0.00436
Haiku 4.5 $0.00017 $0.00218

Measured 3mo ago against content hash 389cc6651d1c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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.

skills/commit/SKILL.md · 215 lines

How it starts

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

commit

You are generating a commit message for the user's staged changes. Work in phases. Never run git commit until the user has confirmed the message.

0. Drift check (quick, non-blocking)

Run bash bin/session-check.sh --flow=commit. If it produces output, surface the line to the user verbatim. Do not block the flow.

1. Gather context

Run bin/commit.sh --target <cwd>. The script emits a JSON context object (target, branch, on_main, convention, staged_files, summary, diff, truncated).

Exit code handling:

  • 0 → JSON context emitted. Check the nothing_staged field:
    • nothing_staged: true → ask the user what they want to stage (git add <paths>, git add -p, or "everything"), then re-run.
    • Otherwise → full context available. Continue.
  • 2 → not a git repo. Tell the user, stop.

If on_main: true, warn the user that the block-main hook will reject the commit. Suggest they create a feature branch via the new-branch skill before continuing.

1.5. Pre-action guards + commit hygiene

Run both of these before generating the message — they inform scope choice and prevent obvious mistakes from reaching the commit message step:

bash bin/pre-action-guard.sh --flow commit --target <cwd> [--profile <resolved-profile.json>]
bash bin/commit-hygiene.sh --target <cwd> [--profile <resolved-profile.json>]

Guard handling (exit code)

Exit Meaning Action
0 All guards passed (or only advisory warnings) Surface any advisory message lines, continue
3 One or more critical guards failed Surface the failing guard messages. Refuse to proceed unless the user passes --skip-guards explicitly (re-ask via AskUserQuestion).
4 One or more confirm-severity guards failed Surface the failures. Call AskUserQuestion: "Proceed despite the warnings?" Only continue on explicit confirm.

Don't silently pass critical failures. The merge-conflict-markers guard catching <<<<<<< in the staged diff is exactly the case where "warn and continue" would let a broken merge into a commit.

Read the full file on GitHub · 215 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. 3mo ago First seen · 215 lines · 175 tokens per session scan A 389cc6651d1c

Subscribe to this mod's changes

commit is a skill published in the GitHub repository thettwe/nyann (7 stars, last pushed 23d ago), licensed MIT. It adds 175 tokens to every session and 2,182 once invoked, about $0.0007 per session on Opus 5.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

commit compared with skills from other repositories

commit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
committhettwe/nyannSkill723d agoMITA175Claude Code
branch-and-worktree-workflowcbrock84/headcountSkill2.6ktodayMITA70Claude Code
pr-reviewoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA59Claude Code
phx-pr-reviewoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA61Claude Code, Codex
genshijin-commitInterfaceX-co-jp/genshijinSkill3372d agoMITA88Claude Code
commit-push-prsneg55/agent-starterSkill776d agoMITA28Claude Code
commitsneg55/agent-starterSkill776d agoMITA35Claude Code