Skip to main content
Run any Skill in Manus
with one click

code-patch

Stars5
Forks1
UpdatedJune 13, 2026 at 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.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
6 files
SKILL.md
readonly