commit

commit is a skill for Claude Code from thoughtbot/rails-consultant. It costs 20 tokens per session (1,524 once invoked), scanned A, original, MIT.

A Git commit workflow that records current changes as separate, focused commits with their reasons, risks, trade-offs, and rejected alternatives. A commit is a saved set of project changes with a message in the version history.

In plain words
What is it for?
Use it to inspect the working tree, commit only the changes made for the task, and write history that explains the decisions behind each commit.
Why use it?
The changed lines show what happened but not why, which makes later debugging and review harder. It also avoids accidentally committing unrelated work or sensitive files.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the rails-consultant plugin — 15 skills shipped together

Good fit Use it to inspect the working tree, commit only the changes made for the task, and write history that explains the decisions behind each commit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thoughtbot/rails-consultant/commit
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.

Any agent
npx skills add thoughtbot/rails-consultant --skill commit
Clone the repo
git clone --depth 1 https://github.com/thoughtbot/rails-consultant

Made for: Claude Code.

Or install rails-consultant, the plugin that ships this one along with the rest of its 15 skills.

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/thoughtbot/rails-consultant/commit/github.svg)](https://agentmods.dev/skills/thoughtbot/rails-consultant/commit)
Your own site
<a href="https://agentmods.dev/skills/thoughtbot/rails-consultant/commit"><img src="https://agentmods.dev/badge/skills/thoughtbot/rails-consultant/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/thoughtbot/rails-consultant/commit"><img src="https://agentmods.dev/badge/skills/thoughtbot/rails-consultant/commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,524 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.00020 $0.01524
Opus 5.5 $0.00008 $0.00610
Sonnet 5.5 $0.00004 $0.00305
Haiku 4.5 $0.00002 $0.00152

Measured 23d ago against content hash c0726651a3d9, 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 23d 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 · 147 lines

How it starts

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

Commit

The history is the audit log for what an agent did. Months from now someone runs git blame on a line nobody remembers writing, and the commit message is the only record of why it's there. Inside /ship it matters sooner: the /diff-explainer step never saw the session that wrote the code. It gets the SPEC, the step reports, and these commits, and it won't annotate a decision nobody wrote down.

So a message's job is what /diff-explainer does for a whole branch, for one commit: the why, the risks, the tradeoffs, and what got tried and thrown away. The diff already shows what changed.

An argument is context ("addressing review feedback", "the migration is risky"), never the literal message. Don't stop to ask for approval. Being asked to commit means make the call, then report it.

1. See what's there

git status --porcelain -uall
git diff
git diff --staged
git log --oneline -15

Nothing to commit? Say so and stop. Never make an empty commit.

2. Commit only what you made

The tree can hold more than your work: a file the user was editing, a scratch script, a .env with credentials, a log someone forgot. Commit what this session produced. Leave the rest alone and name it in your report, so it doesn't look like an oversight.

Can't tell if a change is yours? It isn't. Leaving it out costs a follow-up commit. Putting it in ships someone else's half-finished work under your name. Never commit anything that looks like a secret, even if you made it.

3. Group into atomic commits

One commit is one change that stands on its own. The test: if someone reverted this commit alone, would what's left still make sense and still pass? Pass means it's atomic. Fail means it's split too fine or bundled with something unrelated.

  • A feature is one commit even across ten files. Model, migration, controller, view, and tests together. Splitting them gives commits that are each broken.
  • Tests go with the code they test, not in a commit of their own.
  • A refactor that makes room for the feature is its own commit, first. It changes no behavior, so a reviewer can trust it on a green suite and read the feature commit without the noise.
  • A bug fix found along the way is its own commit, even inside the same file.
  • A dependency bump the feature needed is usually its own commit.

Read the full file on GitHub · 147 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. 23d ago First seen · 147 lines · 20 tokens per session scan A c0726651a3d9

Subscribe to this mod's changes

commit is a skill published in the GitHub repository thoughtbot/rails-consultant (39 stars, last pushed 9d ago), licensed MIT. It adds 20 tokens to every session and 1,524 once invoked, about $0.0001 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-11-07.

Related

commit compared with skills from other repositories

commit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
committhoughtbot/rails-consultantSkill399d agoMITA20Claude Code
pr-reviewoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA59Claude Code
phx-pr-reviewoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA61Claude Code, Codex
pre-commitRealDougEubanks/ClaudeMarketplaceSkill11mo agoMITA46Claude Code
phx-watch-proliver-kriska/claude-elixir-phoenixSkill5783d agoMITA35Claude Code, Codex
commitfoyzulkarim/skillsSkill432d agononeA49Claude Code
git-for-research-codehajibabaie/combinatorial-optimization-skillsSkill215mo agoMITA117Claude Code