git-smart-commit
Skill0 starsChanged 8 months agoMITView on GitHub
Generates well-formatted Conventional Commits messages based on the current branch name and actual code changes. Parses branch pattern {type}/{ticket-id} to extract commit type and ticket ID automatically. Suppresses Co-authored-by and other trailers.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- hmj1026/dhpktheir own version, first seen Oct 13, 2026
- hbollon/skillstheir own version, first seen Oct 13, 2026
- Snigdha-Chowdhury/dev-toolkittheir own version, first seen Oct 8, 2026
- lencamo/skillstheir own version, first seen Jul 4, 2026
- DawnMoon1542/agents-skillstheir own version, first seen Jun 9, 2026
- xmqywx/claude-code-skillstheir own version, first seen Apr 2, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- DawnMoon1542/agents-skills★ 8same name
- hmj1026/dhpk★ 2same name
- xmqywx/claude-code-skills★ 2same name
- abdullah1854/ClaudeSuperSkills★ 1same name
- Snigdha-Chowdhury/dev-toolkit★ 1same name
- hbollon/skills★ 0same name
- lencamo/skills★ 0same name
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.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
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 78
Do NOT append any trailers automatically.
- Distinctive: line 107
If there are no staged changes, check for unstaged changes and stage relevant files.
- Distinctive: line 108
If nothing to commit, report clearly: "Nothing to commit."
- Distinctive: line 109
Never guess ticket IDs — only use what is in the branch name.
- Very specific: line 110
Never add Co-authored-by, Signed-off-by, or any other trailers.
“Common” is measured: kept by at least 6 in 10 of the 4 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 Smart Commit Skill
Generate a git commit by analyzing the current branch name and staged/unstaged changes.
Steps
- Get current branch name
git branch --show-current Parse branch to extract type and ticket ID
Branch pattern:
{type}/{ticket-id}or{type}/{ticket-id}-optional-slugBranch Type Ticket feat/TRAN-123featTRAN-123fix/TRAN-456-login-bugfixTRAN-456refactor/PROJ-42-authrefactorPROJ-42main/ no pattern(infer from diff) (none) Regex:
^(feat|fix|docs|style|refactor|test|chore|ci|build|perf)/([A-Z]+-[0-9]+)(-.*)?$- Analyze changes
Understand what changed: files added/modified/deleted, purpose of the change.git diff --staged git diff git status --short Compose commit message
Format:
{type}: {ticket} {subject} {optional body — only for complex changes, max 3-4 bullets}Rules:
- Subject in imperative mood: "Add" not "Added", "Fix" not "Fixed"
- Subject max 72 characters total (including
type: ticket) - English only
- No
Co-authored-by:trailer - No
Signed-off-by:trailer - No
--no-verifybypass - Body only when the change is non-trivial
Fallback (branch has no ticket pattern):
{inferred-type}: {subject}Stage and commit
git add -A # or specific files if partial staging is appropriate git commit -m "$(cat <<'EOF' {commit message here} EOF )"Do NOT append any trailers automatically.
Allowed Types
| Type | When to use |
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting, whitespace (no logic change) |
refactor | Code restructure without feature/fix |
test | Adding or fixing tests |
chore | Build process, tooling, dependencies |
ci | CI/CD configuration |
build | Build system changes |
perf | Performance improvement |
Examples
feat: TRAN-123 Add login page component
fix: TRAN-456 Fix token expiration check
refactor: PROJ-42 Simplify auth middleware
docs: Update README with installation steps
chore: Upgrade dependencies to latest versionsNotes
- If there are no staged changes, check for unstaged changes and stage relevant files.
- If nothing to commit, report clearly: "Nothing to commit."
- Never guess ticket IDs — only use what is in the branch name.
- Never add
Co-authored-by,Signed-off-by, or any other trailers.
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.

