一键导入
commit
Inspect git status, draft a commit message that matches the repo's style, and commit staged changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Inspect git status, draft a commit message that matches the repo's style, and commit staged changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Release a new version of the project.
Ask focused clarifying questions to resolve ambiguous requirements before planning or implementing work.
Explain code, behavior, architecture, or diffs with concrete references to the relevant files.
Diagnose failing tests, determine whether code or tests are wrong, and make the smallest passing fix.
Refactor existing code while preserving behavior, keeping changes scoped, and verifying with relevant tests.
Review current code changes for bugs, regressions, test gaps, and project-guideline violations.
| name | commit |
| description | Inspect git status, draft a commit message that matches the repo's style, and commit staged changes. |
User intent (optional): $ARGUMENTS
Survey the working tree. Run in parallel:
git status --shortgit diff --stagedgit diffgit log -n 5 --onelineUse the log to learn the repo's commit-message style (conventional commits, plain sentences, scope prefixes, etc.).
Decide what to stage.
git add <path>.git add -A or git add . — they can leak secrets or stray files.Draft the message.
git log style.Commit. Use a heredoc so multi-line bodies survive shell quoting:
git commit -m "$(cat <<'EOF'
<subject>
<optional body>
EOF
)"
Verify. Run git status and report the result to the user. Do not push — that is a separate, explicit step the user must request.
If a pre-commit hook fails, do not retry with --no-verify. Read the hook output, fix the underlying issue, re-stage the affected files, and create a new commit. Never amend in this case — the prior commit did not happen, so --amend would target the wrong thing.