Claude-skill-registry committing
Creates well-structured git commits following conventional commit format. Use when committing changes, preparing commits, or when asked to commit code.
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/committing" ~/.claude/skills/majiayu000-claude-skill-registry-committing && rm -rf "$T"
manifest:
skills/data/committing/SKILL.mdsource content
Git Committing
Commit Message Format
<type>(<scope>): <subject> [optional body] [optional footer]
Types
| Type | Description |
|---|---|
| New feature |
| Bug fix |
| Documentation only |
| Formatting, no code change |
| Code change without fix/feature |
| Performance improvement |
| Adding or fixing tests |
| Build, CI, tooling changes |
Rules
- Subject line: Under 50 characters, imperative mood ("add" not "added")
- Body: Wrap at 72 characters, explain "why" not "what"
- Scope: Optional, indicates affected area (e.g.,
,parser
,api
)ui - Breaking changes: Add
after type or!
in footerBREAKING CHANGE:
Workflow
-
Run
to see changesgit status -
Run
to review modificationsgit diff -
Check recent commits with
for style consistencygit log --oneline -5 -
Stage specific files (avoid
)git add -A -
Write commit message using HEREDOC:
git commit -m "$(cat <<'EOF' type(scope): subject Body explaining why this change was made. EOF )" -
Verify with
git status
Safety
- Never commit secrets, credentials, or .env files
- Never use
unless explicitly requested--no-verify - Never amend commits that have been pushed
- Create NEW commits after hook failures, don't amend