Claude-code-sdk commit
Create a git commit with a good message. Use when the user says "commit", "save changes", "commit this", or asks to create a commit after making code changes.
install
source · Clone the upstream repo
git clone https://github.com/SeifBenayed/cloclo
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/SeifBenayed/cloclo "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/commit" ~/.claude/skills/seifbenayed-claude-code-sdk-commit && rm -rf "$T"
manifest:
.claude/skills/commit/SKILL.mdsource content
Git Commit
Review all staged changes and create a well-crafted commit message.
Steps
- Run
to see staged and unstaged changesgit status - Run
to review staged changes in detailgit diff --cached - If nothing is staged, run
and suggest what to stage based on the changesgit diff - Run
to see recent commit message style in the repogit log --oneline -5 - Draft a concise commit message following conventional commits format:
— new featurefeat:
— bug fixfix:
— code restructuring without behavior changerefactor:
— documentation changesdocs:
— adding or updating teststest:
— build, tooling, config changeschore:
- Focus the message on why not what — the diff shows what changed
- Keep the first line under 72 characters
- Add a body paragraph if the change is non-trivial
- Create the commit
Do NOT push unless explicitly asked. Do NOT use
--no-verify or skip hooks.
$ARGUMENTS