ワンクリックで
commit
Run project-defined preflight checks and commit work. Does not push or create PRs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run project-defined preflight checks and commit work. Does not push or create PRs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Research a work item, draft an implementation plan, and begin work after approval.
Guided one-shot install — discover installed plugins (or help install new ones), pick install scope, calibrate risk tolerance into a concrete allowlist + hooks, scaffold or merge CLAUDE.md, and sanity-check the result.
Finalize work — commit via /commit, push, and create PRs on feature branches.
Reviewer-side PR workflow — checks out the branch in a worktree, runs focus-area reviews plus a senior-engineering pass, optionally cross-checks against an autonomous reviewer, and posts inline findings only on explicit approval. Read-only — never edits, commits, or pushes.
Fetch PR review comments, classify by severity and confidence, and fix the selected subset.
Triage CVE and SBOM scanner output (Trivy, Grype, Snyk, Docker Scout, Dependabot) into a ranked, deduplicated action list.
| name | commit |
| description | Run project-defined preflight checks and commit work. Does not push or create PRs. |
| user-invocable | true |
| disable-model-invocation | true |
| allowed-tools | Read, Bash, Grep, Glob, Edit, Write, Agent, AskUserQuestion |
Run project-defined preflight checks and commit changes. Does not push or create PRs — use /ship-it for the full pipeline.
/commit): Run all checks, commit.--fix (/commit --fix): Auto-fix what is safe to auto-fix (formatting, lint, type errors) before committing. Does not auto-fix test failures — those require human judgment.git branch --show-current
Note the current branch. Check the project's branch policy:
main or master (e.g., "never commit to main", "main commits allowed", branch protection rules).main. Create a feature branch first (git checkout -b <branch-name>) or run /start-work to begin from an issue."main. CLAUDE.md has no branch policy — proceeding, but consider using a feature branch."git status
git diff --stat
/ship-it to push existing commits." and stop.Run project-defined checks scoped to staged changes. The specific checks come from CLAUDE.md or project configuration — this skill defines the workflow, not the tools.
git diff --cached --name-only
Categorize staged files by directory and extension. Only run checks relevant to the changed file types.
Read CLAUDE.md for the project's defined check commands. Common categories:
For each category:
If --fix was passed: For checks that support auto-fix (linting, formatting, type errors), run the fix variant first, then re-run the check to verify. Never auto-fix test failures.
If any check that ran (not skipped) fails: Stop and report the failures. Do not commit broken code. Missing tools or undefined checks are skipped, not failures.
Domain plugins may override or extend this phase with project-specific checks. If a domain plugin's /commit skill is active, its preflight checks take precedence over the generic flow above.
After preflight passes:
git diff --cachedgit log --oneline -10git commit -m "$(cat <<'EOF'
<commit message>
Co-Authored-By: <co-author line from CLAUDE.md, or default to current model>
EOF
)"
If the commit fails (e.g., a pre-commit hook rejects it), report the hook output to the user and stop. Do not retry automatically.
After successful commit, report:
## Commit Summary
- Branch: <branch-name>
- Commit: <short-hash> <first line of message>
- <Check category>: PASS | FIXED | SKIPPED | N/A
- <Check category>: PASS | FIXED | SKIPPED | N/A
- ...
Next: Run /ship-it to push.
List each check category that was evaluated. PASS means it passed, FIXED means --fix resolved issues, SKIPPED means the check was not relevant to staged files, N/A means no command is defined for that category.
superpowers:verification-before-completion (external — conditional)
Complements step 3b. Where /commit runs concrete project commands, verification-before-completion ensures success claims are backed by evidence. Only applies when the superpowers plugin is installed.
core:scope-statement-check — Run scope-statement-check enforce during step 3b. If a scope contract exists for this branch (.scope/<branch>.md), files outside the contract surface as warnings; the user chooses to split, expand, or override. If no contract exists for this branch, this step is silently skipped.
core:comment-discipline — Run during step 3b on the staged diff. Reports WHAT-not-WHY comments and paraphrase noise. Advisory only — does not block the commit.
core:error-handling-preflight — Run during step 3b on staged source files. Critical findings (unguarded parse, silent catch, raw error leaked to client, correlated writes without transaction) surface as warnings requiring acknowledgment. If webapp/error-handling-preflight is available and staged files include web-stack code, use it instead of the core skill.
--fix is conservative — auto-fix formatting, linting, and type errors. Never auto-fix test failures. Never auto-fix anything that changes runtime behavior.