/pure-dev:pure-lsp-classpathfrom Pure Dev
Computes and caches the Maven classpath and dependency-ordered repo-roots for Pure language projects (legend-pure, legend-engine, or custom layers). Use before starting an engine-scale LSP daemon or when the cached classpath is stale.
Ships in Pure Dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The engine-scale LSP daemon needs (a) the full classpath of jars for the project you're working
in plus everything it depends on, and (b) the right --repo-roots so your edits are read from
source. Both are machine- and project-specific, so nothing can be a shipped file. This skill computes
and caches them for any pure-bearing project, respecting the dependency graph between them.
config/projects.json declares the pure-bearing projects and their dependsOn edges. Current graph:
legend-pure ← legend-engine
legend-pure (base, platform*), legend-engine (core*, → legend-pure)pure-lsp-classpath --list / pure-lsp-roots --list prints the registry + your checkout paths.
Add or adjust projects by editing config/projects.json (name, root/rootEnv, dependsOn,
module), or layer extra projects on top without editing it via PURE_DEV_EXTRA_PROJECTS_JSON
(os.pathsep-separated list of files shaped like config/projects.json; an extra entry's
dependsOn may reference legend-engine/legend-pure by name).
# Classpath (compute-if-stale, cached per project under ~/.cache/pure-dev/):
pure-lsp-classpath [project] # print cache path, computing if missing/stale
pure-lsp-classpath [project] --force # force recompute
pure-lsp-classpath [project] --path # print cache path only (never compute)
pure-lsp-classpath [project] --module M # override the Maven module to build from
# Repo-roots (dependency-ordered):
pure-lsp-roots [project] # DEFAULT: --repo-root for the FULL transitive dep chain
# (target + everything it depends on - edit anywhere)
pure-lsp-roots [project] --source X # EXACT custom set instead of the default (repeatable;
# target is always included) - everything else in the
# chain then resolves from the classpath jars, e.g.
# `pure-lsp-roots legend-engine --source legend-engine`
# source-roots only legend-engine, leaving legend-pure to
# load from jars.
pure-lsp-roots [project] --all-source # no-op alias for the default (kept for explicitness)
pure-lsp-roots [project] --json # root paths as a JSON array
project defaults to $PURE_DEV_PROJECT, else the project inferred from your current directory,
else you pass it explicitly. Checkout paths come from each project's rootEnv (e.g.
$LEGEND_ENGINE_ROOT) or $HOME/<root>.
The classpath is built from the highest project in the target's dependency set that has a classpath
module — its pure-ide-light (for legend-engine, legend-engine-pure-ide-light-http-server). That
one module's runtime classpath already contains every dependency-repo jar below it, so it covers the
whole stack: pure-lsp-classpath legend-engine builds from legend-engine's pure-ide-light module
(covers legend-engine + legend-pure jars). A project layered in via PURE_DEV_EXTRA_PROJECTS_JSON
with no classpath module of its own falls back the same way, to the highest dependency that has one
(then you source-root the extra project for your edits).
Caching: per-project cache ~/.cache/pure-dev/classpath-<project>.txt + a .stamp (project git
HEAD + module pom mtime). Reused until the checkout changes; recomputed on --force or staleness.
-o (offline) is tried first, retried online if needed. dependency:build-classpath output is the
os.pathsep-joined jar list --classpath-file expects.
# Work in legend-engine: DEFAULT already source-roots both legend-engine and legend-pure below it -
# no flag needed, edit anywhere in the stack:
pure-lsp-server $(pure-lsp-roots legend-engine) --classpath-file "$(pure-lsp-classpath legend-engine)" \
--port 8991 --socket-port 9100 --jvm-arg=-Dlegend.test.server.* ...
# Narrow to JUST legend-engine (legend-pure resolves from the classpath jars instead):
pure-lsp-server $(pure-lsp-roots legend-engine --source legend-engine) \
--classpath-file "$(pure-lsp-classpath legend-engine)" --port 8991 ...
--repo-root overrides which .pure is read from source; the --classpath-file still supplies the
JVM's Java + every dependency-repo jar you are NOT source-rooting. (See
references/lsp-devloop-internals.md for why both are needed.)
git pull in the project or a dependency (the stamp catches most).mvn clean install that bumps a -SNAPSHOT version (jar paths change).--force.mvn install of the project, which
the dev setup already does). It resolves the dependency classpath; it does not build code.pure-ide-classpath.txt.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub finos/legend-engine --plugin pure-dev15 skills in this plugin
/pure-backend-startStarts (or confirms) the standalone legend-engine backend - engine Server + H2 + local metadata server on fixed ports 9095/9092 - so a Pure LSP started with -Dlegend.test.* routes execute()/go() through real plan-generation instead of the interpreted engine. Starts only the backend, not the LSP. Use when the user wants to run Pure queries 'through the real engine', 'through plan-gen' or 'via the backend server', reproduce compiled-mode behaviour the interpreted engine cannot, or mentions legend.test.server, EngineServerForTest or LegendTest./pure-chain-updateProcedure for git-syncing and rebuilding a local legend-pure + legend-engine checkout, in dependency order, with pinned dependency versions resynced. Run by hand, one project at a time, fixing problems as they surface. Use for 'update my project chain', 'pull latest and rebuild <project>', 'sync legend-pure/legend-engine', 'refresh my local checkouts', or 'propagate my engine snapshot downstream'./pure-code-styleReformats a .pure file (or a block of Pure code) to a consistent house style: 2-space indentation with no column-aligned hanging indents, tight colons in type annotations, spaced pipes on if/match/lambda branches, one-parameter-per-line for long function signatures, and no stray blank lines or trailing whitespace. Whitespace-only - never changes tokens, logic, or semantics. Use when asked to 'format this Pure file', 'clean up the formatting', 'make this more readable', 'fix indentation', or 'make the style consistent' on .pure source.Other plugins' skills for the same job