一键导入
git-commit-new
Analyze working tree changes, plan logically minimal NEW atomic commits per hunk (no fixup), and execute them
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze working tree changes, plan logically minimal NEW atomic commits per hunk (no fixup), and execute them
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create a Claude Code rule, skill, or agent — global (~/.claude) or project-local (.claude)
Code review using OpenAI Codex CLI with project context (rules, diff, conventions)
Multi-perspective code review from base branch with 3 independent reviewer agents
Analyze working tree changes, map to existing commits, and create fixup commits for autosquash
Review every commit message since base branch and add reword fixups where the message needs improvement (non-interactive)
Analyze working tree changes and commit them — fixup into existing commits where appropriate, otherwise new atomic commits
| name | git-commit-new |
| disable-model-invocation | true |
| description | Analyze working tree changes, plan logically minimal NEW atomic commits per hunk (no fixup), and execute them |
| argument-hint | [context] |
Follow ~/.claude/skills/git-commit/COMMON.md for the invocation contract,
conventions, language policy, and execute procedure — read it first if it is
not already in context. This file defines only what is specific to
/git-commit-new.
context (optional): Additional context for the commit messages (e.g.,
"Fix #123", "Refactor for clarity"). Used to generate more accurate and
meaningful commit messages for all planned commits.Creates new atomic commits only — never maps changes into existing
commits as fixups. Use /git-commit when you want fixups where appropriate.
Analyze (read-only git):
git status --short, git diff --stat,
git diff --cached --stat. If nothing to commit, inform the user and
STOP.git diff and git diff --cached.context into the messages to explain WHY. Each entry:
full commit message + explicit list of files to stage (all entries are
new).Execute per COMMON.md (backup reason: "before commit-all").
The Present step is unnecessary — no fixups are created.