/legend-release:release-backportfrom legend-release
Backports fixes to Legend release branches while avoiding maven-release-plugin version bumps. Use when cherry-picking a fix onto a release branch.
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.
None: SKILL.md is the whole skill.
Getting a fix onto a release branch. The hazard this skill exists for: a backport that also carries the release-plugin commits, which silently bumps the whole branch's version and breaks the next release.
That is exactly what happened to legend-engine 4.143.1 — PR #5210 squashed
prepare release 4.143.1, prepare for next development iteration, and the
actual fix into one commit, moving 602 poms to 4.143.2-SNAPSHOT as a side
effect. The fix was two lines of JSON.
Read ../release-preflight/references/repo-matrix.md (relative to this skill's directory) for branch and
label conventions.
create-release-branch.yml creates a label backport <release-branch> (e.g.
backport legend-release-<stack-version>; older branches are
release-legend-release-<stack-version>) for each release branch. Applying it to a
merged master PR opens the backport PR automatically via backport.yml:
gh pr edit <pr> --add-label "backport <release-branch>"
Use this when the fix is a merged master PR. Note the known limitation in
backport.yml: adding a second backport label later re-evaluates all labels
and posts a spurious failure comment for the already-completed one. Expected, not a bug.
When the label route does not apply (fix not on master, or the automation failed):
git log --format='%H %s%n%b' -5 <source-ref>
[maven-release-plugin]. If a candidate commit is a
squash containing them, do not pick it whole. Pick the fix alone — either
from the original unsquashed commit, or by applying just the non-pom paths:
git show <sha> --stat | grep -v 'pom.xml$'
git cherry-pick -x <sha>
git diff HEAD~1 HEAD --stat | tail -3
If any pom.xml version lines moved, stop — the backport has picked up a
version bump and must be redone.-SNAPSHOT it had before. For legend-shared, check <revision>.The release branch has changed, so anything already built from it is stale. Run
release-preflight before dispatching a release from the branch.
If a backport has already landed with release-plugin commits in it, that is
release-cleanup's job — it can strip the version churn and keep the fix.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub finos/legend-shared --plugin legend-release7 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-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"./release-triageDiagnose a failed Legend release or CI run — pull the failed jobs, separate real code failures from known environmental/flaky ones, and recommend an action. Use for "why did the release fail", "what broke", "triage this run", or any failed release/build run.Other plugins' skills for the same job