create-commit-message
Skill8 starsChanged 9 months agoMITView on GitHub
Generate a Conventional Commit message from staged git changes when the user asks to write a commit message, create a commit, or format a commit
4 other projects use a version of this.
Adopted by
Most recently taken up by
- r3bl-org/r3bl-open-coretheir own version, first seen Oct 17, 2026
- nortonx/ai-tooling-freetheir own version, first seen Oct 13, 2026
- isac7722/skillstheir own version, first seen Oct 13, 2026
- richardkmichael/claude-rodintheir own version, first seen Sep 25, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- r3bl-org/r3bl-open-core★ 486same name
- isac7722/skills★ 1same name
- nortonx/ai-tooling-free★ 1same name
- richardkmichael/claude-rodin★ 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.
In this repository79 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyze-competitorsSkill
- analyze-dependenciesSkill
- analyze-metricsSkill
- audit-accessibilitySkill
- audit-api-consistencySkill
- audit-performanceSkill
- audit-securitySkill
- capture-pr-visualsSkill
- commitSkill
- create-adrSkill
- create-api-designSkill
- create-bug-reportSkill
- create-data-modelSkill
- create-decision-logSkill
- create-docSkill
- create-estimationSkill
- create-experiment-designSkill
- create-feature-flag-planSkill
- create-gtm-briefSkill
- create-handoffSkill
- create-incident-reportSkill
- create-interview-guideSkill
- create-jtbd-canvasSkill
- create-metrics-frameworkSkill
- create-onboarding-guideSkill
- create-ostSkill
- create-planSkill
- create-postmortemSkill
- create-pr-descriptionSkill
- create-prdSkill
- create-prSkill
- create-release-checklistSkill
- create-release-notesSkill
- create-retroSkill
- create-reviewSkill
- create-rfcSkill
- create-roadmapSkill
- create-rollback-planSkill
- create-runbookSkill
- create-shape-up-pitchSkill
- create-stakeholder-updateSkill
- create-test-planSkill
- create-threat-modelSkill
- create-user-storiesSkill
- debug-systematicSkill
- fastapi-endpoint-patternsSkill
- fix-findingsSkill
- fix-reviewSkill
- flutter-platform-patternsSkill
- flutter-state-managementSkill
- flutter-version-managementSkill
- flutter-widget-patternsSkill
- manage-tech-debtSkill
- nextjs-api-patternsSkill
- nextjs-app-router-patternsSkill
- nextjs-performanceSkill
- product-context-docsSkill
- project-skill-creatorSkill
- project-standardsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 8 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Commit message conventions or contributing guides
- Very specific: line 28
Check for a commitlint.config.js or similar configuration that defines allowed types and scopes
- Distinctive: line 29
If custom conventions exist, follow those instead of the defaults below
- Distinctive: line 35
If nothing is staged, inform the user and suggest staging commands
- Very specific: line 54
If the diff includes both a feature and tests for that feature, the type is feat (tests are part of the feature)
- Very specific: line 55
If the diff includes both a fix and a test that reproduces the bug, the type is fix
- Distinctive: line 56
If you are genuinely unsure, ask the user -- do not guess
- Very specific: line 59
If all changes are in src/auth/ or lib/auth/, scope is auth
- Very specific: line 60
If all changes are in components/Button/, scope is button
- Distinctive: line 61
If changes span multiple directories but share a domain, use the domain name
- Distinctive: line 62
If changes are truly cross-cutting, omit the scope
- Distinctive: line 68
Start with a lowercase imperative verb: "add", "fix", "remove", "update", "refactor"
- Distinctive: line 69
Do not end with a period
“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
Create Commit Message
Overview
Generate a precise, Conventional Commits-formatted commit message by analyzing the staged git diff. The message classifies the change type, infers the scope from changed files, writes a clear subject line under 72 characters, and adds a body for complex changes explaining why the change was made.
Workflow
- Read project context -- Check for
.chalk/docs/engineering/files, especially:- Commit message conventions or contributing guides
- Any custom commit types or scopes used by this project
- Check for a
commitlint.config.jsor similar configuration that defines allowed types and scopes - If custom conventions exist, follow those instead of the defaults below
- Get the staged diff -- Run:
git diff --cached --statfor a high-level overview of changed filesgit diff --cachedfor the full diff contentgit statusto check for unstaged changes the user may have forgotten to stage- If nothing is staged, inform the user and suggest staging commands
Classify the change type -- Analyze the diff content (not just file names) to determine the primary type:
Type When to Use featNew functionality visible to users or consumers of the module fixCorrects a bug -- behavior was wrong, now it is right refactorCode restructuring with no behavior change docsDocumentation only -- README, JSDoc, comments, guides testAdding or updating tests with no production code change choreMaintenance tasks: dependency updates, config changes, tooling perfPerformance improvement with no functional change ciCI/CD pipeline changes (GitHub Actions, CircleCI, etc.) buildBuild system changes (webpack, tsconfig, Dockerfile, etc.) styleCode formatting only -- whitespace, semicolons, no logic change revertReverts a previous commit Decision rules:
- If the diff includes both a feature and tests for that feature, the type is
feat(tests are part of the feature) - If the diff includes both a fix and a test that reproduces the bug, the type is
fix - If you are genuinely unsure, ask the user -- do not guess
- If the diff includes both a feature and tests for that feature, the type is
- Infer the scope -- Determine the scope from the changed files:
- If all changes are in
src/auth/orlib/auth/, scope isauth - If all changes are in
components/Button/, scope isbutton - If changes span multiple directories but share a domain, use the domain name
- If changes are truly cross-cutting, omit the scope
- Match existing scope conventions -- run
git log --oneline -50and extract scopes from prior commits - Scope should be lowercase, typically one word
- If all changes are in
- Write the subject line -- Format:
type(scope): description- Total length: 72 characters maximum (including type and scope)
- Start with a lowercase imperative verb: "add", "fix", "remove", "update", "refactor"
- Do not end with a period
- Describe the what concisely -- the body explains why
- Be specific: "fix null pointer in user lookup" not "fix bug"
- Write the body (if needed) -- Add a body separated by a blank line when:
- The change is not obvious from the subject line alone
- There is important context about why this change was made
- The approach was non-obvious and the reasoning should be documented
- The body should explain motivation, not repeat the diff
- Wrap lines at 72 characters
- Write the footer (if needed) -- Add footers for:
- Breaking changes:
BREAKING CHANGE: <description of what breaks and migration path> - Issue references:
Fixes #123orCloses #456orRefs #789 - Co-authors:
Co-authored-by: Name <email>
- Breaking changes:
- Present the commit message -- Output the complete commit message in a code block. Also output the git command to create the commit so the user can copy-paste it.
Commit Message Format
type(scope): subject line under 72 chars
Optional body explaining WHY this change was made, not WHAT changed
(the diff shows what changed). Wrap at 72 characters.
Motivation: explain the problem or opportunity.
Approach: explain why this approach was chosen over alternatives.
BREAKING CHANGE: description of what breaks and how to migrate
Fixes #123Examples
Simple Feature
feat(auth): add password reset via email linkBug Fix with Context
fix(checkout): prevent double-charge on retry after timeout
When a payment request timed out, the retry logic did not check whether
the original charge succeeded. This caused double-charges for ~0.3% of
transactions. Now we query the payment provider for existing charges
before retrying.
Fixes #892Refactor
refactor(api): extract validation middleware from route handlers
Validation logic was duplicated across 12 route handlers with slight
variations. Extracted into a shared middleware that takes a Zod schema,
reducing duplication and ensuring consistent error responses.Breaking Change
feat(api): require API key for all public endpoints
Previously, rate limiting on public endpoints relied on IP-based
throttling, which was easily circumvented. All public endpoints now
require an API key passed via the X-API-Key header.
BREAKING CHANGE: All API requests must include an X-API-Key header.
Existing clients need to register for an API key at /developer/keys
before upgrading.
Refs #1045Chore
chore(deps): upgrade express from 4.18 to 4.19
Includes security patch for CVE-2024-XXXXX (prototype pollution in
query parser). No breaking changes per the changelog.Subject Line Rules
| Rule | Good | Bad |
| Imperative mood | add user search | added user search |
| Lowercase start | fix timeout | Fix timeout |
| No period | update readme | update readme. |
| Specific | fix null pointer in user lookup | fix bug |
| Under 72 chars | feat(auth): add OAuth2 PKCE flow | feat(authentication-service): add the OAuth2 PKCE flow for single-page applications |
| Describes what, not how | add retry logic for payments | add try-catch block around payment call |
Type Classification Decision Tree
Is there new user-visible functionality?
├── Yes → feat
└── No
Was behavior incorrect before?
├── Yes → fix
└── No
Did only tests change?
├── Yes → test
└── No
Did only docs/comments change?
├── Yes → docs
└── No
Did behavior change?
├── No (same behavior, different structure) → refactor
└── No (same behavior, faster) → perf
Is it CI/CD config?
├── Yes → ci
└── Is it build config?
├── Yes → build
└── Is it formatting only?
├── Yes → style
└── choreAnti-patterns
- Meaningless subjects -- "fix stuff", "WIP", "update", "changes", "misc" communicate nothing. Every commit message must describe a specific change. If you cannot describe it specifically, the commit is doing too many things -- split it.
- Scope that does not match the changed area --
fix(auth): update button coloris wrong. The scope must reflect the area of code that actually changed. If the scope does not match, either the scope is wrong or the files are in the wrong directory. - Body that repeats the diff -- "Changed line 45 from X to Y" is useless as a body. The body explains why -- the what is in the diff. If the subject line fully explains the change, omit the body entirely.
- Multiple unrelated changes in one commit -- If you cannot describe the commit in one subject line, it should be multiple commits. A commit that "add search and fix login and update deps" is three commits.
- Missing BREAKING CHANGE footer -- If the change breaks backwards compatibility for any consumer, the
BREAKING CHANGE:footer is mandatory. Omitting it means consumers get surprised at deploy time. - Past tense -- "fixed", "added", "updated" instead of "fix", "add", "update". Conventional Commits uses the imperative mood because commit messages complete the sentence "This commit will...".
- Overly broad scope --
feat(app): ...orfix(src): ...are not useful scopes. The scope should identify the module, component, or domain -- not the top-level directory. - Commit message longer than the change -- A one-line config change does not need a 10-line body. Scale the message to the complexity of the change.
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.

