git-conventions
Skill1 starsChanged 2 months agoApache-2.0View on GitHub
Use when the user asks to commit, stage, branch, diff, write a commit message, or perform any git operation, and when the user asks to describe or summarise a change for review, such as a merge request or pull request description (MR, PR). Also use when discussing version control workflows or git safety.
- Commits and pushes
12 other projects use a version of this.
Adopted by
Most recently taken up by
- HMBSbige/skillstheir own version, first seen Oct 3, 2026
- RodrigoSouzaS/claudeSkillstheir own version, first seen Sep 24, 2026
- lossless-group/lossless-agent-skillstheir own version, first seen Aug 15, 2026
- Orchardxyz/agent-skillstheir own version, first seen Aug 10, 2026
- Bravo6Dev/skillstheir own version, first seen Jul 15, 2026
- MusserLab/lab-claude-skillstheir own version, first seen Jul 5, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- sordi-ai/skill-everything★ 20same name
- rloisell/rl-agents-n-skills★ 8same name
- lossless-group/lossless-agent-skills★ 4same name
- metraton/gaia★ 4same name
- sefaertunc/Worclaude★ 4same name
- MusserLab/lab-claude-skills★ 2same name
- Bravo6Dev/skills★ 1same name
- fbarrento/laravel-agent-kit★ 1same name
- HMBSbige/skills★ 1same name
- sefaertunc/anthropic-watch★ 1same name
2 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 repository10 other files it gives its agents.
- bias-analysisSkill
- c4-graphSkill
- code-reviewSkill
- debugSkill
- evidence-based-analysisSkill
- planSkill
- skillSkill
- software-engineerSkill
- tddSkill
- terseSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 54
Before committing, the code must compile and tests must pass, none failing or ignored.
- Distinctive: line 58
Never amend to modify files: add a fix commit and explain the reason.
- Distinctive: line 59
Use git freely when checking differences with the previous version.
- Distinctive: line 92
Always add a body for: breaking changes, security fixes, data migrations, and reverts.
- Very specific: line 95
Never in a commit message: "this commit does", "I", "we", "now", "currently", "as requested by" (use a Co-authored-by trailer), AI …
- Distinctive: line 123
When asked to describe a change for review, whatever the forge calls it (merge request, pull request):
- Distinctive: line 126
Write a concise markdown description of the work done to a file.
“Common” is measured: kept by at least 6 in 10 of the 11 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 Conventions
When to use
- User asks to commit, stage, diff, or perform any git operation
- User asks to create a branch or write a commit message
- User asks to check differences with a previous version
- User asks to describe or summarise a change for review (merge request, pull request)
- User mentions "git", "commit", "branch", "diff", "MR", "PR", or "version control"
- User is ready to commit after completing a task
Overview
Rules for safe and consistent git usage, from the commit to the change description.
Reviewing code or answering review feedback is the
code-review skill. Forge commands live in its
gitlab.md (glab) and github.md
(gh) reference files.
Forge routing
Pick the forge CLI (gh or glab) in this order. Never guess.
- An explicit argument or user statement wins. A project path or URL names the forge.
- Otherwise read
git remote get-url origin. Hostgithub.comroutes togh; host containinggitlabroutes toglab. - Unknown host: check
gh auth statusandglab auth statusfor a matching configured host. Still ambiguous: ask the user.
Missing origin remote: ask the user.
Git versus forge
git owns local state. The forge CLI owns everything on the server.
| Operation | Tool |
| stage, commit, branch, local diff, log, worktree | git only |
| push | git push — command rules below unchanged |
| MR/PR create, description, edit | forge CLI — never a clipboard; assign me, pick the reviewer from the change (rule in the forge file) |
| MR/PR diff for review | forge CLI — local git diff only for uncommitted work |
| threads, approvals, merge, CI status | forge CLI only |
| rebase / branch update of a pushed MR/PR branch | forge CLI only — never local rebase plus force-push |
Concrete lifecycle commands per forge: gitlab.md (GitLab, glab) and
github.md (GitHub, gh).
Rules
Before committing, the code must compile and tests must pass, none failing or ignored.
- Push only when the user asks for it in the current turn. Never push on your own after a commit. Push the current branch to its upstream, never to
masterormaindirectly. - Never use
--force. - Never amend to modify files: add a fix commit and explain the reason.
- Use git freely when checking differences with the previous version.
- A task should be committed when tests pass (with assertions) and code coverage is verified.
Commit message
Terse and exact. Why over what: the diff already says what changed.
Subject
<type>(<scope>): <imperative summary>, scope optional.
Types:
feat:for featurefix:when fixing the codebaserefac:for refactoring, mostly to prepare or finish a featchore:to cleanup the codebase, removing dead codedocs:when touching .md files or documentationtest:when touching test onlyperf:for a measured performance changebuild:orci:for build tooling or pipeline changesrevert:when reverting a prior commit
Rules: imperative mood ("add", "fix", "remove", never "added" or "adds"), 50 characters when possible and 72 at most, no trailing period, no restating the file name when the scope already says it. Match the project convention for capitalisation after the colon.
Body
Skip it when the subject is self-explanatory. Add one only for a non-obvious why, a
breaking change, migration notes, or linked issues. Wrap at 72 characters, bullets with
-, issue references last (Closes #42, Refs #17).
Always add a body for: breaking changes, security fixes, data migrations, and reverts. Future debuggers need the context.
Never in a commit message: "this commit does", "I", "we", "now", "currently", "as
requested by" (use a Co-authored-by trailer), AI attribution, emoji unless the project
convention requires it.
Examples:
- Not:
feat: add a new endpoint to get user profile information from the database - Yes:
feat(api): add GET /users/:id/profile Mobile client needs profile data without the full user payload to reduce LTE bandwidth on cold-launch screens. Closes #128 - Breaking change:
feat(api)!: rename /v1/orders to /v1/checkout BREAKING CHANGE: clients on /v1/orders must migrate to /v1/checkout before 2026-06-01. Old route returns 410 after that date.
Adapted from the MIT-licensed caveman-commit skill by Julius Brussee.
Change description
When asked to describe a change for review, whatever the forge calls it (merge request, pull request):
- Write a concise markdown description of the work done to a file.
- Route per Forge routing, then create or update the MR/PR from that file with the forge CLI: commands in gitlab.md or github.md.
Boundaries
This skill owns git usage, commit messages, forge routing, the git-versus-forge
boundary, and the MR/PR lifecycle files. Review flows, threads, and suggestions
belong to code-review. Never create, read, or store
forge tokens.
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.

