clojure-paren-repair

Repair unbalanced delimiters in Clojure, ClojureScript, and EDN files.

1|Updated Sep 5, 2025
One-click install
npx skills add https://github.com/Ramblurr/nix-devenv --skill clojure-paren-repair
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clojure-paren-repair
Source: https://github.com/Ramblurr/nix-devenv/tree/main/prompts/skills/clojure-paren-repair
Command: npx skills add https://github.com/Ramblurr/nix-devenv --skill clojure-paren-repair

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automatically corrects unbalanced parentheses, brackets, and braces in Clojure, ClojureScript, and EDN files, preventing syntax errors and saving development time.

Core Features & Use Cases

  • Automatic Delimiter Balancing: Uses the brepl balance command to fix mismatched brackets.
  • In-place Editing: Modifies files directly to correct errors.
  • Dry Run Preview: Allows you to see the changes before they are applied.
  • Use Case: Recover a .clj file that has become corrupted with syntax errors due to incorrect bracket pairing during editing.

Quick Start

Run brepl balance on the file src/myapp/core.clj to fix unbalanced brackets.

Frequently Asked Questions about clojure-paren-repair

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix unbalanced parentheses in a Clojure file?

You can fix unbalanced parentheses in a Clojure file by running the `brepl balance` command, which automatically repairs mismatched delimiters in `.clj`, `.cljs`, `.cljc`, and `.edn` files.

Can I preview delimiter repairs before applying them to my ClojureScript code?

Yes, you can preview delimiter repairs before applying them by using the dry run mode. This allows you to see the proposed bracket balancing changes without modifying your ClojureScript files directly.

Does this bracket balancing tool work with EDN files?

Yes, this bracket balancing tool works with EDN files. It supports repairing unbalanced parentheses, brackets, and braces in Clojure, ClojureScript, and EDN formats to resolve syntax errors.

What causes syntax errors from mismatched brackets after editing Clojure code?

Syntax errors from mismatched brackets occur when incorrect delimiter pairing happens during manual editing of Clojure code. This Skill corrects these unbalanced parentheses, brackets, and braces automatically using the `brepl balance` command.

Can I repair unbalanced braces directly in place within my `.cljc` files?

Yes, you can repair unbalanced braces directly in place within your `.cljc` files. The Skill supports in-place editing to modify files directly and correct delimiter mismatch errors without requiring manual intervention.