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

code-patch

星标5
分支1
更新时间2026年6月13日 12:13

Apply a structured JSON patch envelope to source code files. Supports Python, JavaScript, TypeScript, Rust, HTML, and CSS. Operations: rename, replace, delete, move symbols; add/remove imports; find/replace within scope; BLOCK/ANCHOR markers; decorator injection. Produces a deterministic EXECUTION_REPORT with per-op status, content hash, and a ULID-named working copy. Use when the user says: "apply code patch", "structured edit", "patch envelope", "rename function", "rename class", "move symbol", "delete function", "add import", "remove import", "replace the body of", "refactor this function", "reorganize imports", "restructure the code", "batch edit", "surgical code change", "swap these functions", "change the signature", "inject a decorator", "find and replace in this function", or provides a JSON object with "op" fields targeting source code. Also trigger for batch mutations with an audit trail, or any targeted, auditable source code changes without rewriting the whole file.

安装

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

文件资源管理器
6 个文件
SKILL.md
readonly