commit
Skill29 starsChanged 8 months agoMITView on GitHub
Commit the current changes as atomic commits, recording risks, tradeoffs, and alternatives considered.
- Reads credentials
188 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- daledesilva/obsidian_inktheir own version, first seen Nov 9, 2026
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Nov 8, 2026
- jisuzzzz/haechitheir own version, first seen Nov 8, 2026
- dirien/yet-another-agent-harnesstheir own version, first seen Nov 8, 2026
- denysdovhan/skillstheir own version, first seen Nov 8, 2026
- toy-crane/claude-code-playbook-templatetheir own version, first seen Nov 8, 2026
Used with
Projects with it also use validate-plan, act-on-feedback and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
shawn-dumasSkillvalidate-plan
Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.
Also in 5 projects that use this
MicrosoftSkillact-on-feedback
Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.
Also in 3 projects that use this
decocmsSkilladd-mcp-tools
Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration
Also in 3 projects that use this
MicrosoftSkillgenerate-run-commands
Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.
Also in 3 projects that use this
mitsuhikoSkilloebb-scotty
Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.
Also in 3 projects that use this
mitsuhikoSkillpi-share
Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.
Also in 3 projects that use this
Other versions188 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- stevepolitodesign/skills★ 1099% same
Wrote their own version · 187
- microsoft/vscode★ 195ksame name
- TryGhost/Ghost★ 56ksame name
- ToolJet/ToolJet★ 41ksame name
- ShareX/ShareX★ 41ksame name
- openai/symphony★ 27ksame name
- ccusage/ccusage★ 19ksame name
- ryoppippi/ccusage★ 19ksame name
- windmill-labs/windmill★ 18ksame name
- EverMind-AI/EverMemOS★ 14ksame name
- EverMind-AI/EverOS★ 14ksame name
177 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- ask-claudeSkill
- diff-explainerSkill
- domain-modelSkill
- eli5Skill
- implement-with-tddSkill
- multi-lens-reviewSkill
- preparatory-refactorSkill
- prSkill
- risk-scoreSkill
- rubber-duckSkill
- shipSkill
- sliceSkill
- traceSkill
- understandSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 168 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 43
Never commit anything that looks like a secret, even if you made it.
- Distinctive: line 60
When unsure, fewer commits.
- Distinctive: line 98
Write these for a teammate skimming git log, not for the code, in thoughtbot's [voice and tone][voice]:
- Distinctive: line 106
Don't list the files you touched.
“Common” is measured: kept by at least 6 in 10 of the 168 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 -15Nothing 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.
When unsure, fewer commits. Over-split history reads worse than cohesive history.
4. Stage exactly the group
Whole files: git add <paths>. Never git add . or git add -A, which sweeps in
everything step 2 left out.
One file holding two groups: stage only the hunks for this one. git add -p needs
a terminal you don't have, so write those hunks to a patch and
git apply --cached <patch>. Check git diff --staged before every commit, since
a wrong patch fails quietly into a commit of the wrong lines.
Hooks run. If one fails or rewrites files, surface what it said, don't route
around it. No --no-verify, no amending, no pushing. This skill only adds new
commits on top.
5. Write the message
Subject: imperative, capitalized, no period, around 50 characters. Code
identifiers in backticks. "Cache Mitie::NER behind a mutex", not "Updated
caching".
Body: blank line, then prose wrapped at 72. Open with why: the problem, or what this makes possible. Then whichever of these the session actually turned up. Most commits have one or two. None is fine.
- Tried and dropped. "Memoizing without a lock failed during asset precompile, because the model file doesn't exist yet." This saves the next person from suggesting it.
- Risks. Deploy ordering, a migration that locks a big table, a new hard dependency, what happens at 10x the data, anything that fails silently.
- Tradeoffs. What got worse so something else got better, and why that trade.
- Left out on purpose. What this doesn't handle yet, stated as a fact.
- Not checked. Suite not run, suite red, a path only tested by hand, a service stubbed that behaves differently for real. An audit log that rounds "didn't run it" up to silence is worse than none.
Write these for a teammate skimming git log, not for the code, in thoughtbot's
voice and tone:
- Conversational. "We" for the team, never "I". Contractions, easy words, short sentences. No "this ensures", "robust", "it's worth noting".
- Numerals ("3 retries", not "three retries"), unless the number starts a sentence. The Oxford comma. No emoji.
Don't list the files you touched. Bullets are fine when there are 3 separate risks. Otherwise prose.
Never invent a why. The good reasons come from this session: what you tried, what broke, what surprised you. None of that is in the diff. If you're committing work you didn't watch get made and nothing records why, write what the change does and stop. A plausible reason that's wrong is worse than none, because the next reader trusts it. If the user or the task gave you a reason, use it.
Trivial changes (typo, version bump, formatting) get a subject and no body.
End every message with the co-author trailer this session normally appends, naming the model you're actually running, after a blank line.
Example
Charge the card before creating the `Order`
Creating the order first left orphans whenever Stripe declined, and
the cleanup job that deleted them raced customers retrying checkout.
We tried wrapping both in a transaction, but a transaction can't roll
back a charge that already went through. Charging first means a crash
between the charge and the insert leaves a paid charge with no order.
That's rarer and visible in Stripe, so we traded one bug for a
smaller one. `ReconcileChargesJob` catching it is not built yet.
Checkout specs pass against the Stripe test double. Real declines and
network timeouts were not exercised.
Co-Authored-By: Claude <noreply@anthropic.com>6. Report
Show git log --oneline for the new commits. Then one line each for anything
worth knowing: a split you made, files you left uncommitted and why, a hook that
complained.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

