跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
开发与测试

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-form directly. Do not run :ls first and do not reconstruct a text range.
  • Distinctive text but unknown form: use rg -n for one line, then call :show-form :line.
  • Unknown-parent structural pattern: call file-wide :grep-form; add :inside only to narrow ambiguity.
  • Nested edit: find an independently readable subtree, then generate a saved :replace-subform plan. Review the diff and hashes. Apply it later with a separate :replace-subform! command. Never chain plan and apply.
  • A case clause 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.