/legend-release:release-preflightfrom legend-release
Runs read-only checks on a Legend repo before a release: verifies clean working tree, synced branch, no existing tag, version unpublished on Maven Central, correct pom version, no stray release-plugin commits, valid version format, and workflow file presence on target 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.
Read when SKILL.md points to them.
A Legend release costs 1–3 hours of CI. Every check here is cheap and catches a failure that would otherwise surface after that wait — or worse, after the tag has been pushed.
Read references/repo-matrix.md (in this skill's directory) first. The five
repos do not share a release mechanism, and three of the five have no
pre-flight gate in CI at all, so this skill is the only thing standing between
them and a burned version number.
Version to release, and the branch to release from. If the user gave only a
version, use the current branch. Derive the repo from git remote get-url origin.
Run these and report a go/no-go list. Read-only — nothing here mutates anything.
git status --porcelain. Anything uncommitted will
not be in the release.git status -sb. Ahead means the release
builds something other than what you are looking at; behind means you are
about to release without someone else's commits.<repo-name>-<version>:
git tag -l "<repo>-<version>"
git ls-remote --tags origin "refs/tags/<repo>-<version>"
Either one existing means this version was already attempted. Do not delete it
here — that is release-cleanup's job, and the tag may be a real past release.curl -s -o /dev/null -w '%{http_code}' \
"https://repo1.maven.org/maven2/<group path>/<artifact>/<version>/<artifact>-<version>.pom"
404 = free. 200 = that version number is burned; the only move is to bump.<version>-SNAPSHOT
for the version being released. A mismatch usually means a previous release
partially ran and bumped the branch (e.g. sitting at 4.143.2-SNAPSHOT when
you mean to cut 4.143.1). For legend-shared, read <revision> instead.[maven-release-plugin], including inside squashed commit bodies:
git log --format='%H %s%n%b' -15 | grep -n 'maven-release-plugin'
A squashed backport can hide them in its body while the version bump is real.
That is what broke the 4.143.1 release.MAJOR.MINOR.PATCH, no -SNAPSHOT. Every repo's
workflow rejects anything else.workflow_dispatch can only dispatch
a workflow file present on that branch: git ls-tree --name-only <ref> .github/workflows/.gh run list --workflow=release.yml -L 10
If the most recent run on this branch failed, say why before the user spends
the time again. Hand off to release-triage for the diagnosis.legend-pure only — its workflow rejects a releaseVersion below the
branch's current version. Check that ordering explicitly.A short checklist, each line pass/fail with the observed value. Then a verdict:
clear to release, or the specific blocking items. If something blocks, name the
skill that fixes it (release-cleanup for a stale tag or version drift) rather
than fixing it here.
Never dispatch from this skill. Preflight reports; release-dispatch acts.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
release-preflight, legend, maven-release, pre-release-checks
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-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.npx claudepluginhub finos/legend-shared --plugin legend-releaseOther plugins' skills for the same job