Skip to content
Back to skills

Clojure Versions

ASecurity

Clojure version features and upgrades — use when reviewing code or a compile error for a form or destructuring key the project's Clojure or JDK version does not recognize (`:keys!`, `:req!`), when checking whether a form will work on that version, when using 1.12 interop or 1.13 alpha checked destructuring, or when planning an upgrade.

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

Works with

  • cli

Security analysis

A100/100

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

Scanned December 4, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Clojure Versions?

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

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

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-versions
description: Clojure version features and upgrades — use when reviewing code or a compile error for a form or destructuring key the project's Clojure or JDK version does not recognize (`:keys!`, `:req!`), when checking whether a form will work on that version, when using 1.12 interop or 1.13 alpha checked destructuring, or when planning an upgrade.
license: EPL-1.0
---

# Clojure Versions

Owns the Clojure version story: which form needs which release, what a release
changed, and how to move a project between versions. The text is adapted from
the Clojure site and the Clojure change log under EPL 1.0; see
[NOTICE.md](NOTICE.md).

## Ground rules

- **Establish the version before judging a form.** A form is correct only
  against the project's target release. Read the version from the project, not
  from memory.
- **Keep the scope.** Baseline interop, type hints, `import`, and `doto` are
  in `clojure-style`; this skill covers the deltas since 1.11.

## Workflow

### 1. Establish the versions

Record six facts: current Clojure version, target version, JDK, build tool,
test runner, and linter.

```bash
clojure -M -e '*clojure-version*'   # runtime version of this project
clojure -Sdescribe                  # CLI build, not the project's Clojure
clojure -Stree | grep 'org.clojure/clojure ' # version resolved from deps.edn
java -version                       # JDK that runs it
```

The build file (`deps.edn`, `project.clj`, `build.sbt`, `pom.xml`) declares
the version; CI images and Dockerfiles are where it goes stale.

Done when all six facts are written down and the target differs from the
current version only on purpose.

### 2A. Gate a form while writing or reviewing

Find the row in [versions.md](references/versions.md). Record the first
release, the status, and the source. When the row is missing, search
`changes.md` and the release posts before answering, and add the row.

A review reports the gate and the fix; it leaves the reviewed file untouched
unless the user asks for the edit.

Done when every form in the change has a gate and a source, or is stable
before 1.11 and needs none.

### 2B. Plan an upgrade

Inventory the project: dependencies, aliases, CI, Docker, clj-kondo config,
plugins, and reflection warnings. Then follow [migration.md](references/migration.md)
for the ordered steps.

Done when each step has a verification command and a rollback point.

### 3. Migrate, verify, or report

Run the steps in order: bump, resolve, compile, test, fix, update CI and
tooling. Put each gate next to the code it applies to. The ordered steps are in
[migration.md](references/migration.md); the commands that prove a version or a
gate are in [verification.md](references/verification.md).

Done when the project builds and its tests pass on the target version, and the
report names the release each new form needs.

## Version map

| Release    | Added                                                                                              | Read                                                                                                                   |
| ---------- | -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| 1.11.0     | `clojure.math`, `update-keys`, `update-vals`, `:as-alias`, `parse-*`, `random-uuid`, `iteration`   | [versions.md](references/versions.md)                                                                                  |
| 1.12.0     | qualified methods and method values, `:param-tags`, array classes, functional interfaces, streams  | [interop-1-12.md](references/interop-1-12.md)                                                                          |
| 1.12.7     | function serialization and deserialization disabled by default (superseded by 1.12.8)              | [serialization.md](references/serialization.md)                                                                        |
| 1.12.8     | function serialization allowed; `*deserialize-code*` gates deserialization, default false          | [serialization.md](references/serialization.md)                                                                        |
| 1.13 alpha | checked destructuring, `:select`, `:all`, `:missing`, `:excess`, `:req!`, `selector`, new core fns | [destructuring-1-13.md](references/destructuring-1-13.md), [core-additions-1-13.md](references/core-additions-1-13.md) |

## Rules

- **State the gate inline.** Write "use `some-vals` (1.13)", not "use
  `some-vals`".
- **Name the alpha.** Write the current 1.13 alpha from
  [versions.md](references/versions.md) until 1.13.0 ships; a bare "1.13"
  hides that the syntax can still move.

## Checklist

- [ ] Current version, target version, JDK, build tool, test runner, and linter
      recorded.
- [ ] Every new form has a first release and a status.
- [ ] No alpha form presented as stable; no 1.13 form in a 1.12 project.
- [ ] `clojure.math` and `parse-*` not proposed below 1.11.
- [ ] Qualified methods and method values not proposed below 1.12.
- [ ] Checked destructuring and `selector` marked 1.13 alpha.
- [ ] No `:defaults` in new code; `transform-keys` is attributed to
      `clojure.walk`.
- [ ] Java 17 baseline and the `*deserialize-code*` default checked when they
      apply.
- [ ] Migration has a verification command and a rollback per step.

## Related skills

- `clojure-style` — layout, naming, baseline interop, and idiom rules that
  hold on every supported release.

## References

| File                                                        | Read when                                                         |
| ----------------------------------------------------------- | ----------------------------------------------------------------- |
| [versions.md](references/versions.md)                       | gating a form, reading the matrix, checking a release             |
| [interop-1-12.md](references/interop-1-12.md)               | qualified methods, method values, `:param-tags`, streams, process |
| [destructuring-1-13.md](references/destructuring-1-13.md)   | checked keys, `:select`, `:all`, `:missing`, `:excess`, `:req!`   |
| [core-additions-1-13.md](references/core-additions-1-13.md) | `some-vals`, `merge-deep`, `tap->`, `req!`, `transform-keys`      |
| [migration.md](references/migration.md)                     | planning or running a version bump                                |
| [java-baseline.md](references/java-baseline.md)             | JDK version, bytecode target, CI images, Docker                   |
| [serialization.md](references/serialization.md)             | 1.12.7→1.12.8, serialization controls, GHSA-x4c4-68gp-vrhc        |
| [verification.md](references/verification.md)               | proving a version or a gate with a command                        |

Files in this skill

  • LICENSE11.1 KB
  • NOTICE.md1.7 KB
  • SKILL.md6.6 KB
  • references/core-additions-1-13.md2.5 KB
  • references/destructuring-1-13.md3.9 KB
  • references/interop-1-12.md4.4 KB
  • references/java-baseline.md2.3 KB
  • references/migration.md5.7 KB
  • references/serialization.md4.3 KB
  • references/verification.md3.4 KB
  • references/versions.md7.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.