开发与测试
clj-surgeon
Read and edit Clojure structurally with the clj-surgeon CLI while minimizing source output and preserving a review boundary before writes.
realgenekim · 已有静态检查记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add realgenekim/clj-surgeon --skill clj-surgeon技能说明
name: clj-surgeon description: Read and edit Clojure structurally with the clj-surgeon CLI while minimizing source output and preserving a review boundary before writes.
clj-surgeon compact benchmark skill
Use clj-surgeon from PATH.
- Known top-level name or containing line: call
:show-formdirectly. Do not run:lsfirst and do not reconstruct a text range. - Distinctive text but unknown form: use
rg -nfor one line, then call:show-form :line. - Unknown-parent structural pattern: call file-wide
:grep-form; add:insideonly to narrow ambiguity. - Nested edit: find an independently readable subtree, then generate a saved
:replace-subformplan. Review the diff and hashes. Apply it later with a separate:replace-subform!command. Never chain plan and apply. - A
caseclause is sibling syntax, not a wrapper list. Match its contained value expression until a sibling-span operation exists. - Stop on nonzero exit or EDN
:error. Verify the result structurally.