git-conventions
Skill0 starsChanged 4 months agoMITView on GitHub
Use when asked for branch names, commit messages, or PR descriptions for code changes. Triggers on requests like "give me a branch name", "write a commit message", "draft a PR", or when the user describes a change and expects git metadata in return. Output is always in English.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- HMBSbige/skillstheir own version, first seen Oct 3, 2026
- itsaspacestation/natural-intelligencetheir own version, first seen Sep 25, 2026
- RodrigoSouzaS/claudeSkillstheir own version, first seen Sep 24, 2026
- lossless-group/lossless-agent-skillstheir own version, first seen Aug 15, 2026
- Bravo6Dev/skillstheir own version, first seen Jul 15, 2026
- MusserLab/lab-claude-skillstheir own version, first seen Jul 5, 2026
Used with
Projects with it also use tdd and code-review.
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.
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
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
- itsaspacestation/natural-intelligence★ 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 repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex-proxySkill
- executor-plansSkill
- executor-reviewsSkill
- git-conditional-identitiesSkill
- oh-my-posh-setupSkill
- scheduling-codex-window-startsSkill
- skill-comparisonSkill
- visualizing-leetcode-solutionsSkill
- windows-fe-dev-setupSkill
- ask-orchardSkill
- decide-before-doingSkill
- plan-to-docsSkill
- review-to-docsSkill
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 11 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
- Distinctive: line 16
Run git diff --cached --stat to see staged files.
- Very specific: line 17
If nothing is staged: stop and tell the user: "No changes are staged.
- Distinctive: line 18
If there are staged changes, run git diff --cached to understand the nature of the changes.
- Distinctive: line 23
When asked for branch / commit / PR metadata:
- Distinctive: line 25
Check staging area first: Follow the Staging Check steps above.
- Very specific: line 26
Read git log --oneline -10 to detect the repo's existing commit style (prefixes, capitalization, trailers).
- Very specific: line 27
Check for .github/PULL_REQUEST_TEMPLATE.md.
- Distinctive: line 28
If the repo has no discernible conventions, use the defaults below.
- Distinctive: line 29
All output in English.
- Distinctive: line 67
Keep it short and scannable — reviewers skim, they don't read essays.
- Distinctive: line 69
If the repo has a PR template, fill each section concisely.
- Distinctive: line 70
If not, provide a summary, motivation, and verification steps.
- Very specific: line 72
Never include Co-Authored-By: Claude or similar trailers unless explicitly asked.
“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
Safety Rule
Never commit, push, or create a PR unless the user explicitly asks you to do that specific action. Providing a branch name, commit message, or PR draft is not permission to execute it.
Staging Check (required)
Before producing any git metadata, check the staging area. The types and scope must reflect what's actually staged, not what's in the working tree or on the branch.
- Run
git diff --cached --statto see staged files. Also rungit diff --cached --name-onlyfor a clean file list. - If nothing is staged: stop and tell the user: "No changes are staged. Please stage the changes you want metadata for (e.g.,
git add <files>), then ask again." Do not produce output based on unstaged changes. - If there are staged changes, run
git diff --cachedto understand the nature of the changes. Use this to determine the correct type prefix and scope. - Also check
git log --oneline -10to derive the branch name format the repo uses.
Workflow
When asked for branch / commit / PR metadata:
- Check staging area first. Follow the Staging Check steps above. Do not skip this.
- Read
git log --oneline -10to detect the repo's existing commit style (prefixes, capitalization, trailers). Adopt it. Also inspect merge commits to derive the branch name convention (e.g.,type/descriptionvstype/scope-description). - Check for
.github/PULL_REQUEST_TEMPLATE.md. If present, match its sections exactly. - If the repo has no discernible conventions, use the defaults below.
- All output in English.
Type Prefix Table
| Prefix | When you... |
feat | Add new behavior, capability, or feature |
fix | Correct a bug, crash, or incorrect behavior |
style | Change visuals only — CSS, layout, spacing, icons |
refactor | Restructure code without changing external behavior |
perf | Improve performance without changing behavior |
chore | Update deps, config, build scripts — no product code |
docs | Change documentation only |
test | Add or fix tests only |
Edge cases: visual-only → style, not feat or fix. Logic fix + UI change → fix. Dead code removal → chore.
Branch Name
Derive the branch name format from the repo's actual branch names in git log --oneline (look at merge commits like Merge pull request #N from …). Common patterns:
type/description— two segments (e.g.,feat/i18n,refactor/monorepo)type/scope-description— three segments (e.g.,fix/auth-token-expiry)
Lowercase, kebab-case, 4-5 words max. Match the repo's convention; do not impose a format it doesn't use.
Commit Message
type(scope): brief subject in sentence case
Body paragraph(s) explaining what and why. Hard-wrap at 72 chars.Subject: ≤50 chars, stands alone in git log --oneline. Body: what and why, no filler. Match the repo's style if it uses a different format.
PR Description
- Keep it short and scannable — reviewers skim, they don't read essays.
- Bullet points over paragraphs. One sentence per point.
- If the repo has a PR template, fill each section concisely.
- If not, provide a summary, motivation, and verification steps.
- For UI changes that affect multiple states, include a test prompt the reviewer can paste and run.
- Never include
Co-Authored-By: Claudeor similar trailers unless explicitly asked.
Anti-Patterns
| Don't | Do |
| Produce metadata without checking staging area | Run git diff --cached --stat first; prompt user to stage if empty |
Invent a style without checking git log | Read 10 commits, adopt the repo's conventions |
| Ignore the repo's PR template | Check .github/PULL_REQUEST_TEMPLATE.md |
| Output in Chinese | English for all git metadata |
| Commit / push / create PR without being asked | Only provide the text; let the user execute |
Use fix for CSS-only changes | Use style |
Use feat for visual polish | Use style |
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.

