git-commit
Skill2 starsChanged 13 months agoMITView on GitHub
Create git commits with succinct technical messages. Activates when user requests git commit creation.
194 other projects use a version of this.
Adopted by
Most recently taken up by
- 27Aaron/skillstheir own version, first seen Nov 29, 2026
- autohandai/community-skillstheir own version, first seen Nov 29, 2026
- MorningStar0709/trae-agent-enhancementstheir own version, first seen Nov 29, 2026
- dhruvanbhalara/skillstheir own version, first seen Nov 29, 2026
- CodelyTV/agent-harnesstheir own version, first seen Nov 29, 2026
- microsoft/devsquad-copilottheir own version, first seen Nov 29, 2026
Used with
Projects with it also use git-pr, git-branch 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.
klauswgSkillgit-pr
Prepare, review, publish, or update a complete GitHub pull request for the current repository, including local commit readiness, safe push strategy, semantic title validation, repository-native PR templates, issue linking, and checks verification. Use when the user asks to draft, create, submit, publish, open, or update a pull request. Always require the user to review and explicitly approve the exact final PR before any push or GitHub write.
Also in 13 projects that use this
MicrosoftSkillgit-branch
Branch management for implementation. Use when you need to create a branch, switch branches, checkout, or verify branching strategy before implementing code. Do not use for commits (use git-commit), pull requests (use pull-request), or advanced git operations (rebase, merge).
Also in 6 projects that use this
mjun0812Skillgithub-pr-create
Pull Requestを作成するSkill。現在のbranchからpull requestを作成する。言語指定可能。 ユーザーが「PR作って」「pull request作成して」のように依頼したら使うこと。
Also in 3 projects that use this
klauswgSkillgit-issue
Prepare, review, create, or update evidence-based GitHub issues for the current repository with duplicate detection, repository-native templates, valid labels, and post-publication verification. Use when the user asks to draft, file, submit, publish, edit, or refine a GitHub issue, bug report, feature request, performance issue, or technical proposal. Always require the user to review and explicitly approve the exact final issue before any GitHub write.
Also in 3 projects that use this
mgiovaniSkilldocs-adr
Create a numbered Architecture Decision Record (ADR) documenting a technical
Also in 3 projects that use this
gologo13Skillgit-push
Push current branch to origin and sync with remote updates; keywords: git, rebase. Use only on explicit request; before execution, review diffs and list impact scope.
Also in 8 projects that use this
- +1 more from klauswg
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 194
- github/awesome-copilot★ 42ksame name
- doocs/leetcode★ 37ksame name
- tisfeng/Easydict★ 15ksame name
- doocs/md★ 14ksame name
- spinabot/brigade★ 11ksame name
- PC2005-cloud/dsh-pet★ 6.8ksame name
- GitTools/GitVersion★ 3.1ksame name
- igorescodro/alkaa★ 1.6ksame name
- microsoft/hve-core★ 1.6ksame name
- mattmireles/gemma-tuner-multimodal★ 1.5ksame name
184 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 repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- prompt-engineerSkill
- writing-styleSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 9 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 153 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Create technical commit messages, one per logical unit.
- Very specific: line 12
Branch check: Run git branch --show-current.
- Very specific: line 13
Run scripts/group-changes.sh (default: working tree).
- Distinctive: line 19
Split: if one group mixes intents (e.g., a fix and an unrelated refactor in the same dir)
- Distinctive: line 20
Merge: if two adjacent groups belong together (e.g., type changes + the code consuming them, when tightly coupled and <3 files)
- Distinctive: line 21
Couple tests with implementation: when implementation + its tests total <3 files.
- Distinctive: line 23
Verify: every changed file is staged exactly once across the commit sequence.
- Very specific: line 38
If $CLAUDE_PLUGIN_ROOT isn't set, the script lives at skills/git-commit/scripts/group-changes.sh relative to this skill's plugin root.
- Distinctive: line 52
Circular deps: if fix A requires refactor B, commit B first (minimal scope), then A.
- Distinctive: line 73
Never: use heredoc with attribution.
- Distinctive: line 74
Default to multiple small commits over one large commit.
- Distinctive: line 75
Every changed file staged exactly once across the sequence.
- Distinctive: line 76
If >6 commit units, surface the plan and ask before executing.
“Common” is measured: kept by at least 6 in 10 of the 153 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
Git Commit
Create technical commit messages, one per logical unit. Use the bundled grouping script for the deterministic part; spend tokens on Fix/Feature/Refactor refinement and message wording.
Process
- Branch check. Run
git branch --show-current. If onmain/masterand the user did not explicitly request committing there, create a feature branch first (feat/<description>orfix/<description>) and switch to it. - Run
scripts/group-changes.sh(default: working tree). Output is JSON:files[]— every changed path with{status, type, top}wheretype ∈ {types, config, code, test, doc}groups[]— pre-bucketed by(type, top-level dir)order[]— suggested commit sequence (types → config → code → test → doc)
- Refine
codegroups. The script can't tell Fix from Feature from Refactor. For eachtype=codegroup, read the diff (git diff -- <files>) and decide:- Fix vs Feature vs Refactor vs Types vs Config (re-classify if the script guessed wrong)
- Split if one group mixes intents (e.g., a fix and an unrelated refactor in the same dir)
- Merge if two adjacent groups belong together (e.g., type changes + the code consuming them, when tightly coupled and <3 files)
- Couple tests with implementation when implementation + its tests total <3 files. Otherwise commit tests separately, after implementation.
- Stage and commit per refined unit. Use
git add -pif a single file straddles two units. - Verify every changed file is staged exactly once across the commit sequence.
Script invocation
# Default: full working tree (staged + unstaged + untracked)
$CLAUDE_PLUGIN_ROOT/scripts/group-changes.sh
# Only what's already staged
$CLAUDE_PLUGIN_ROOT/scripts/group-changes.sh --staged-only
# Diff against a ref (PR-style: "everything since branch point")
$CLAUDE_PLUGIN_ROOT/scripts/group-changes.sh --vs=mainIf $CLAUDE_PLUGIN_ROOT isn't set, the script lives at skills/git-commit/scripts/group-changes.sh relative to this skill's plugin root.
Refinement rules
Coupling boundaries (one commit):
- Type changes + code that uses them
- Renames + import updates that follow
- Implementation + its tests when <3 files total
Independence (separate commits):
- Different modules touched in unrelated ways
- Bug fix + unrelated refactor
- Docs always separate unless trivially coupled to one code change
Circular deps: if fix A requires refactor B, commit B first (minimal scope), then A.
Message guidelines
Describe what changed in the code, not progress:
- "Add null checks to user validation"
- "Extract database logic into separate module"
- "Fix memory leak in event handler cleanup"
Avoid milestone language:
- ❌ "Implement user authentication feature"
- ❌ "Continue work on API endpoints"
- ❌ "Add tests and improve code quality"
1-2 sentences. No body unless a non-obvious why.
Hard rules
- Never commit directly to
main/masterunless the user explicitly requests it. - Never include
Co-Authored-By: ClaudeorGenerated with Claude Codefooters. - Never use heredoc with attribution.
- Default to multiple small commits over one large commit.
- Every changed file staged exactly once across the sequence.
- If >6 commit units, surface the plan and ask before executing.
Edge cases
- All changes one logical unit → one commit; ignore the group split.
- Mixed intents in a single file →
git add -pto stage hunks separately. - Script reports
codefor a config-like file (rare, e.g., custom build script) → manually re-classify; the heuristic is path-based. - Renames → script picks the destination path; rename + edits in same file land in one commit.
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.

