/legend-release:release-triagefrom legend-release
Diagnoses failed Legend releases or CI runs by pulling failed jobs, separating real code failures from environmental/flaky ones, and recommending an action.
Ships in legend-release. 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.
Read when SKILL.md points to them.
Separates the branch is broken from the shared infrastructure is broken. The distinction matters: one needs a code fix and a re-release, the other needs an escalation and nothing else.
A single failed job routinely contains both. In legend-engine run 34857019489 the databricks job held one real PCT manifest failure and thirteen environmental Databricks failures; acting on the job name alone would have got it wrong.
Given a run ID, use it. Otherwise:
gh run list --workflow=release.yml -L 10
Pick the failed run on the branch in question and confirm with the user if ambiguous.
gh run view <run-id>
This gives the job list with pass/fail. Note which jobs failed and, importantly,
which jobs never started — a publish job showing 0s means nothing reached
Central, which decides whether the version number is still usable.
gh run view <run-id> --log-failed --job <job-id>
Logs are enormous. Do not read them whole. Extract the per-class tally and the individual errored tests:
gh run view <run-id> --log-failed --job <job-id> 2>&1 \
| sed 's/.*[0-9]Z //' | grep -E 'Tests run:.*(Failures: [1-9]|Errors: [1-9])|<<< (ERROR|FAILURE)' | head -40
Count distinct test names, not surefire's tally — PCT tests are frequently counted twice, so "26 errors" can mean 13 tests.
Check every distinct failure against references/known-failures.md (in this
skill's directory). For each, give a verdict:
Two rules of thumb. Failures in default-profile stores (H2, DuckDB, Java
binding, core, server) are almost always real — they run on every PR.
Failures in cloud stores (Snowflake, BigQuery, Databricks, Spanner, MemSQL)
under pct-cloud-test are often environmental, but a PCT expected-error
mismatch there is real and needs a manifest update.
State, per failure: what failed, the verdict, and the recommended action. Then the overall call — is this branch releasable after a rerun, or does it need a fix?
Report; do not act. Do not rerun jobs, edit manifests, or modify test code without the user asking. An auto-rerun of an environmental failure just burns another hour to fail the same way.
If the failure was not already in known-failures.md, add it — signature,
verdict, action, and the run ID where it was first seen. This file is the whole
value of the skill; a triage that does not feed it teaches the next one nothing.
The copy this skill reads is the installed plugin's, and edits to it are lost on
the next plugin update. Make the change in a finos/legend-shared checkout, at
claude-plugins/legend-release/skills/release-triage/references/known-failures.md,
and offer to open a PR for it. Ask before pushing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/post-release-verifyVerify a Legend release actually completed — artifacts readable on Central, tag correct, branch left at the right next SNAPSHOT, docker images pushed. Use after a release run goes green, or for "did the release work", "check the release landed", "verify 4.143.1"./release-backportBackport a fix to a Legend release branch safely, without dragging maven-release-plugin commits along with it. Use for "backport this to 4.100", "cherry-pick that fix onto the release branch", "get this fix into the release"./release-cleanupUndo a failed or partial Legend release — inspect what the release actually did, then surgically remove the tag and version-bump commits so the version can be cut again. Use for "the release failed, clean it up", "undo the release commits", "delete the tag so I can re-release", "the version bump was unintentional"./release-dispatchDispatch a Legend release workflow and babysit it to completion — picks the right workflow, runs preflight, confirms, triggers, then watches and triages any failure. Use for "release 4.143.1", "cut a release off this branch", "run the release action", "kick off the release"./release-preflightVerify a Legend repo is actually releasable before dispatching a release — tag free, version unpublished on Central, branch clean and pushed, pom version correct, no stray release-plugin commits. Use before any release dispatch, or when asked "can I release X", "is the branch ready", "check before I cut 4.143.1"./release-trainSequence a full Legend stack release across repos — shared, pure, engine, sdlc, depot — in dependency order, bumping each consumer's version properties as the previous one lands on Central. Use for "release the stack", "do the full release train", "release everything for 4.101", "what's next in the train".npx claudepluginhub finos/legend-shared --plugin legend-releaseOther plugins' skills for the same job