Skip to main content
在 Manus 中运行任何 Skill
一键导入

git-surgical-staging

星标21
分支0
更新时间2026年3月29日 19:03

Stage specific lines or hunks from files into git commits, enabling modular atomic commits instead of whole-file staging. Use this skill whenever the user asks to commit only part of a file, split changes across multiple commits, make atomic/granular/modular commits, stage specific lines or hunks, or when you need to commit logically distinct changes separately. Also use this when the user says things like 'commit the refactor separately from the bugfix', 'only commit the changes to function X', 'split this into separate commits', or references magit-style partial staging. If you are about to run `git add <entire-file>` but the file contains changes serving different purposes, stop and use this skill instead.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly