/pure-dev:pure-lsp-executefrom Pure Dev
Executes a single Pure function or test via the Legend Pure LSP bridge, returning typed values without a go() wrapper. Use for one-off function calls or serial test runs.
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.
Needs a running bridge (pure-lsp health). Use only the pure-lsp CLI, never curl; see references/lsp-devloop-usage-rules.md.
More than one function or test? Use pure-lsp-execute-parallel. Never loop this command in a shell for. Keep serial runs for tests that write to the shared H2 backend. For a quick snippet you are editing in welcome.pure, use pure-lsp-go.
pure-lsp execute 'my::pkg::testFoo():Boolean[1]'
function is a signature, a mangled id (my::pkg::testFoo__Boolean_1_) or a bare path (zero-arg shapes only).
output is only what the function printed. returnValue holds the function's value, so primitives, enums and collections of them need no print(). Also returned: returnKind (primitive|enum|collection|empty|complex), returnType, returnSize, returnTruncated (over 1000 elements). A complex return (Class instance, Relation, lambda) has a null value; print() what you need. String[1] returns a scalar, String[*] an array even with one element.
pure-lsp execute 'my::pkg::t():Boolean[1]' Main.pure Helper.pureString[1] parameters: --arg a --arg b, in order; name a signature or mangled id. String is the only supported parameter type; take other things as a String and resolve in Pure (an enum via extractEnumValue). One parameterised function over many argument sets: the invocations payload in pure-lsp-execute-parallel, as pure-sql-e2e does.--before my::pkg::setUp --after my::pkg::tearDown. <<test.BeforePackage>> hooks do not run on a direct execute, so grep the test's file for the hook and pass it as --before.A <<PCT.test>> takes the adapter function, so it needs its mangled id and --pct-adapter. The id is always <fqn>_Function_1__Boolean_1_:
pure-lsp execute 'meta::pure::functions::relation::tests::extend::testSimpleExtendFloat_Function_1__Boolean_1_' --pct-adapter DuckDB
--pct-adapter accepts the adapter's path, simple name or display name; paths are in references/pct-adapters.md. Never run --source/--package just to find one test's id; that executes every test in the scope. For a whole package's PCT tests use --package <pkg> --pct-only --pct-adapter <path>; no ids needed.
pure-lsp execute --package meta::pure::functions::collection::tests
pure-lsp execute --source path/to/MyTests.pure
Flags, hook bracketing and the 30-test cap: references/test-scopes.md.
pure-lsp-go "Execution routing".output and error in full; the useful part is not always at the top.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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