Analyze staged changes and run the regular or explicit bypass commit workflow
80%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.claude/skills/sce-commit/SKILL.mdOwn this workflow from input through its terminal user-visible response. Follow its steps, gates, and stops in order; do not add, skip, reorder, or merge them. Keep intermediate workflow state private and continue immediately until a defined wait or stop. Resume user waits in this same skill and session. Render user-visible output only from the named workflow layouts or reports. Do not expose raw internal state or add text around a rendered layout or report. Non-SCE helpers may assist, but must return to the active step without changing workflow order, gates, waits, writes, validation, stops, or terminal output. Do not invoke another SCE skill, package, or workflow command.
Both paths below dispatch to the same phase, whose steps and boundaries live in
references/atomic-commit.md. This document holds the control flow — which path
runs, what the phase receives, and how its result branches — and the reference
holds the phase itself.
Read references/atomic-commit.md before running the phase, not after. A regular
run that stops at the staging gate, and a bypass run that finds nothing staged,
both end without ever needing it.
$ARGUMENTS is optional. Split it into two parts before invoking the skill:
[mode-token] [commit context]
mode-token is present only when the first whitespace-separated token is
exactly oneshot or skip, compared case-insensitively. Any other first
token is not a mode token.commit context is everything else: free-form prose that refines message
wording only.A mode-token selects the bypass path. Its absence selects the regular path.
Do not infer the bypass path from anything else — not from the commit context,
not from repository state, and not from the conversation.
Empty $ARGUMENTS is valid. It selects the regular path with no commit
context, and commit intent is inferred from the staged changes alone.
Pass commit context to the Atomic commit phase unmodified. Do not restate,
summarize, or pre-scope it. Never pass the mode-token as commit context.
Staged changes are the source of truth for what is being committed. This command never stages, unstages, or modifies files.
Follow exactly one path.
Before running the phase, stop and prompt the user with the Regular-mode
staging gate layout from references/output.md.
Wait for the user's confirmation. Do not stage files on their behalf, and do not skip this prompt because the working tree looks ready.
After confirmation, read references/atomic-commit.md, then run the Atomic
commit phase with mode: regular and the commit context.
Do not write commit messages yourself.
Branch on status:
blocked -> Render the Blocked layout from references/output.md. Stop.
proposal -> Render the Regular proposal layout from references/output.md,
which covers each proposed commit's message and files, and the split rationale
when more than one commit is proposed.
Then stop. The regular path is proposal-only.
Do not run git commit. Do not offer to commit on the user's behalf. The user
runs the commits they accept.
oneshot or skip)Run git diff --cached --quiet. A zero exit status means nothing is staged.
When nothing is staged, stop with the No staged changes layout from
references/output.md.
Do not stage anything. Do not proceed to the phase.
Read references/atomic-commit.md, then run the Atomic commit phase with
mode: bypass and the commit context.
Bypass mode is the phase's contract for producing exactly one message. Do not restate its overrides here; the Atomic commit phase owns them.
Branch on status:
blocked -> Render the Blocked layout from references/output.md and stop. Do not commit.
bypass_message -> Continue to the next step.
The phase never returns proposal in bypass mode. Treat a proposal result as
a contract violation: report it and stop without committing.
Follow the Bypass execution handoff in references/atomic-commit.md exactly
as written. That handoff is the sole owner of the execution sequence; do not
reconstruct, supplement, or restate it here.
On success, render the Bypass success layout from references/output.md and
stop.
On failure, render the Bypass Git failure layout from the same file and stop.
The handoff owns commit-failure handling. This workflow owns only the matching user-visible result layout above.
oneshot and skip only as an exact case-insensitive first token.
They are behaviorally identical.references/atomic-commit.md before running the phase.git commit.crocoder-dev/shared-context-engineering
5bf1376
Also appears in
since Aug 28, 2026
since Aug 28, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.