clojure-repl

clojure-repl is a skill for Claude Code, Codex from zcaudate-xyz/foundation-base. It costs 53 tokens per session (823 once invoked), scanned A, original, MIT.

A guide for using a Clojure REPL, an interactive tool that evaluates Clojure code while the program is running, through delimiter-safe helper tools.

In plain words
What is it for?
Use it to find a running REPL, evaluate Clojure expressions, repair unbalanced delimiters, and format generated Clojure code.
Why use it?
It helps developers evaluate and repair Clojure code without relying on error-prone manual parenthesis fixes or raw shell commands.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find a running REPL, evaluate Clojure expressions, repair unbalanced delimiters, and format generated Clojure code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zcaudate-xyz/foundation-base/clojure-repl
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zcaudate-xyz/foundation-base --skill clojure-repl
Clone the repo
git clone --depth 1 https://github.com/zcaudate-xyz/foundation-base

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clojure-repl

README.md
[![agentmods](https://agentmods.dev/badge/skills/zcaudate-xyz/foundation-base/clojure-repl/github.svg)](https://agentmods.dev/skills/zcaudate-xyz/foundation-base/clojure-repl)
Your own site
<a href="https://agentmods.dev/skills/zcaudate-xyz/foundation-base/clojure-repl"><img src="https://agentmods.dev/badge/skills/zcaudate-xyz/foundation-base/clojure-repl/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clojure-repl

Your own site · 80×15
<a href="https://agentmods.dev/skills/zcaudate-xyz/foundation-base/clojure-repl"><img src="https://agentmods.dev/badge/skills/zcaudate-xyz/foundation-base/clojure-repl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 823 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00823
Opus 5.5 $0.00021 $0.00329
Sonnet 5.5 $0.00011 $0.00165
Haiku 4.5 $0.00005 $0.00082

Measured 1mo ago against content hash 708d7ce91455, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clojure-repl scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.kimi/skills/clojure-repl/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Clojure REPL (clojure-mcp-light)

This skill wires Bruce Hauman's clojure-mcp-light toolchain into Kimi Code CLI for this project. It provides delimiter-safe Clojure evaluation and repair via MCP tools.

Available MCP tools

Tool names are prefixed by Kimi as mcp__clojure-light__<tool>:

  • clojure_eval(code, port?) — evaluate a Clojure form against a running nREPL server.
  • clojure_repair(code) — repair unbalanced delimiters and apply cljfmt formatting.
  • list_nrepl_ports() — discover running nREPL servers in the current directory.

Setup (one-time)

The following are already installed for this project:

  • parinfer-rust (delimiter repair backend)
  • clj-nrepl-eval (nREPL evaluator)
  • clj-paren-repair (delimiter repair + formatting)
  • .kimi/mcp-clojure-light/server.py (MCP wrapper, Python venv)
  • ~/.kimi/mcp.json is registered with the clojure-light MCP server

Verify the server is reachable:

kimi mcp test clojure-light

If you need to point Kimi at a different config file for testing:

kimi --mcp-config-file /path/to/mcp.json mcp test clojure-light

Core workflow

  1. Before evaluating, check for a running REPL:

    • Use list_nrepl_ports.
    • Or check .nrepl-port in the project root.
  2. If no REPL is running, start one:

    lein repl :headless
    

    Wait for .nrepl-port to appear.

  3. Evaluate small forms with clojure_eval.

    • Prefer returning data (maps, vectors, strings) over printing.
    • require or ns load the namespace first if needed.
  4. Repair before writing — when generating multi-line Clojure code, pass it through clojure_repair first and only write the repaired output.

  5. Validate with the narrowest test command:

    ./lein test :only <namespace>
    ./lein test :with <subsystem>
    

Namespace discipline

  • Evaluate the ns form or require the namespace before calling vars from it.
  • Use fully-qualified vars when moving between namespaces would add confusion.
  • Prefer user for one-off setup and small probes.
  • Avoid mutating production namespaces during exploration; use scratch namespaces or small pure probes.

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 90 lines · 53 tokens per session scan A 708d7ce91455

Subscribe to this mod's changes

clojure-repl is a skill published in the GitHub repository zcaudate-xyz/foundation-base (42 stars, last pushed 9d ago), licensed MIT. It adds 53 tokens to every session and 823 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-02.

Related

Other skills, from other repositories

erlang-otp-behaviors

Use when oTP behaviors including genserver for stateful processes, genstatem for state machines, supervisors for fault tolerance, genevent for event handling, and building robust, production-ready Erlang applications with proven patterns.

benchflow-ai/skillsbench · 52 tokens

omh-rust

This is an OMH rust workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 74 tokens

axiom-concurrency

Use when writing ANY async code, actors, or threads in an Apple-platform app, or seeing ANY concurrency error. Covers Swift 6 concurrency, @MainActor, Sendable, data races, async/await patterns.

CharlesWiltgen/Axiom · 49 tokens

haskell-pro

Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.

rmyndharis/antigravity-skills · 41 tokens

splitting-oversized-modules

Split an oversized Python module (a thousand-plus-line logic.py, models.py, api.py, or its test file) into a package of one module per concern, mechanically and provably without changing behavior. Use on a request to split / break up / decompose a god module or move functions out of one, once a human has agreed to…

PostHog/posthog · 197 tokens

migrate-better-result-3

Migrate a TypeScript codebase from better-result 2.x to 3.0. Use when upgrading better-result across the TaggedError syntax, removed Result serialization helpers, recovery inference, matching, or retry APIs.

dmmulroy/better-result · 52 tokens