How this skill is triggered — by the user, by Claude, or both
Slash command
/git:commit (none — operates on current uncommitted changes)(none — operates on current uncommitted changes)This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Stage the current changes and create a single commit with a Conventional Commit title. Complements `/git:create` (commit → then open a PR).
Stage the current changes and create a single commit with a Conventional Commit title. Complements /git:create (commit → then open a PR).
Read CLAUDE.md and AGENTS.md at the repo root in parallel if they exist. Absorb naming, commit conventions, and language rules before drafting anything.
Run these in parallel:
git status --porcelaingit diff --statgit diff --cached --statgit branch --show-currentIn order:
If the working tree is clean (no staged AND no unstaged changes), stop with: No changes to commit. Do not create empty commits.
If git status --porcelain lists any path matching .env, .env.*, *.pem, *.key, *.cert, or anything under secrets/, stop and list the offending paths. Tell the user to either remove them from the working tree or add them to .gitignore and retry. Never auto-stage secrets.
Resolve the default branch:
gh repo view --json defaultBranchRef -q .defaultBranchRef.name
If gh is unavailable or the call fails, fall back to main. Store as <base>.
If the current branch equals main, master, or <base>, warn and ask via AskUserQuestion:
Run git add -A. Then re-run git diff --cached --stat and present the staged file list to the user as a short summary.
Apply the rules from ../create/reference/type-scope-mapping.md. Quick recap:
feat — new functionalityfix — bug fixrefactor — internal restructure without behavior changechore — tooling, CI, deps, version bumpsdocs — documentation onlytest — test-only changesstyle — formatting onlyScope is the single touched top-level directory, or omitted entirely when the change is cross-cutting.
Format: type(scope): description or type: description.
add, fix, update — not added, fixes)Show the drafted title via AskUserQuestion. Options:
git commit -m "<title>"
Do not pass --no-verify, --amend, or --no-gpg-sign under any circumstance.
If a pre-commit hook fails: show the hook's output, surface the failing command, and stop. Do not retry, do not amend, do not bypass.
Output the short hash (git rev-parse --short HEAD) and the committed title. If the branch has commits ahead of <base>, suggest /git:create as the next step.
Co-authored-by lines..env, .env.*, *.pem, *.key, *.cert, or contents under secrets/.--no-verify, --amend, or --no-gpg-sign./git:create's job.main, master, or the resolved default branch without explicit user confirmation (step 3)./git:create).npx claudepluginhub shoto290/shoto --plugin gitCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.