clojure-deps
Use when choosing, checking, or researching a dependency of a Clojure, ClojureScript, or ClojureDart project: which version the project uses, what the latest release is, whether a newer version is compatible, or how a library's API works in the installed version. Triggers: `deps.edn` `:deps` and `:extra-deps` coordinates, `:mvn/version`, `:git/tag`, `:git/sha`, `project.clj` `:dependencies`, `shadow-cljs.edn` `:dependencies`, Clojars, Maven Central, cljdoc, `find-versions`, "latest version of", "which version", "is this outdated", "add a library", or "how do I use" a Clojure library. Covers reading the resolved version, finding source and documentation for that exact version, looking up releases, and separating the latest release from a compatible one.
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install clojure-brackendev-clojure-depsManual setup by platform
Claude Code
~/.claude/skills/clojure-brackendev-clojure-deps/SKILL.md
Instructions
Clojure Dependencies
This skill covers researching a dependency before using or changing it. It reports versions and sources. Changing a dependency declaration remains a separate, deliberate edit, and some packages provide an upgrade command for their framework (/cljs-upgrade, /fulcro-upgrade, /cljd-upgrade).
Key Rules
- Start from the version the project resolves. The declared coordinate is where to start, but the classpath can hold a different version when another dependency pulls one in. Check the resolved version before reading documentation or source.
- Read documentation and source for that exact version. An API can change between releases. Use versioned documentation (cljdoc pages carry the version in the URL) or the source inside the resolved jar. Do not rely on memory or on the newest documentation.
- Look up newer releases only when the task needs them. A question about how a library works does not need a network lookup. A question about upgrading or about the latest version does.
- Keep "latest" and "compatible" separate. The newest release can be a prerelease, can need a newer Java or ClojureScript version, or can change an API the project uses. Report the latest stable release, the latest prerelease when it is newer, and what compatibility you checked.
- Report sources and gaps. Name the command or URL behind each version claim. A failed lookup means the answer is unknown, not that the library has no newer release.
Finding the resolved version
| Build tool | Command |
|---|---|
Clojure CLI (deps.edn) | clojure -X:deps tree prints the resolved dependency tree. Add :aliases '[:test]' to include an alias. |
Leiningen (project.clj) | lein deps :tree |
| shadow-cljs | With :deps in shadow-cljs.edn, the Clojure CLI resolves the dependencies, so use clojure -X:deps tree with the aliases it names. npm packages resolve through package.json: npm ls <package>. |
| ClojureDart | The tensegritics/clojuredart entry in deps.edn is a Git coordinate. Its :tag and :sha name the version. |
To read a library's source for the resolved version, find its jar on the classpath (clojure -Spath | tr ':' '\n' | grep <artifact>) and list or print files from it with unzip -l and unzip -p. In a running JVM REPL, (clojure.repl/source fn-name) and (clojure.repl/doc fn-name) show the loaded version.
Looking up releases
| Source | Command or URL | Notes |
|---|---|---|
| Clojure CLI | clojure -X:deps find-versions :lib group/artifact | Lists Maven versions, or Git tags with their SHA for a library whose Git URL the CLI infers from its name, such as an io.github library. It prints the newest 8 in ascending order, prereleases included. :n 5 changes the count, and :n :all prints every version. |
| Clojars | curl -sSL -H 'Accept: application/json' https://clojars.org/api/artifacts/<group>/<artifact> | latest_release can be a prerelease, for example an -alpha version, and latest_version can be a -SNAPSHOT. Read recent_versions to find the latest stable release. |
| Maven Central | https://repo1.maven.org/maven2/<group path>/<artifact>/maven-metadata.xml | <release> and <latest> can name a prerelease, for example an -alpha version newer than the latest stable release. Read the <versions> list. |
| Git dependencies | git ls-remote --tags <url> | Pin both :git/tag and :git/sha. Use the commit SHA: for an annotated tag, the line that ends in ^{}. |
Reading documentation
- cljdoc hosts documentation for Clojars and Maven libraries at
https://cljdoc.org/d/<group>/<artifact>/<version>. Without a version, the URL redirects to the latest one, so always include the resolved version. - The library's own repository holds its README and
CHANGELOG.md. Read the changelog entries between the resolved version and the candidate version before recommending an upgrade. - When the
context7skill from project-skills is installed, its documentation lookup can supplement these sources. Check that what it returns matches the resolved version.
Host and framework notes
- ClojureScript. shadow-cljs and figwheel-main projects also depend on npm packages.
npm view <package> versionshows the latest release. Theclojurescriptskill covers npm interop. - ClojureDart. Releases are GitHub releases of
Tensegritics/ClojureDart, and/cljd-upgradeperforms the upgrade. Dart packages come fromflutter pub addandpubspec.yaml, as theclojuredartskill describes. - Frameworks. Biff 2, Electric v3, and Fulcro 3 skills apply only to those major versions. Check the major version before applying their guidance to a project.
Security
Reviews (0)
More from Clojure Skills (brackendev)
View source →More Build skills
Browse category →Frequently asked questions about clojure-deps
What does the clojure-deps skill do?
Use when choosing, checking, or researching a dependency of a Clojure, ClojureScript, or ClojureDart project: which version the project uses, what the latest release is, whether a newer version is compatible, or how a library's API works in the installed version. Triggers: `deps.edn` `:deps` and `:extra-deps` coordinates, `:mvn/version`, `:git/tag`, `:git/sha`, `project.clj` `:dependencies`, `shadow-cljs.edn` `:dependencies`, Clojars, Maven Central, cljdoc, `find-versions`, "latest version of", "which version", "is this outdated", "add a library", or "how do I use" a Clojure library. Covers reading the resolved version, finding source and documentation for that exact version, looking up releases, and separating the latest release from a compatible one. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the clojure-deps skill?
Run `npx @skills-hub-ai/cli install clojure-brackendev-clojure-deps` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/clojure-brackendev-clojure-deps/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does clojure-deps work with?
clojure-deps runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the clojure-deps skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use clojure-deps after installing it?
In Claude Code, type `/clojure-brackendev-clojure-deps` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the clojure-deps skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.