conventional-commit
Installation
SKILL.md
Conventional Commit Assistant
When to use
Use this skill when the user asks to create a git commit or wants Conventional Commits formatting.
Workflow
- Check repo state
- Run
git status -sbandgit diff --stat. - If no changes, report and stop.
- Run
- Review changes
- Inspect relevant diffs (
git diff,git diff --staged). - Identify the primary change intent (feature, fix, docs, etc.).
- Inspect relevant diffs (
- Confirm staging
- If nothing is staged, ask whether to stage all (
git add -A) or stage selectively.
- If nothing is staged, ask whether to stage all (
- Compose Conventional Commit
- Format:
type(scope): summaryortype: summary. - Use
!for breaking changes:type(scope)!: summary. - Keep summary imperative, <= 50 chars if possible.
- If needed, add body and footers (e.g.,
BREAKING CHANGE: ...).
- Format:
- User confirmation
- Show the proposed message and the exact
git commitcommand. - Ask for approval before running the commit.
- Show the proposed message and the exact
- Run commit
- Execute
git commit -m "..."(add additional-mfor body/footer).
- Execute
Type guidance
Use the smallest type that matches intent. Common types: feat, fix, docs, chore, refactor, test, ci, build, perf, style, revert.
Edge cases
- No commit history: skip
git logchecks and ask the user for the intended type/scope. - Mixed changes: pick the dominant intent, or split commits after asking.
- Breaking change: require
!and aBREAKING CHANGE:footer.
References
See references/conventional-commits.md for the spec summary and examples.
Related skills
More from iemong/agent-skills
commit-summary
|
10slack
|
8mermaid-state-diagram
Generate Mermaid stateDiagram-v2 diagrams from code or specs, with extraction summary and uncertainty notes.
8dig
|
7browser-history
|
7skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
6