Agent skill
git-commit-message
Generate semantic commit messages in English. Use when the user asks for a commit message or semantic commit guidance. Prefer the user’s stated change intent and context, and keep the message consistent with the actual change.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/git-commit-message
Metadata
Additional technical details for this skill
- short description
- Semantic commit messages
SKILL.md
Git Commit Message
Generate one semantic commit message that captures the change at the right level: intent and effect first, details second.
Output
Provide:
- One semantic commit message in English.
- Alternatives only if the user asks for options.
Format
Default to <type>(<scope>): <summary>.
If scope is unclear, omit it or ask one quick clarification.
Examples:
docs(cli): simplify installation sectionfix(parser): handle empty input
Workflow
-
Build a change summary from context.
- Prefer the user’s stated purpose, constraints, and affected area.
- Treat code edits as evidence of the change, not the full story.
-
Validate against the actual change.
- Use staged changes when available; otherwise use the user’s described edits.
- If the stated intent conflicts with the change, ask a brief clarification.
-
Choose
typeandscope.- Pick the smallest accurate
type. - Choose a narrow, stable
scopethat names the primary area changed.
- Pick the smallest accurate
-
Write the summary.
- Present tense, factual, information-dense.
- Prefer explicit intent and effect when available.
- If no intent is provided, describe the change at a semantic level without inventing reasons.
Heuristics
- Optimize for information density. Avoid embellishment.
- Keep
type,scope, andsummarycomplementary. Avoid overlap. - Choose a scope that adds signal. Do not repeat obvious repo or product names.
- Prefer semantic outcomes over mechanical descriptions of edits.
- Do not infer intent when it is not stated. Ask one brief question only when required for correct
type,scope, or intent.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?