Agent skill · software engineering · metabase

clojure-eval

Evaluate Clojure code via nREPL using clj-nrepl-eval. Use this when you need to test code, check if edited files compile, verify function behavior, or interact with a running REPL session.

Why this skill is useful

Adds specific commands and patterns for evaluating Clojure code using nREPL that the AI wouldn't reliably generate on its own.

What it needs

Requires clj-nrepl-eval installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 48,568 stars on the source repository.

What this skill does

Clojure REPL Evaluation When to Use This Skill Use this skill when you need to: Verify that edited Clojure files compile and load correctly Test function behavior interactively Check the current state of the REPL Debug code by evaluating expressions Require or load namespaces for testing Validate that code changes work before committing How It Works The clj-nrepl-eval command evaluates Clojure code against an nREPL server. Session state persists between evaluations, so you can require a namespace in one evaluation and use it in subsequent calls. Each host:port combination maintains its own session file. Instructions 0. Discover and select nREPL server First, discover what nREPL servers are running in the current directory: This will show all nREPL servers (Clojure, Babashka, shadow-cljs, etc.) running in the current project directory. Then use the AskUserQuestion tool: If ports are discovered: Prompt user to select which nREPL port to use: question: "Which nREPL port would you like to use?" header: "nREPL Port" options: Present each discovered port as an option with: label: The port number description: The server type and status (e.g., "Clojure nREPL server in current directory") Include up to 4 discovered ports as options The user can select "Other" to enter a custom port number If no ports are discovered: Prompt user how to start an nREPL server: question: "No nREPL servers found. How would you like to start one?" header: "Start nREPL" options: label: "deps.edn alias", description: "Find and use an nREPL alias in deps.edn" label: "Leiningen", description: "Start nREPL using 'lein repl'" The user can select "Other" for alternative methods or if they already have a server running on a specific port IMPORTANT: IF you start a REPL do not supply a port let the nREPL start and return the port that it was started on. 1. Evaluate Clojure Code Evaluation automatically connects to the given port Use the -p flag to specify the port and pass your Clojure code. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills metabase/clojure-eval

View the source on GitHub

Browse the @skills marketplace