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!`).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Clojure Tooling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/just-sultanov-clojure-tooling)
---
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 |