Skip to main content

patch-tool-safe-editing

Safe multi-patch editing in a single session — avoid the partial-read self-revert trap. Use when editing a file with multiple sequential `patch` tool calls, when a patch warning says 'file was last read with offset/limit pagination', when reviewing your own diff before commit, or when `git diff` shows fewer changes than you intended (the patch silently reverted earlier inserts). Anti-pattern: firing 3+ `patch` calls on a file you first read with `read_file(..., offset=N, limit=M)` and assuming the tool tracks the full file state across calls.

跳到安装

来源信息

仓库
jleechanorg/claude-commands
最近来源活动
2026年8月2日 01:06
检测到的 SKILL.md 语言
英语
星标
3
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。