commit
Skill9 starsChanged 8 months agoMITView on GitHub
Stage and commit the working tree, splitting unrelated changes into separate conventional commits. Use when the user says 'commit this', 'save my work', 'wrap this up', 'check in the changes', wants the working tree split into logical commits with conventional-commit messages, or is ready to record progress in git before moving on.
- Reads credentials
193 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- Magnus-Gille/claude-skillstheir own version, first seen Oct 5, 2026
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- tam159/next-roletheir own version, first seen Oct 4, 2026
Used with
Projects with it also use create-branch, review-r 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.
SentrySkillcreate-branch
Create a git branch following Sentry naming conventions. Use when asked to "create a branch", "new branch", "start a branch", "make a branch", "switch to a new branch", or when starting new work on the default branch.
Also in 4 projects that use this
luischanciSkillreview-r
Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.
Also in 3 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
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
AWSSkillissue
Implement a GitHub issue end-to-end — branch, code, test, docs, and commit.
Also in 9 projects that use this
luischanciSkillvalidate-bib
Validate bibliography entries against citations in all manuscript files. Find missing entries and unused references.
Also in 3 projects that use this
- +2 more from luischanci
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- microsoft/vscode★ 196ksame name
- ToolJet/ToolJet★ 41ksame name
- openai/symphony★ 28ksame name
- EverMind-AI/EverOS★ 13ksame name
- GetStream/Vision-Agents★ 8.1ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- Windy3f3f3f3f/claude-code-from-scratch★ 2.7ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- pedrohcgs/claude-code-my-workflow★ 1.6ksame name
- bubblelabai/BubbleLab★ 1.1ksame name
183 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 repository20 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- dotfiles/CLAUDE.mdCLAUDE.md
- adrSkill
- architectureSkill
- autopilotSkill
- designSkill
- factorySkill
- featureSkill
- fixSkill
- issuesSkill
- new-projectSkill
- prdSkill
- prSkill
- reviewSkill
- rfcSkill
- roadmapSkill
- securitySkill
- specSkill
- tddSkill
- verify-designSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Follow the global CLAUDE.md rule: *"Split commits by logical concern.
- Distinctive: line 27
If the tree is clean (nothing staged, nothing unstaged, no untracked relevant files), stop and tell the user there's nothing to commit.
- Very specific: line 36
Test additions or fixes (test:)
- Distinctive: line 43
If two groups depend on each other (group B doesn't build without group A), order them so each commit leaves the codebase working.
- Distinctive: line 44
If the tree really does represent one concern, one commit is correct — don't invent splits.
- Distinctive: line 49
Body (optional): only when the *why* is non-obvious — a hidden constraint, a past incident, a tradeoff the reader wouldn't infer from the …
- Distinctive: line 64
Wait for explicit approval.
- Distinctive: line 72
Commit with a HEREDOC for the message:
- Very specific: line 81
Do not: add Co-Authored-By trailers unless the user has that configured as a repo convention (check recent commits in step 1).
- Very specific: line 88
Ask how to proceed. Common paths: fix the issue and retry as a *new* commit (not --amend), or unstage and escalate to the user.
“Common” is measured: kept by at least 6 in 10 of the 174 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
Stage and commit the current working tree.
Guardrails
A few things that matter, and why:
- Keep commits focused — one concern per commit. A bug fix and a refactor, even if both are tiny, go in separate commits. This is what makes
git logandgit blameuseful later, and it's what lets reviewers (andgit revert) isolate one change without dragging in others. - Don't push, force-push, amend, reset, or touch the remote. Those belong to
/pror the user. This skill's job ends at the local commit — staying in that lane keeps the two operations reviewable independently. - Don't bypass pre-commit hooks with
--no-verify. Hooks exist to catch real problems (lint, types, secrets). If one fails, the commit didn't happen — fix the underlying issue and commit again. Do not--amendafter a hook failure: since the commit didn't land,--amendwould rewrite the previous commit, quietly overwriting earlier work. - Stage explicit paths, not
git add ./-A. Wildcards sweep in whatever's lying around —.env, credentials, build artifacts, half-finished scratch files. Naming paths explicitly keeps that stuff out. - Follow the global CLAUDE.md rule: "Split commits by logical concern; each commit leaves the codebase working."
Steps
- Survey the working tree — run in parallel:
git status git diff --stat git log --oneline -10status+diff --statshow the full picture of what changed.log --oneline -10shows the repo's existing commit style so your messages match it.- If the tree is clean (nothing staged, nothing unstaged, no untracked relevant files), stop and tell the user there's nothing to commit.
- Read the actual diffs — for any files where the nature of the change isn't obvious from the path, run
git diff <file>(orgit diff --cached <file>for already-staged changes) so you understand what each hunk does. Don't guess — a file namedauth.gocould contain a typo fix or a complete rewrite. Group by logical concern — walk every changed file and assign it to exactly one commit group. Valid concern boundaries:
- A new feature or capability (
feat:) - A bug fix (
fix:) - A refactor that preserves behavior (
refactor:) - Docs-only changes (
docs:) - Test additions or fixes (
test:) - Config, tooling, or build changes (
chore:,build:,ci:) - Performance work (
perf:) - Security fixes (
security:)
Rules:
- A single file can be split across commits using
git add -pif its hunks belong to different concerns. Prefer this over lumping. - If two groups depend on each other (group B doesn't build without group A), order them so each commit leaves the codebase working.
- If the tree really does represent one concern, one commit is correct — don't invent splits.
- A new feature or capability (
- Draft commit messages — for each group:
- Type: feat / fix / refactor / docs / test / chore / perf / security / build / ci
- Subject: imperative mood, under 72 chars, no trailing period. Describe the outcome, not the mechanism. (
fix: reject empty passwordsnotfix: added if statement) - Body (optional): only when the why is non-obvious — a hidden constraint, a past incident, a tradeoff the reader wouldn't infer from the diff. Skip the body for self-evident changes.
- Match the casing and style of recent commits from step 1.
Present the plan — show the user the full commit plan BEFORE touching git:
Commit 1/N — <type>: <subject> Files: path/to/file1 path/to/file2 [Body if present] Commit 2/N — ...Wait for explicit approval. Accept:
- "yes" / "proceed" / "looks good" → commit as planned
- Targeted edits →
"merge 2 and 3","reword commit 1 as ...","move file X from commit 2 to commit 1","drop commit 3 entirely"— revise the plan and re-present until approved - "no" / "stop" → abort, leave the working tree untouched
- Commit sequentially — for each approved group:
git resetany previously staged changes that don't belong to this commit (start from a clean index each time)- Stage explicit paths:
git add path/to/file1 path/to/file2(orgit add -p path/to/filefor partial-file splits) - Commit with a HEREDOC for the message:
git commit -m "$(cat <<'EOF' <type>: <subject> <body if any> EOF )" - Do not add
Co-Authored-Bytrailers unless the user has that configured as a repo convention (check recent commits in step 1).
On pre-commit hook failure — stop immediately. Show the user:
- The exact hook error output
- Which commit was being created
- The current index state (
git status)
Ask how to proceed. Common paths: fix the issue and retry as a new commit (not
--amend), or unstage and escalate to the user. Never bypass with--no-verify.- Report — after all commits land:
wheregit status git log --oneline -<N><N>is the number of commits created. Show both to the user so they can verify the result and see the new history.
Scope boundary
This skill is local-only. It stops after the final git log. If the user wants to push and open a PR, they run /pr next.
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.

