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.


