Skip to main content

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.

v1.0.0New

Unsigned, install at your own risk

Unverified

This 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-deps
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/clojure-brackendev-clojure-deps/SKILL.md

Setup guide →
0Save

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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 toolCommand
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-cljsWith :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>.
ClojureDartThe 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

SourceCommand or URLNotes
Clojure CLIclojure -X:deps find-versions :lib group/artifactLists 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.
Clojarscurl -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 Centralhttps://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 dependenciesgit 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 context7 skill 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> version shows the latest release. The clojurescript skill covers npm interop.
  • ClojureDart. Releases are GitHub releases of Tensegritics/ClojureDart, and /cljd-upgrade performs the upgrade. Dart packages come from flutter pub add and pubspec.yaml, as the clojuredart skill 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.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from Clojure Skills (brackendev)

View source →
clojure-debugUse when a Clojure, ClojureScript, or ClojureDart program, REPL evaluation, build, or test fails with an error: a stack trace, an exception, a compiler or macroexpansion error, or `ex-info` data in output. Triggers: "Syntax error compiling", "Syntax error macroexpanding", "Syntax error reading source", "Execution error", "Error printing return value", "Unable to resolve symbol", "Could not locate ... on classpath", "did not conform to spec", "Full report at", `ExceptionInfo`, `CompilerException`, `ex-data`, `ex-cause`, `*e`, a `NullPointerException` or `ClassCastException` in Clojure code, or a failing test that reports an error rather than a failed assertion. Covers keeping the original evidence, separating the error phase and wrapper exceptions from the root cause, reading `ex-data`, finding the first application frame, reproducing the failure, and verifying a focused fix.0 installsclj-fixFix a Clojure project with lint, format, test, and dry (duplicate-form) steps. Applies safe lint fixes and formatting by default. Use when asked to lint, format, test, or check a Clojure project, or to fix clj-kondo warnings or cljfmt formatting in Clojure code. For ClojureScript, Electric, Fulcro, ClojureDart, and Babashka projects, prefer /cljs-fix, /electric-fix, /fulcro-fix, /cljd-fix, or /bb-fix when installed. Use --report to preview the lint and format changes without writing.0 installsclj-smells-fixFix Clojure code against the clj-smells catalog of Clojure-specific code smells. Auto-applies Stage 1 mechanical findings and Stage 2 DEFECT-tier findings, and reports SMELL and HINT findings. Use when asked to find or fix Clojure code smells, or to fix namespace problems such as `:refer :all`, `:use`, or unused requires. Use --report to disable writes.0 installsclojure-replUse when evaluating Clojure, ClojureScript, or ClojureDart code in a running REPL: checking how a function behaves, reproducing a bug interactively, reloading a changed namespace, inspecting live application state, or running a test namespace from the REPL. Triggers: nREPL, `.nrepl-port`, `.shadow-cljs/nrepl.port`, `clj-nrepl-eval`, clojure-mcp, `clojure_eval`, `list_nrepl_ports`, `shadow/repl`, the ClojureDart socket REPL, `:reload`, "try it in the REPL", "evaluate this", or REPL-driven development. Covers finding and verifying the right REPL, choosing a client, evaluating small forms with bounded output, reloading, and confirming REPL results against the saved source.0 installsclojureUse when writing, editing, reviewing, or discussing Clojure family code. Triggers: .clj, .cljs, .cljc, and .cljd files; deps.edn projects; shadow-cljs.edn; bb.edn; project.clj; build.clj; clojure.test, cljs.test, cljd.test; clojure.core forms (`defn`, `let`, `ns`, threading macros, destructuring, multimethods, protocols, transducers, specs, atoms); REPL usage; or any mention of Clojure, ClojureScript, ClojureDart, or a Clojure dialect. Covers idiomatic style, naming conventions, threading macros, collection idioms, atom-based state, dispatch, formatting, namespaces, and common anti-patterns.0 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.635 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.535 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.346 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.246 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.173 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions145 installs

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.