cellar
Original:🇺🇸 English
Translated
Look up the public API of any JVM dependency (Scala 3, Scala 2, Java) from the terminal — type signatures, members, docs, and source as Markdown, no JAR unpacking needed. Use this skill whenever you need to call an unfamiliar library method, explore a package's types, or check a dependency's API. Prefer cellar over Metals MCP only for looking up external dependency APIs (`cellar get-external` vs Metals `inspect`/`get-docs`) — cellar needs no project import and queries any published Maven artifact. For everything else (references, rename, goto definition, diagnostics, compile), use Metals.
10installs
Sourcevirtuslab/cellar
Added on
NPX Install
npx skill4agent add virtuslab/cellar cellarTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Cellar
Use cellar to look up the API of JVM dependencies instead of guessing or manually downloading, unpacking, and searching JAR files for type signatures.
Prerequisites
Run to verify cellar is on PATH. If not found, the user
needs to install it: https://github.com/VirtusLab/cellar#installation
cellar --versionProject-aware commands (run from project root)
Query the current project's code and all its dependencies. Cellar auto-detects the build tool (Mill, sbt, scala-cli).
cellar get [--module <name>] <fqn> # single symbol (signature, members, docs)
cellar list [--module <name>] <package> # list symbols in a package or class
cellar search [--module <name>] <query> # case-insensitive substring search- Mill/sbt projects: is required (e.g.
--module,--module lib)--module core - scala-cli projects: omit
--module - : skip classpath cache, re-extract from build tool
--no-cache - : override JRE classpath
--java-home <path> - ,
-l: max results for--limit <N>/list(default: 50), max members forsearchget - : show only members declared on the type itself (
--hide-inheritedcommands)get - : group members by declaring type with section headers (
--group-inheritedcommands)get
External commands (query arbitrary Maven coordinates)
Query any published artifact by explicit coordinate ():
group:artifact:versioncellar get-external <coordinate> <fqn> # single symbol
cellar list-external <coordinate> <package> # list symbols
cellar search-external <coordinate> <query> # search by name
cellar get-source <coordinate> <fqn> # fetch source code
cellar deps <coordinate> # dependency tree- Coordinates must be explicit: (no
group:artifact_3:versionshorthand):: - For sbt plugins, use the full Scala and sbt suffix: (e.g.
group:artifact_2.12_1.0:version)org.scala-native:sbt-scala-native_2.12_1.0:latest - For compiler plugins and other artifacts with full Scala version suffixes, use the full version:
group:artifact_3.3.8:version - Use as the version to resolve the most recent release
latest - ,
-r: extra Maven repository (repeatable)--repository <url>
Workflow
- Don't know the package? → /
cellar searchcellar search-external - Know the package, not the type? → /
cellar listcellar list-external - Know the type? → /
cellar getcellar get-external - Need the implementation? →
cellar get-source
Examples
sh
# Look up a Scala 3 trait
cellar get-external org.typelevel:cats-core_3:2.10.0 cats.Monad
# Look up a Java class
cellar get-external org.apache.commons:commons-lang3:3.14.0 org.apache.commons.lang3.StringUtils
# List a package
cellar list-external io.circe:circe-core_3:0.14.6 io.circe
# Search for a method
cellar search-external org.typelevel:cats-core_3:2.10.0 flatMap
# Get source code
cellar get-source org.typelevel:cats-core_3:2.10.0 cats.Monad
# Dependency tree
cellar deps org.typelevel:cats-effect_3:3.5.4
# sbt plugin (use full Scala + sbt suffix)
cellar deps org.scala-native:sbt-scala-native_2.12_1.0:latest
# Project-aware (from a Mill project root)
cellar get --module lib cats.Monad
cellar list --module core cats
cellar search --module lib flatMapExample output
cellar get-external --hide-inherited org.typelevel:cats-core_3:2.10.0 cats.Monadmarkdown
## cats.Monad
`trait Monad[F] extends FlatMap[F] with Applicative[F]`
**Flags:** abstract
**Origin:** cats.Monad
**Members:**
def iterateWhile[A](f: F[A]): (p: A => Boolean): F[A]
def untilM[G, A](f: F[A]): (cond: => F[Boolean]): (G: Alternative[G]): F[G[A]]
def whileM_[A](p: F[Boolean]): (body: => F[A]): F[Unit]
def iterateUntil[A](f: F[A]): (p: A => Boolean): F[A]
… (+ 7 more)
**Companion members:** trait Ops[F, A], def apply[F](instance: Monad[F]): Monad[F], …Use to get only own members. Without it, all inherited members are shown (can be large for deep hierarchies).
--hide-inheritedWhen Metals MCP is also available
Prefer cellar only for external dependency API lookups ( vs Metals /): cellar requires no project import and works with any published Maven coordinate. For all other tasks — goto definition, find references, rename, diagnostics, compilation — use Metals.
cellar get-externalinspectget-docsOutput
- stdout: Markdown — ready to consume directly
- stderr: diagnostics (warnings, truncation notices)
- Exit 0: success, Exit 1: error