clojure-eval

Evaluate Clojure code against a running nREPL server.

Updated Mar 12, 2019
One-click install
npx skills add https://github.com/gustavofsantos/dot-files --skill clojure-eval-gustavofsantos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clojure-eval
Source: https://github.com/gustavofsantos/dot-files/tree/main/skills/clojure-eval
Command: npx skills add https://github.com/gustavofsantos/dot-files --skill clojure-eval-gustavofsantos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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.

Core Features & Use Cases

  • Verify that edited Clojure files compile and load correctly
  • Test function behavior interactively
  • Debug code by evaluating expressions
  • Require or load namespaces for testing
  • Validate that code changes work before committing

Quick Start

Discover an nREPL server, connect to a port, and begin evaluating Clojure expressions.

Frequently Asked Questions about clojure-eval

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

FAQPage Schema
How do I evaluate Clojure code interactively via an nREPL server?

Evaluate Clojure code interactively via nREPL by connecting to a running server and executing expressions using clj-nrepl-eval. This verifies compilation, behavior, and state across namespaces with persistent sessions.

Can I test if edited Clojure files compile correctly in a running REPL session?

Yes, testing if edited Clojure files compile correctly is a core use case. Connect to an active nREPL server and use the evaluation tool to reload namespaces, verifying that your code changes load without errors.

Do I need a running nREPL server to evaluate Clojure expressions?

Yes, a running nREPL server is required to evaluate Clojure expressions. The tool connects to an active server to execute code, requiring you to discover a port and establish a session-per-port persistence for interactive testing.

How do I debug Clojure functions across different namespaces?

Debug Clojure functions across namespaces by evaluating expressions against a running nREPL server. You can interactively test function behavior, require or load namespaces for testing, and validate code changes before committing.

What's the best way to verify Clojure code changes before committing?

The best way to verify Clojure code changes before committing is to interactively evaluate them against a running nREPL server. Use clj-nrepl-eval with port persistence to check compilation and validate function behavior across namespaces.

Why does my interactive Clojure evaluation fail to maintain state between expressions?

Interactive Clojure evaluation may fail to maintain state if not using session-per-port persistence correctly. The tool supports persistent sessions on specific nREPL ports to ensure state remains consistent across multiple expression evaluations.