commit-messages
Generate conventional commit messages from staged changes with correct type/scope. Triggers: commit message, conventional commit, git commit Use when: generating commit messages in conventional commits format DO NOT use when: full PR preparation - use pr-prep instead.
$ Instalar
git clone https://github.com/athola/claude-night-market /tmp/claude-night-market && cp -r /tmp/claude-night-market/plugins/sanctum/skills/commit-messages ~/.claude/skills/claude-night-market// tip: Run this command in your terminal to install the skill
name: commit-messages description: | Generate conventional commit messages from staged changes with correct type/scope.
Triggers: commit message, conventional commit, git commit Use when: generating commit messages in conventional commits format DO NOT use when: full PR preparation - use pr-prep instead. category: artifact-generation tags: [git, commit, conventional-commits, changelog] tools: [Bash, Write, TodoWrite] complexity: low estimated_tokens: 600 dependencies:
- sanctum:shared
- sanctum:git-workspace-review
Conventional Commit Workflow
When to Use
Use this skill to write a commit message for staged changes.
As a prerequisite, run Skill(sanctum:git-workspace-review) so the repository path, status, and diffs are already captured. If that skill reveals no staged changes, stage the desired files before continuing.
Required Steps
- Classify the change
- Choose the correct type:
feat,fix,docs,refactor,test,chore,style,perf, orci. - Select a concise scope (directory/module or
core,cli, etc.). The scope is optional but preferred. - Decide if the change is breaking. If so, plan a
BREAKING CHANGE:footer.
- Choose the correct type:
- Draft the message
- Subject:
<type>(<scope>): <imperative summary>(scope optional, ≤50 characters). - Body: Wrap at 72 characters per line, explain the "what" and "why", and list key bullets if useful.
- Footer: Add
BREAKING CHANGE: …or issue references if needed.
- Subject:
- Write the output
- The prompt passes a destination path (e.g.,
{0|commit_msg.txt}). - Overwrite the file with only the final commit message—no commentary.
- The prompt passes a destination path (e.g.,
- Preview
- Display the file path and contents (
cat <file>orsed -n '1,120p' <file>) for confirmation.
- Display the file path and contents (
Guardrails
- Never mention AI tools or assistants in the commit message.
- Use the present-tense, imperative style for the subject line.
- Include a multi-line body for any non-trivial change (more than one file or complex logic).
- If multiple types apply, pick the highest-impact type (e.g.,
featoverchore).
Integration Notes
- Combine with
Skill(imbue:catchup)or/git-catchupwhen you need additional context before drafting. - If unsure about the type or scope, rerun the diff commands or consult the specification or plan before finalizing.
Repository
