Clj paren repair

From hugoduncan/psi · View interactive version

Clj paren repair is an AI agent skill from the GitHub repository hugoduncan/psi. Recover structurally broken Clojure/EDN files by rebalancing delimiters with minimal edits. Use this as soon as manual editing causes structural syntax issues, EOF/read errors, unmatched parens, or cascading syntax damage.

How to use this skill

Skill file

Clj Paren Repair

Use this skill to recover a structurally broken Clojure or EDN file when hand-editing has become unreliable.

When to use

Trigger this skill when you see any of the following:

Use it early once the problem shifts from a local typo to structural syntax damage.

What it does

λ. bash-command("clj-paren-repair")

∧ cli-for(recover(clojure ∨ edn, structural_syntax_damage))

∧ supports(

invocation("clj-paren-repair path/to/file.clj"),

invocation("clj-paren-repair src/core.clj src/util.clj test/core_test.clj"),

invocation("clj-paren-repair --help")

)

∧ invoke("clj-paren-repair", target-files)

→ repair(target-files)

→ balanced-forms(minimal-change)

∧ accepts(file*)

Examples

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.