git-commit
Skill2 starsChanged 4 months agoMITView on GitHub
Git conventional commits — use this skill whenever authoring new git commits from working tree changes, writing commit messages, or planning how to organize changes into commits. Also trigger when grouping changes into logical commits, cleaning up a messy working tree, or when any agent needs to create commit messages as part of a workflow. NOT for non-authoring git operations (branching, merging, rebasing, cherry-picking, reverting, squashing, resolving conflicts, creating PRs, git configuration, or exploring git history).
109 other projects use a version of this.
Adopted by
Most recently taken up by
- BUGLAN/skillstheir own version, first seen Oct 6, 2026
- thunderstormwang/AgentSkillstheir own version, first seen Oct 5, 2026
- zlliang/skillstheir own version, first seen Oct 5, 2026
- ShalomPrinz/go2-dispatchertheir own version, first seen Oct 4, 2026
- devantler-tech/ksailtheir own version, first seen Oct 3, 2026
- benbrackenbury/skillstheir own version, first seen Oct 3, 2026
Used with
Projects with it also use github-pr-create, git-branch and 9 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.
mpagotSkillgithub-pr-create
Creates a GitHub pull request from staged git changes, handling commit, push, and PR creation in one workflow. Activate when the user asks to "create PR", "open pull request", "push and create PR", "submit PR", or wants to send their changes upstream to os-autoinst-distri-opensuse.
Also in 3 projects that use this
CarpeWuSkillgit-branch
Creates Git branches following naming conventions. Use when creating feature, bugfix, hotfix, or release branches, or when the user asks to create a new branch.
Also in 3 projects that use this
denghuinowSkillgit-release
Git 项目版本发布自动化工具。执行完整的发布流程:提交所有修改、更新版本号(若有)、 生成 CHANGELOG、创建 git tag 并推送到远程仓库。基于语义化版本 (major/minor/patch)。 支持有 package.json 的项目,也支持无 package.json 的项目(版本从最新 git tag 或 VERSION 等文件获取)。
Also in 4 projects that use this
GoogleSkillgithub-pr-review
Review a GitHub pull request and leave inline comments in a natural human reviewing voice, indistinguishable from comments typed by hand on the GitHub web UI. Deliberately bounded to defects a reader can settle by looking at the anchored line, rather than a deep audit, so every comment is cheap for the author to check. Scales to 2-20 comments by PR size, parallelises analysis across sub-agents, drafts for approval, then posts individually with human pacing. Use when the user says "review this PR", "review PR 123", pastes a github.com/.../pull/N link, or asks for comments on a pull request. Don't use for reviewing local uncommitted changes or a diff against a branch (use the `review` skill for that).
Also in 3 projects that use this
strantalisSkillgh-cli
Standardize all GitHub interactions via the GitHub CLI (`gh`) instead of ad-hoc URLs, UI clicks, or direct REST API calls. Use when you need to read or change GitHub state (repos, issues, pull requests, reviews, check status, Actions workflows/runs, releases, labels, milestones, discussions, gists) and want deterministic output (prefer `--json` + `--jq`). Also use when the user provides a GitHub URL, including deep links like `https://github.com/OWNER/REPO/pull/123`, `.../issues/123`, `.../pull/123/files`, or comment permalinks like `#issuecomment-...`, and you need to fetch the underlying PR/issue/thread and reply. Fall back to `gh api` only when there is no first-class `gh NOUN VERB` command.
Also in 4 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 3 projects that use this
Other versions109 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 109
- github/awesome-copilot★ 40ksame name
- decebals/claude-code-java★ 747same name
- devantler-tech/ksail★ 166same name
- forefy/.context★ 151same name
- diodeme/Gold-Band★ 143same name
- Dimon94/skills★ 107same name
- eduardo-sl/go-agent-skills★ 72same name
- omergocmen/CrewCtl★ 70same name
- tsaol/awesome-claude★ 67same name
- huangwb8/skills★ 50same name
99 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 repository66 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-architectureSkill
- agent-evaluationSkill
- agent-memorySkill
- agent-post-trainingSkill
- agent-self-evolutionSkill
- agent-tool-designSkill
- api-designSkill
- application-architectureSkill
- brainstormSkill
- code-reviewerSkill
- coding-agent-designSkill
- concurrency-designSkill
- context-engineeringSkill
- dockerSkill
- game-audioSkill
- game-designSkill
- game-narrativeSkill
- game-patternsSkill
- game-performanceSkill
- game-renderingSkill
- game-visualsSkill
- git-prSkill
- godot-shaderSkill
- godotSkill
- gpu-rendering-architectureSkill
- grafanaSkill
- helmSkill
- homelab-monitoringSkill
- k3sSkill
- k8s-networkingSkill
- k8s-operationsSkill
- k8s-storageSkill
- k8s-workloadsSkill
- knowledge-baseSkill
- level-designSkill
- llm-inference-servingSkill
- loggingSkill
- logqlSkill
- love2d-fennelSkill
- love2dSkill
- ml-platform-architectureSkill
- ml-post-trainingSkill
- multi-agent-collaborationSkill
- nix-dendriticSkill
- nix-packagingSkill
- nixSkill
- odin-designSkill
- odin-gamedevSkill
- orchestratorSkill
- physical-ai-systemsSkill
- plannerSkill
- prd-to-storiesSkill
- prd-writingSkill
- promqlSkill
- pr-reviewerSkill
- python-designSkill
- rag-designSkill
- ray-data-pipelinesSkill
- ray-kubernetes-infrastructureSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 8 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 85 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Check .commitlintrc*, commitlint.config.*, .czrc, CONTRIBUTING.md
- Distinctive: line 22
Always: run git log --oneline -20 — even when config files exist.
- Distinctive: line 36
If both staged and unstaged exist, work only with staged — the user staged those intentionally.
- Distinctive: line 40
Read the actual diffs — filenames hint, but diff content tells you *what changed and why*.
- Distinctive: line 56
Test files go with the code they test — not with all other tests
- Distinctive: line 60
Commit order: infrastructure → refactors → features/fixes → standalone docs
- Distinctive: line 87
After all commits are made, check for beads context:
- Very specific: line 89
If .beads/ does not exist in the project root → skip, done.
- Very specific: line 90
Run bd mine — if no claimed tasks → skip, done.
- Very specific: line 91
If claimed tasks exist, ask the user: *"Does this commit close task <id>(<title>), or is this intermediate progress?"*
- Distinctive: line 101
Subject-line only. No body: Every commit is a single line.
- Very specific: line 112
No other footers. Never add Co-authored-by.
- Very specific: line 138
When a change spans types, use the type that describes the production change (feat or fix).
- Very specific: line 141
Use top-level directory or module name: src/auth/ → scope auth
- Distinctive: line 155
Stop if you catch yourself thinking any of these:
“Common” is measured: kept by at least 6 in 10 of the 85 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 Conventional Commits
Analyze working tree changes, group by intent, write conventional commit messages that respect repo conventions.
References (read when needed):
references/worked-example.md— read when grouping is ambiguous or changes span multiple intents
Workflow
Step 1: Detect repo conventions
Do this before writing any messages. Repo-specific rules override defaults here.
- Check
.commitlintrc*,commitlint.config.*,.czrc,CONTRIBUTING.md - Always run
git log --oneline -20— even when config files exist. Config defines the rules; history shows what the team actually does. When they conflict, history wins.
Repo history is the ground truth. A
feat:in a repo that usesfeature:looks wrong forever.
Step 2: Assess the working tree
Run git status:
| State | Action |
| Staged files exist | Work only with staged → Step 3 → Step 5 → Step 6 |
| Unstaged/untracked only | Analyze all → Step 3 → Step 4 → Step 5 → Step 6 |
| Clean | Nothing to commit — tell the user |
If both staged and unstaged exist, work only with staged — the user staged those intentionally.
Step 3: Analyze the changes
Read the actual diffs — filenames hint, but diff content tells you what changed and why.
git diff --cached # staged
git diff # unstaged
git ls-files --others --exclude-standard # untrackedFor each change, identify: intent (feature? fix? cleanup?), scope, logical connections to other changes.
Step 4: Group changes into commits
Only applies when no staged files exist.
Group by shared intent, not shared type. Two unrelated bug fixes = two fix: commits.
- Test files go with the code they test — not with all other tests
- Config/migrations that enable a feature go with that feature
- Standalone docs (README, docs/*.md) get their own
docs:commit - Pure refactors stay separate from feature/fix work
- Commit order: infrastructure → refactors → features/fixes → standalone docs
See references/worked-example.md for tricky grouping decisions.
Step 5: Present the plan — STOP and wait
Do not run any git add or git commit until the user confirms. Show the proposed commits as a numbered list with the message and files for each:
1. feat(auth): add token revocation
- src/auth/revoke.py (new)
- tests/test_auth_revoke.py (new)
2. docs: update README with features section
- README.md (modified)Then ask: "Does this look right, or do you want to change anything?" and stop. Wait for the user's response before proceeding.
The user might adjust groupings, rename messages, or reorder commits — this is the whole point. Commits are permanent, so the plan must be reviewed first. This applies even for a single commit.
Step 6: Execute the commits
For each group: git add <files> → compose message → git commit -m "<message>"
Step 7: Beads task closure (if applicable)
After all commits are made, check for beads context:
- If
.beads/does not exist in the project root → skip, done. - Run
bd mine— if no claimed tasks → skip, done. - If claimed tasks exist, ask the user: "Does this commit close task
<id>(<title>), or is this intermediate progress?"- Close →
bd close <id> --reason "<brief reason from commit message>" - Intermediate → no action
- Close →
Message format
<type>(<scope>): <description>Subject-line only. No body. Every commit is a single line. If the subject can't convey the change, rewrite the subject — don't append a body. The diff shows the how; the subject captures the what.
The only exception is footers for breaking changes or issue refs, separated by a blank line:
feat(api)!: change auth token format
BREAKING CHANGE: tokens issued before v2 are no longer accepted
Refs: #452No other footers. Never add Co-authored-by.
Subject line rules:
typeis requiredscopeis optional — a short noun for the affected area (e.g.,auth,api,cli)description: lowercase, imperative mood ("add" not "added"), no trailing period- Under 72 characters total
- Breaking changes: append
!before colon - Describe the change, not what triggered it — never "address review findings", "code review fixes", "apply feedback", or "per suggestions"; state what was clarified, fixed, or added
Change types:
| Type | When to use |
feat | New capability that didn't exist before |
fix | Corrects incorrect behavior |
docs | Documentation only — READMEs, standalone guides |
style | Formatting, whitespace — no logic change |
refactor | Restructuring without behavior change |
perf | Primary purpose is improving performance |
test | Adding/updating tests with no production code change |
build | Build system or external dependency changes |
ci | CI/CD configuration changes |
chore | Routine maintenance that doesn't fit elsewhere |
revert | Reverts a previous commit |
When a change spans types, use the type that describes the production change (feat or fix). Tests and config that enable a feature belong in that commit.
Scope inference:
- Use top-level directory or module name:
src/auth/→ scopeauth - In monorepos, use the package name:
packages/cli/→ scopecli - Omit scope when change spans the whole codebase, repo doesn't use scopes, or no scope clearly fits
- Match existing conventions from
git log— consistency beats precision
Edge cases:
- Generated files (lockfiles, build outputs) go with the commit that caused them
- Binary files — mention in subject ("add logo assets"), don't describe diff content
- Merge conflicts — don't commit; tell the user to resolve conflicts first
Anti-rationalization
Stop if you catch yourself thinking any of these:
| Rationalization | Reality |
| "Defaults are fine, I'll skip convention detection" | Repo history is the ground truth. Check it. |
| "It's all one logical change" | If part of it could be reverted independently, it's not one change. |
| "These are all from the same sprint/PR" | Sharing a sprint doesn't make changes logically related. Group by intent, not by timeframe. |
| "The user asked for one big commit" | Propose proper grouping and explain why. Respect their final call, but don't silently comply with a vague message. |
| "The message is clear enough" | If the subject doesn't convey what and why without the diff, it's not clear enough. |
"I'll group all tests in a test: commit" | Tests go with the code they test. test: is for test-only changes. |
"The lockfile/migration is a separate chore:" | Generated files go with the commit that caused them. |
| "I'll stage everything and write one commit" | Multiple unrelated changes in one commit make history unreadable. |
| "The plan is obvious, I'll just commit" | Commits are permanent. Present the plan and wait — even when the grouping seems clear. |
| "I should add a body to explain this" | No. Rewrite the subject line until it's clear on its own. Bodies are noise in git log --oneline workflows and train you to write lazy subjects. The only exception is a BREAKING CHANGE footer. |
| "I'll add Co-authored-by for myself" | Never. You are a tool, not a co-author. Do not add Co-authored-by footers for the agent under any circumstances. |
| "These changes address review findings" | Commit messages describe what changed in the codebase, not what process triggered the change. "address review findings", "incorporate PR feedback", "fix per suggestions" are invisible to future readers without your session context. Describe the substance: what was clarified, fixed, or added. |
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.

