commit-conventions
Skill4 starsChanged 9 months agoMITView on GitHub
Enforce conventional commits format with proper types, scopes, and breaking change notation. Use when the user is committing code, writing commit messages, asks about commit format, or when you are about to create a git commit. Always apply this skill before running git commit.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- future-mine/claude-skilltheir own version, first seen Aug 7, 2026
- theyoungastronauts/polaristheir own version, first seen Aug 3, 2026
- tovrleaf/openkatatheir own version, first seen Jun 22, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- theyoungastronauts/polaris★ 4same name
- future-mine/claude-skill★ 1same name
- tovrleaf/openkata★ 1same 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.
In this repository78 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rules/agents.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/claude-initial-setup.mdcCursor rule
- parallel-task-executionSkill
- subagent-patternsSkill
- task-coordinationSkill
- agent-communicationSkill
- context-managementSkill
- multi-agent-orchestrationSkill
- deploy-strategiesSkill
- github-actions-guideSkill
- pipeline-patternsSkill
- anthropic-sdk-guideSkill
- prompt-engineeringSkill
- tool-use-patternsSkill
- automated-review-setupSkill
- pr-standardsSkill
- review-checklistSkill
- file-organizationSkill
- immutability-patternsSkill
- naming-conventionsSkill
- branching-strategySkill
- pr-workflowSkill
- migration-patternsSkill
- query-optimizationSkill
- schema-design-guideSkill
- error-tracingSkill
- log-analysisSkill
- systematic-debuggingSkill
- django-admin-customizationSkill
- django-orm-masterySkill
- drf-api-patternsSkill
- docker-compose-guideSkill
- dockerfile-best-practicesSkill
- multi-stage-buildsSkill
- express-error-handlingSkill
- middleware-patternsSkill
- rest-api-nodeSkill
- async-fastapiSkill
- dependency-injection-fastapiSkill
- pydantic-validationSkill
- concurrency-patterns-goSkill
- error-handling-goSkill
- idiomatic-goSkill
- automation-triggersSkill
- hook-recipesSkill
- pre-post-hooksSkill
- junit-testingSkill
- maven-gradle-guideSkill
- spring-boot-patternsSkill
- mcp-resource-patternsSkill
- mcp-server-creationSkill
- mcp-tool-designSkill
- context-optimizationSkill
- knowledge-persistenceSkill
- memory-patternsSkill
- caching-strategiesSkill
- lazy-loading-patternsSkill
- profiling-guideSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Follow this exact format:
“Common” is measured: kept by at least 6 in 10 of the 3 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
Conventional Commits
Standard format for commit messages that enables automated changelogs, semantic versioning, and clear project history.
When to Use
- Writing any git commit message
- Reviewing commit history for consistency
- Setting up commit linting (commitlint, husky)
- Generating changelogs or release notes
- Any time
git commitis about to be executed
Core Patterns
Commit Message Structure
Follow this exact format:
<type>(<optional-scope>): <description>
<optional body>
<optional footer(s)>The first line (subject) must be under 72 characters. Use imperative mood ("add feature" not "added feature" or "adds feature").
# Simple commit
git commit -m "feat: add user registration endpoint"
# With scope
git commit -m "fix(auth): prevent token refresh race condition"
# With body and footer
git commit -m "feat(api): add pagination to list endpoints
Implement cursor-based pagination for all collection endpoints.
Default page size is 20, max is 100.
Closes #142"Commit Types
| Type | When to Use | Triggers Version Bump |
feat | New feature or capability | MINOR (0.X.0) |
fix | Bug fix | PATCH (0.0.X) |
refactor | Code change that neither fixes nor adds | None |
docs | Documentation only | None |
test | Adding or fixing tests | None |
chore | Maintenance, deps, tooling | None |
perf | Performance improvement | None |
ci | CI/CD configuration changes | None |
style | Formatting, whitespace, semicolons | None |
build | Build system or external deps | None |
revert | Reverts a previous commit | Depends |
Breaking Changes
Mark breaking changes with ! after the type/scope, and include a BREAKING CHANGE: footer:
# Breaking change with bang notation
git commit -m "feat(api)!: change authentication from API keys to OAuth2
BREAKING CHANGE: All API consumers must migrate to OAuth2 tokens.
API key authentication is removed entirely."
# Breaking change in refactor
git commit -m "refactor!: rename User model fields
BREAKING CHANGE: firstName -> givenName, lastName -> familyName.
Run migration 2024_03_rename_user_fields."Scopes
Scopes indicate the area of the codebase affected. Keep them consistent within a project:
# Good: consistent, short scopes
feat(auth): add SSO login
fix(auth): handle expired refresh tokens
feat(api): add rate limiting middleware
fix(ui): correct modal z-index on mobile
chore(deps): upgrade express to v5
test(api): add integration tests for /users
# Bad: inconsistent or verbose scopes
feat(authentication-module): add SSO # too verbose
fix(src/components/Modal): fix z-index # file path as scope
feat(USER_API): add endpoint # inconsistent casingAnti-Patterns
What NOT to Do
- Vague messages:
fix: stuff,chore: updates,feat: changes - Past tense:
feat: added login page(usefeat: add login page) - Uppercase first letter:
feat: Add login(usefeat: add login) - Trailing period:
fix: correct null check.(drop the period) - Multiple concerns: One commit doing a feat + fix + refactor — split them
- Missing type:
update dependencies(usechore: update dependencies) - Type as description:
refactor: refactor auth module(userefactor(auth): extract token validation)
# BAD
git commit -m "fixed bug"
git commit -m "WIP"
git commit -m "feat: Added new feature to handle the user login flow and also fixed a bug"
# GOOD
git commit -m "fix(auth): prevent null pointer on missing session cookie"
git commit -m "feat(auth): add login flow with email verification"Quick Reference
feat: New feature -> MINOR version bump
fix: Bug fix -> PATCH version bump
refactor: Code restructuring -> No version bump
docs: Documentation -> No version bump
test: Tests -> No version bump
chore: Maintenance -> No version bump
perf: Performance -> No version bump
ci: CI/CD changes -> No version bump
style: Formatting only -> No version bump
build: Build system -> No version bump
revert: Revert previous commit -> Depends
Format: <type>(<scope>): <description>
Breaking: Add ! after type/scope + BREAKING CHANGE footer
Subject: Imperative, lowercase, no period, under 72 chars
Body: Wrap at 72 chars, explain WHY not WHATDoes 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.

