brepl

Evaluate Clojure expressions and fix unbalanced brackets with cljfmt.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust way to evaluate Clojure code directly within your development workflow, helping to debug, test, and understand your code's behavior interactively. It also offers a utility to fix unbalanced bracket errors in Clojure files.

Core Features & Use Cases

  • REPL Evaluation: Execute arbitrary Clojure expressions using a reliable heredoc pattern to avoid quoting issues.
  • Code Formatting: Automatically formats files with cljfmt when processing them.
  • Bracket Balancing: Fixes unbalanced bracket/delimiter errors in Clojure files using the brepl balance command.
  • Use Case: You can quickly test a new function, inspect the state of your application, or reload namespaces without leaving your current environment.

Quick Start

Use the brepl skill to evaluate the clojure code (inc 1) using the heredoc pattern.

Frequently Asked Questions about brepl

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

FAQPage Schema
How do I evaluate Clojure code expressions directly in my development environment?

You can evaluate Clojure code expressions directly by using an interactive REPL session. This approach uses a reliable heredoc pattern to execute code, which helps avoid common quoting issues during code evaluation.

How do I fix unbalanced bracket errors in Clojure files?

You can fix unbalanced bracket errors in Clojure files by running the `brepl balance` command. This automated utility scans your files and corrects unbalanced delimiter errors to ensure your code structure is valid.

Can I automatically format Clojure files when processing them?

Yes, you can automatically format Clojure files during processing. The Skill integrates cljfmt to apply formatting rules automatically, ensuring consistent code style without requiring manual formatting steps.

What is the best way to test and debug Clojure functions without leaving my current workflow?

The best way to test and debug Clojure functions is by using an interactive REPL session. It allows you to quickly execute arbitrary expressions, inspect application state, and reload namespaces seamlessly.

Why does evaluating Clojure code with standard shell quoting sometimes fail?

Standard shell quoting can fail due to conflicts with Clojure's syntax. Using a heredoc pattern for REPL evaluation bypasses these shell quoting issues, providing reliable execution for complex code expressions.