/commit:commitfrom commit
Creates commits matching repository style with intentional staging, secret detection, and conventional commit support.
Ships in commit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
scripts/git-info.sh — Emits a JSON snapshot of repository state for commit preparation.Resolve the path relative to this
SKILL.mdfile's directory;
--no-verify, no --amend/rebase/force-push, no pushing unless asked.bash scripts/git-info.sh --help during normal flow. Use --help only if the script fails or you are editing the script itself.Gather information
bash scripts/git-info.sh
Read the JSON snapshot first. Use it to inspect:
repoRoot, branchstatus.hasStaged, status.hasUnstaged, status.hasUntrackedfiles.staged, files.unstaged, files.untrackedstats.staged, stats.unstaged, stats.untrackedrecentCommitsIf ambiguity remains after the JSON snapshot, inspect only the needed files with normal git commands:
git diff -- path/to/file
git diff --cached -- path/to/file
git diff --stat
git diff --cached --stat
git status --short
git log --oneline -20
Stage changes intentionally
git add path/to/file1 path/to/file2
# or:
git add -A # when all changes belong to the commit to create
Verify the staged set before committing:
git diff --cached --stat
git diff --cached
If the staged diff contains unrelated changes, STOP and ask what to do.
Write a concise commit message
Infer commit style from recent subjects:
type(scope): msg, use Conventional Commits.Subject rules:
Body rules:
Create the commit
Always use git commit -F - with a quoted heredoc delimiter so the shell
does not expand variables or backticks inside the message.
git commit -F - <<'COMMIT_MSG'
type(scope): concise summary
COMMIT_MSG
# or with body:
git commit -F - <<'COMMIT_MSG'
type(scope): concise summary
Body paragraph that can span multiple lines naturally.
No artificial splits, no embedded-newline breakage.
COMMIT_MSG
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mrclrchtr/skills --plugin commit