Commit
Create a git commit for the staged changes, branching off the default branch first if neededFrom its SKILL.md
npx -y skills add KonH/ClaudeTools --skill commitAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.6 KB, 352 tokens by cl100k_base, as published. Nobody here has run it
Create a git commit for the staged changes.
Pre-commit step: branch selection
Before committing, check the current branch:
git branch --show-current- Determine the repository's default branch (
mainormaster— e.g. viagit symbolic-ref --short refs/remotes/origin/HEAD, falling back to whichever ofmain/masterexists locally). - If the current branch is the default branch: create and switch to a new branch via
git checkout -b feature/<short-kebab-description>, where<short-kebab-description>is a meaningful slug derived from the change being committed (e.g.feature/province-division-config). Do this before staging/committing anything else. - If it is anything other than the default branch (i.e. already on a feature branch or other non-default branch): leave the branch as-is — do not create or switch branches.
Rules
- Subject line: short, imperative, no period
- Explain why, not what — the diff already shows what changed
- No bullet-point summaries of changed files
- Always add a
Co-Authored-Bytrailer for the model in use, e.g.Co-Authored-By: Claude Fable 5 <[email protected]> - If a project-specific pre-commit step bumps a version number, only ever increment the minor/patch segment. The major (or milestone) segment is a human decision — never bump it automatically, and never let an overflowing minor segment roll over into it. If a project's version-bump instructions are ambiguous about this, stop and ask a human rather than guessing.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.