一键导入
git-surgeon
Perform deterministic, non-interactive hunk-level Git staging, unstaging, and explicitly approved discards through the git-surgeon CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Perform deterministic, non-interactive hunk-level Git staging, unstaging, and explicitly approved discards through the git-surgeon CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | git-surgeon |
| description | Perform deterministic, non-interactive hunk-level Git staging, unstaging, and explicitly approved discards through the git-surgeon CLI. |
| allowed-tools | Bash |
| user-invocable | false |
Use the installed git-surgeon CLI for selective text-diff operations. Do not
construct or apply patches yourself.
Run git-surgeon list --view <staged|unstaged> --json immediately before
selecting hunks. IDs describe only that fresh diff snapshot.
Use git-surgeon show <id> --json when the complete hunk is needed to
confirm intent.
Run one operation with all selected IDs so the CLI checks and applies them atomically:
git-surgeon stage <id>...
git-surgeon unstage <id>...
git-surgeon discard --yes <id>...
Inspect a fresh list and git status --short to report the result.
The CLI accepts only modified, tracked text files. It reports and excludes binary files, submodules, additions, deletions, renames, copies, type changes, and mode changes. It preserves unrelated index and working-tree changes and never commits.
Discard is destructive. Pass --yes only after the user explicitly approves
the freshly listed IDs. If an ID is stale or missing, re-list; require renewed
approval before discarding any replacement ID.
Drive an explicitly requested code change through implementation and a bounded review/fix/verify loop, using a brand-new isolated worker for every stage until a full-scope GO or terminal stop. Use for convergence without committing or submitting; use vibe for branch-to-PR delivery.
Create a durable code review with a direct go/no-go decision and verified, merge-relevant findings. Invoke only as /skill:review or $review when a persistent initial review or bounded verification pass is wanted.
Deliver one explicitly scoped code change end to end through branch creation, implementation, review and fixes, verification, commit, and Graphite submission. Invoke only as /skill:vibe or $vibe for autonomous one-shot work.
Create or edit Agent Skills in this repository with precise routing, portable tools, cohesive workflows, and repository validation. Use for actual changes under `skills/`, not for general advice about skill design.
Revalidate and resolve supplied review findings or other concrete feedback. Use when the user asks to fix already identified issues. Use respond instead for active pull-request threads, reply drafting, or posting decisions.
Create a Conventional Commit when the user explicitly asks to commit changes. Generate the message when omitted; optionally push after committing. Triggers: /commit, "commit this".