/pure-dev:trim-commentsfrom Pure Dev
Reviews comments and Javadoc added by the current branch vs. its target, deleting those that narrate code or rationalize changes. Keeps only comments that capture genuine surprises a reader would otherwise 'fix'.
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.
Scoped to one branch's diff — not a whole-file or whole-repo comment sweep.
Naming is the documentation. A function name and its body should read better than any comment you could put above them; if they don't, rename or restructure rather than explain. Do not narrate what the code does, and do not rationalise why you wrote it — both restate the code, and both go stale the moment it changes.
A comment earns its place only when the code is genuinely ambiguous, or when it looks like it contradicts the status quo and a reader would otherwise "fix" it:
Write the surprise, not the summary.
Tests are not an exception — they are the clearest case. A test's name and its assertions already state the intended behaviour; a comment above them almost always repeats it. Name the test so the comment becomes unnecessary. The only test comment worth keeping is one explaining why an assertion that looks wrong is correct.
Match the surrounding file's comment density. Most functions in this codebase have none.
Target branch, in order of preference:
args, if the caller passed one explicitly.push-mr.sh ... --target <branch> invocation this session, if
visible in context.git symbolic-ref refs/remotes/origin/HEAD --short 2>/dev/null (strip the
origin/ prefix), falling back to the first of finos-master, master, main that exists as
origin/<name>.Diff range: origin/<target>...HEAD — a merge-base diff, not a two-dot diff, since the branch may
be rebased ahead of a stale local tracking ref.
For every file in that diff, look only at added comment and Javadoc lines (lines starting +
for a //, /* */, /** */, #, or language equivalent). Pre-existing comments the branch didn't
touch are out of scope.
Apply the bar above to each one. Concretely:
@param/@return/@throws that document a real public API contract, but
tighten the text.Do not touch:
git commit -m "Trim comments to intent-only". If nothing needed trimming, there is nothing to
commit — say so and stop.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