/murnana-git:commit [optional scope or intent hint]from murnana-git
Split the working tree into one-why commits and create them after approval.
Ships in murnana-git. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Split the working tree into well-formed commits and create them, following the project's own commit rules when they exist, or a Why-driven convention otherwise.
These blocks were filled in when the skill loaded. Do not re-run their commands. (Bash completed with no output) means the list is empty.
Branch and changed files (git status --short --branch; ?? = untracked):
git status --short --branch 2>&1 || true
Unstaged changes (git diff --numstat: added, deleted, path):
git diff --numstat 2>/dev/null || true
Staged changes (git diff --cached --numstat):
git diff --cached --numstat 2>/dev/null || true
Last 15 commit subjects, merges excluded:
git log --format='%s' --no-merges -15 2>/dev/null || true
If the first block says not a git repository, stop and say so. If there is nothing to commit (no changed, staged or untracked files), say so and stop.
Treat $ARGUMENTS (if any) as an additional hint about which changes to focus on or what the user's intent is — it does not override the steps below.
Every command's output is spent tokens. Always choose the narrowest form that answers the question at hand:
git status --short --branch, never bare git status — short format plus branch and tracking info in a single line.--numstat over --stat for diff summaries: no histogram bars, no padding, and pathnames are never abbreviated, so they stay usable as arguments.--numstat first; read hunks only for the paths you are actually grouping into a commit, and read them with -U1.git log --oneline -<n>, never an unbounded git log.AskUserQuestion tool, never as a plain-text question at the end of a reply. This includes every "wait for approval" and every "ask how to proceed": show the plan or the failure in the reply, then call AskUserQuestion with options such as 「この内容で進める」 and 「修正する」. The dialog can hide the reply, so say in the question itself, in one line, what is being approved.$ARGUMENTS, the conversation, the files or command output already answer. Where a step gives a default, use it and state it in the plan instead of asking.AskUserQuestion is unavailable (a non-interactive run), don't guess: stop before changing anything and list the questions in the reply.The Current state section already gives the branch, the staged and unstaged file lists, and recent history.
Read the actual changes path-scoped, never as one bare git diff:
git diff -U1 -- <paths> / git diff --cached -U1 -- <paths>, limited to the files you are about to group into a commit.--numstat line above is enough — skip their hunks.?? above) have no diff. Read them directly, and only the ones whose content actually affects how the work is split.If some changes are already staged, treat that staging as intentional and respect it.
Check the sources listed in references/project-rules.md, in order. If a rule is found there, it is the only rule that applies — do not mix in anything from the fallback convention below.
Use the commit subjects in the Current state section to infer a format; do not re-run git log.
If you fall back to inferring a format from that history (weaker than an explicit rule), say so explicitly when presenting the plan in Step 4.
Before reading a candidate rule file, Glob for it first — only Read files that actually exist.
git commit — do not run it manually as well.--no-verify unless the user explicitly asks for it.git add <paths> — never git add -A or git add ..git restore --staged <paths>, then re-add only the paths for this commit.git commit -F - <<'EOF') to avoid mangling Japanese text, line breaks, or punctuation. Run git commit as a Bash call of its own, without cd, && chains or $(...), so a sandbox exclusion for git commit * can match it.git push, git commit --amend, or git reset unless explicitly instructed.git commit, a hook injects Commit created: <hash> <subject> next to the tool result. Use those lines to report the result in Japanese after all commits — do not run git log to confirm.Commit created: line follows a git commit, the commit failed: stop, report its output as-is, and ask how to proceed.gpg-agent or 1Password), follow references/sandbox-signing.md: guide the user to exclude git commit from the sandbox instead of committing unsigned.What SKILL.md sets; muted values are Claude Code's defaults
Bashjq '((.tool_response | if type == "object" then (.stdout // "") else (. // "") end | tostring) | [scan("^[[][^ ]+ (?:[(]root-commit[)] )?([0-9a-f]{7,40})[]] (.*)")] | map(.[0] + " " + .[1]) | join("; ")) as $log | if ((.tool_input.command // "") | test("(^|[;&|([:space:]])git[[:space:]]+commit([[:space:]]|$)")) and ($log != "") then {hookSpecificOutput:{hookEventName:"PostToolUse",additionalContext:("Commit created: " + $log)}} else empty end'2 skills in this plugin
npx claudepluginhub murnana/murnana-claude-code-plugin --plugin murnana-gitOther plugins' skills for the same job