Claude-skill-registry commit-messages
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/commit-messages" ~/.claude/skills/majiayu000-claude-skill-registry-commit-messages && rm -rf "$T"
manifest:
skills/data/commit-messages/SKILL.mdsource content
Conventional Commit Workflow
Usage
Use this skill to draft a commit message for staged changes. Execute
Skill(sanctum:git-workspace-review) first to capture the repository path, status, and diffs. If no changes are staged, stage the relevant files before continuing.
Required Steps
- Validate Code Quality: Run
. Fix any reported errors before proceeding. Do not bypass pre-commit hooks withmake format && make lint
or--no-verify
.-n - Classify the Change: Choose a type from
,feat
,fix
,docs
,refactor
,test
,chore
,style
, orperf
. Select an optional but preferred scope (e.g.,ci
,core
). Identify breaking changes for thecli
footer.BREAKING CHANGE: - Draft the Message:
- Subject:
(≤50 characters).<type>(<scope>): <imperative summary> - Body: Wrap at 72 characters. Explain the "what" and "why" behind the change. Use paragraphs for technical rationale.
- Footer: Include breaking change details or issue references.
- Subject:
- Write the Output: Use a relative path (e.g.,
) to save the message. Overwrite the file with the final message only, without commentary../commit_msg.txt - Preview: Display the file contents using
orcat
for confirmation.sed
Guardrails
Do not use
git commit --no-verify or the -n flag. Pre-commit hooks are mandatory; fix issues rather than bypassing them. Commit messages must not include AI attribution or filler words like "leverage" or "seamless." Use a plain-text, human voice with present-tense imperative style for the subject line. Multi-line bodies are required for complex changes to explain the technical reasoning.
Technical Integration
Combine this skill with
Skill(imbue:catchup) or /git-catchup if additional context is needed. If the type or scope is unclear, re-examine the diffs or consult the project plan before finalizing the draft.
Troubleshooting
Address specific errors reported by pre-commit hooks. Run
make format to resolve styling issues and make lint for logic or style violations. Fix all detected issues before re-attempting the commit. If a merge conflict occurs, use git merge --abort to return to a clean state. A rejected commit indicates a failed quality gate; analyze the output and apply fixes before retrying.