Skip to content
Back to skills

Clojure Tooling

ASecurity

Clojure tooling setup — use when installing, pinning, or repairing cljfmt, clj-kondo, clojure-lsp, or EditorConfig, or when a format or lint job fails in CI or the editor, especially when a pinned linter rejects a form the compiler accepts (`:keys!`, `:req!`).

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add just-sultanov/clojure-skills --skill clojure-tooling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clojure Tooling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clojure Tooling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/just-sultanov-clojure-tooling/badge)](https://www.skillsdirectory.com/skills/just-sultanov-clojure-tooling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clojure-tooling
description: Clojure tooling setup — use when installing, pinning, or repairing cljfmt, clj-kondo, clojure-lsp, or EditorConfig, or when a format or lint job fails in CI or the editor, especially when a pinned linter rejects a form the compiler accepts (`:keys!`, `:req!`).
license: EPL-1.0 AND MIT
---

# Clojure Tooling

Owns tool setup and execution: cljfmt, clj-kondo, clojure-lsp, the EditorConfig
baseline, and the format and lint steps of CI. The style rules these tools
approximate live in `clojure-style`. The text is adapted from the three tool
repositories under EPL 1.0 and MIT; see [NOTICE.md](NOTICE.md).

## Ground rules

- **The project's config is the contract.** Read `.cljfmt.edn` and
  `.clj-kondo/config.edn` before adding a rule, and add to them. Never replace
  a project config with this skill's baseline.
- **Pin the version.** A tool that happens to be on `PATH` is not a setup. Name
  the version the project uses and put the same value in CI.
- **Formatting is mechanical; style is not.** Fix layout with the tool and
  leave naming, structure, and idiom review to `clojure-style`.

## Workflow

### 1. Inventory the project

Check which tools already exist: `cljfmt`, `clj-kondo`, `clojure-lsp`, the
config files, `.editorconfig`, and every CI job that runs them. Note the
dialects in use, because each tool selects files by extension.

Done when you can name, for each tool, the version, the command, the config
path, and the CI job that runs it.

### 2. Install and pin

Choose one install channel per tool — binary, package manager, Clojure CLI
tool, or build plugin — and record the version next to it. Install the same
channel locally and in CI.

Done when the documented command runs from a clean checkout of the project
without relying on a global install.

### 3. Configure

Start from the project's existing files. Add the baseline keys from
[`cljfmt.edn`](assets/cljfmt.edn) only when the project has no opinion,
then add project indents and the linters the project wants. Commit
`.clj-kondo/config.edn` and gitignore `.clj-kondo/.cache`.

Done when `cljfmt check` and `clj-kondo --lint` report only findings the
project intends to see.

### 4. Wire the editor

Point the editor at the project's cljfmt and clj-kondo configs, usually through
clojure-lsp, and remove any editor-specific formatter or linter for the same
job. Clients and settings are in [editor.md](references/editor.md).

Done when formatting a file in the editor produces the same diff as
`cljfmt fix` and diagnostics match `clj-kondo --lint`.

### 5. Wire CI

Add the two checks in order — format, then lint — with the same commands,
config files, and pinned versions as local runs. Use `check` and `--lint`, never
`fix`, in CI. Job recipes, failure levels, and annotations are in
[ci.md](references/ci.md).

Done when a file that fails locally fails CI at the same file and line, and a
clean tree passes both.

## Checklist

- [ ] `.cljfmt.edn` exists and every non-default key is deliberate.
- [ ] `.clj-kondo/config.edn` is committed and `.clj-kondo/.cache` is ignored.
- [ ] `cljfmt check .` reports no findings.
- [ ] `clj-kondo --lint src test` reports no findings, or only scoped ones.
- [ ] `.editorconfig` lists exactly the extensions the project uses.
- [ ] The editor reads the project's cljfmt and clj-kondo configs.
- [ ] CI runs format then lint with pinned versions and no `fix`.
- [ ] No suppression is wider than the form or namespace that needs it.

## Related skills

- `clojure-style` — the rules the tools approximate, how to read the project's
  config for conventions, and how to run the formatter and linter a project
  already configures.
- `clojure-deps` — alias semantics, the meaning of `-M`, `-X`, and `-T`, and
  classpath inspection when a tool needs the project's dependencies.

## References

| File                                    | Read when                                                     |
| --------------------------------------- | ------------------------------------------------------------- |
| [cljfmt.md](references/cljfmt.md)       | installing, configuring, or running cljfmt                    |
| [clj-kondo.md](references/clj-kondo.md) | lint findings, config merge, macros, dialects, exclusions     |
| [editor.md](references/editor.md)       | clojure-lsp, editor clients, `.editorconfig`, shared settings |
| [ci.md](references/ci.md)               | format and lint jobs, fail levels, annotations, caching       |

Files in this skill

  • LICENSE12.9 KB
  • NOTICE.md1.9 KB
  • SKILL.md4.3 KB
  • assets/cljfmt.edn335 B
  • references/ci.md2.7 KB
  • references/clj-kondo.md4.5 KB
  • references/cljfmt.md5.4 KB
  • references/editor.md4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.