/edge-scrum:release-healthfrom edge-scrum
Analyzes OCP release cycle health by evaluating Jira Features, Initiatives, Epics, and Tasks to assess progress, identify risks, surface refinement gaps, and recommend actions toward branch cut.
Ships in edge-scrum. 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.
You are orchestrating a release health analysis for the OCPEDGE team. Data fetching runs inline using MCP tools and transform scripts. Analysis is delegated to a sub-agent.
Before proceeding: Read
plugins/edge-scrum/references/Edge-Scrum-Laws.mdto find which law files apply to release health orchestration. For this skill, load:laws/00-team-roster.md,laws/01-jira-projects.md,laws/05-jira-features.md,laws/06-jira-fields.md,laws/09-sprint-policies.md,laws/14-agent-conventions.md. The configuration below is derived from the Laws — when in doubt, defer to the law files.
# Scrum Board (skill-specific; not in Laws)
board_id: "11479"
board_name: "OpenShift Edge Scrum"
sprint_prefix: ["OCPEDGE Sprint", "OpenShift Edge Sprint"]
# Custom Field IDs (Red Hat Jira instance-specific)
fields:
story_points: customfield_10028 # Numeric; Stories/Tasks/Spikes/Bugs (decision 0003)
parent: parent # Native issue → Epic link (Jira Cloud)
epic_link: customfield_10014 # Legacy fallback for the native Parent field
parent_link: customfield_10018 # Epic → Feature/Initiative relationship
qa_contact: customfield_10470 # User picker; QA owner
flagged: customfield_10021 # Array; non-empty = impediment
docs_approver: customfield_10473 # User picker; Doc Contact
sme: customfield_10475 # User picker; Subject Matter Expert
Rules:
plugins/edge-scrum/bin/) convert raw MCP data to structured JSONcheck-page.py to extract pagination info from persisted filesRead, Write, and jira_search — it consumes the structured JSONThe user may provide arguments: $ARGUMENTS
4.19, 5.0) → release version281-285) → first through last sprintbc:285 or branch-cut 285) → last sprint before feature freeze--refinement → refinement-only mode (see below)--refinement)When the --refinement flag is present, the skill runs a narrower analysis focused on whether Features are fully refined to the story level:
REFINEMENT_MODE parameter set to true. The sub-agent runs all standard checks but adds a REFINEMENT_BY_SME output section that groups gaps by SME with natural language summaries.Set REFINEMENT_MODE = true when parsing arguments if --refinement is present; otherwise REFINEMENT_MODE = false.
Read both files and hold in working memory:
Load these law files from plugins/edge-scrum/references/laws/:
00-team-roster.md — team capacity and .roster.json structure01-jira-projects.md — Jira projects and OCPBUGS components — authoritative project keys and component names05-jira-features.md — Feature/Initiative conventions and sizing06-jira-fields.md — custom field IDs09-sprint-policies.md — sprint capacity rules14-agent-conventions.md — agent orchestration conventionsplugins/edge-scrum/.roster.json — extract:
username, display_name, and sp_target per member.roster.json.example to .roster.json and populate it.The Laws are authoritative. Where this skill and the Laws conflict, the Laws win.
Parse arguments. Use AskUserQuestion for any missing values:
4.19, 5.0Compute and confirm:
FIRST = first sprint numberLAST = last sprint number (branch cut)TOTAL_SPRINTS = LAST − FIRST + 1REFINEMENT_SPRINT_NUM = FIRST (dedicated to spike creation, no delivery expected)TOTAL_DEV_SPRINTS = TOTAL_SPRINTS − 1TODAY = today's date (YYYY-MM-DD)Create the work directory:
WORKDIR=/tmp/release-health-$(date +%Y%m%d) && mkdir -p $WORKDIR && echo $WORKDIR
Record WORKDIR — substitute it into all agent prompts.
Fetch sprints and features in parallel using MCP tools, then transform with scripts.
Call jira_get_sprints_from_board for board_id "11479" three times:
state="active"state="closed" — paginate using page_token (see pagination protocol below); use limit=50state="future"After all pages are fetched, note all persisted file paths and run:
python3 plugins/edge-scrum/bin/transform-sprints.py \
--input <all_persisted_file_paths> \
--output {WORKDIR}/sprints.json \
--today {TODAY} \
--first-sprint {FIRST} \
--last-sprint {LAST} \
--total-dev-sprints {TOTAL_DEV_SPRINTS}
Call jira_search with:
project = OCPSTRAT AND issuetype in (Feature, Initiative) AND labels in ("ocpedge-plan", "microshift") AND "Target Version" = "openshift-{VERSION}" AND (resolution is EMPTY OR resolution not in (Duplicate, Obsolete)) ORDER BY Rank ASCproject = OCPSTRAT AND issuetype in (Feature, Initiative) AND labels in ("ocpedge-plan", "microshift") AND "Target Version" = "openshift-{VERSION}" AND status = "Refinement" AND (resolution is EMPTY OR resolution not in (Duplicate, Obsolete)) ORDER BY Rank ASCkey, summary, status, issuetype, priority, assignee, fixVersions, labels, description, issuelinks, customfield_10795, customfield_10470, customfield_10473, customfield_1047550Use the refinement-mode JQL when REFINEMENT_MODE = true.
Paginate using page_token. If zero results, use fallback JQL (set fallback_used):
project = OCPSTRAT AND issuetype in (Feature, Initiative) AND labels in ("ocpedge-plan", "microshift") AND "Target Version" = "openshift-{VERSION}" AND status not in (Done, Closed, "Release Pending") ORDER BY Rank ASC
After all pages fetched, run:
python3 plugins/edge-scrum/bin/transform-features.py \
--input <all_persisted_file_paths> \
--output {WORKDIR}/features.json
Append --fallback-used if fallback JQL was used.
Read and check:
{WORKDIR}/sprints.json — if "error" key is present or sprint_map is empty, warn the user and stop{WORKDIR}/features.json — if feature_keys is empty:
Read {WORKDIR}/features.json. Extract feature_keys_csv.
If feature_keys has more than 50 entries, split into batches of 50. For each batch, call jira_search:
project in (OCPEDGE, USHIFT) AND "Parent Link" in ({feature_keys_batch_csv}) ORDER BY Rank ASCkey, summary, status, assignee, labels, description, parent, customfield_10028, customfield_10018, customfield_10470, customfield_10473, customfield_1047550Paginate using page_token. After all pages fetched, run:
python3 plugins/edge-scrum/bin/transform-epics.py \
--input <all_persisted_file_paths> \
--output {WORKDIR}/epics.json
Read {WORKDIR}/sprints.json. Extract refinement_sprint_id.
Call jira_search:
project in (OCPEDGE, USHIFT) AND issuetype = Spike AND sprint = {refinement_sprint_id}key, summary, status, assignee, resolution, issuelinks50Paginate using page_token; note the persisted refinement-sprint spike file paths.
Linked spikes (reachable only via a feature's issuelinks). A feature may be blocked by a
spike that is not in the refinement sprint; transform-features.py records these as
spike_candidates, but the issuelink payload usually lacks the spike's assignee/status/resolution,
so the test-plan vs refinement classification can't be made from it alone. Collect every
spike_candidates[].key across {WORKDIR}/features.json that is not already among the
refinement-sprint spikes just fetched. If any remain, fetch them by key with jira_search
(batch in groups of 50):
key in ({linked_spike_keys_csv})key, summary, status, assignee, resolution, issuelinks50Paginate using page_token; note the persisted linked-spike file paths. If there are none, skip
this fetch and omit --linked-spikes below. Then run:
python3 plugins/edge-scrum/bin/transform-spikes.py \
--input <refinement_sprint_spike_file_paths> \
--linked-spikes <linked_spike_file_paths> \
--features-file {WORKDIR}/features.json \
--epics-file {WORKDIR}/epics.json \
--sprints-file {WORKDIR}/sprints.json \
--output {WORKDIR}/spikes.json
Read {WORKDIR}/epics.json and verify: epic_keys is a non-empty array, feature_to_epics is an object, and epics is an array. If any check fails, warn the user with a descriptive error and stop.
Capacity is planned against the team's measured velocity — the average completed SP over the last 3 closed sprints (edge-context decision 0015) — not the roster's sp_target sum. This is the same velocity step as release-planning. If it is impractical or returns nothing, skip it: the analyzer falls back to the roster sum (Σ sp_target × remaining sprints) and labels the capacity line as a fallback.
Write this run's velocity files to a fresh, uniquely named directory created with mktemp -d. Because the directory is new each run (a random suffix, no predictable path), there are no stale files for a glob to pick up and nothing to delete:
VELOCITY_DIR=$(mktemp -d "{WORKDIR}/velocity.XXXXXX") && echo "$VELOCITY_DIR"
Record VELOCITY_DIR and substitute it for {VELOCITY_DIR} below. It sits inside {WORKDIR}, so the end-of-run cleanup removes it with the rest of the run directory.
Build a full (unfiltered) closed-sprint map. Phase 2a's sprints.json was transformed with --first-sprint/--last-sprint, so its sprint_map holds only the release-window sprints — the recent closed sprints velocity needs sit before FIRST and are not in it. Re-run transform-sprints.py on the same state="closed" raw pages already persisted in Phase 2a, this time with no --first-sprint/--last-sprint (so sprint_map holds every closed sprint) and --today {TODAY}, writing {WORKDIR}/closed_sprints.json:
python3 plugins/edge-scrum/bin/transform-sprints.py \
--input <closed_sprint_raw_file_paths_from_phase_2a> \
--output {WORKDIR}/closed_sprints.json \
--today {TODAY}
From that sprint_map, pick the three closed sprints with the highest num (the three most recently closed sprints — do not filter by < FIRST; an early sprint of the current release that has already closed is a valid velocity input). Record each one's id, num, and (if available) start/end (the sprint_map date keys). Collect the exact file path you write for each sprint in step 2 into a list {VELOCITY_FILES}.
For each of those sprint IDs, call jira_search:
project in (OCPEDGE, USHIFT, OCPBUGS) AND sprint = {SPRINT_ID}key, summary, status, issuetype, assignee, resolutiondate, customfield_10028, customfield_10470, customfield_1002050, paginate with page_token.Write the sprint metadata to a file with the Write tool (never interpolate the Jira sprint name into a shell command — it is attacker-influenced text):
{VELOCITY_DIR}/velocity_s{NUM}.meta.json =
{"sprint_id": {SPRINT_ID}, "sprint_name": <SPRINT_NAME as a JSON-escaped string>, "sprint_start": <"YYYY-MM-DD" or null>, "sprint_end": <"YYYY-MM-DD" or null>}
JSON-encode SPRINT_NAME (a name containing " or \ breaks the file otherwise) and use the bare JSON literal null for a missing date, never the string "null" (which compute-velocity.py would treat as a real date). Read the metadata file back and confirm it parses as JSON before running the transform; if it does not, skip this sprint's velocity contribution.
Then run (pass the metadata file, not --sprint-name):
python3 plugins/edge-scrum/bin/transform-sprint-issues.py \
--input <all_persisted_file_paths> \
--output {VELOCITY_DIR}/velocity_s{NUM}.json \
--sprint-meta {VELOCITY_DIR}/velocity_s{NUM}.meta.json \
--today {TODAY}
Compute velocity from the (up to) three sprint files. Pass the exact files you wrote in {VELOCITY_FILES} (space-separated, each under {VELOCITY_DIR}), never a velocity_s*.json glob:
python3 plugins/edge-scrum/bin/compute-velocity.py \
--sprint-issues {VELOCITY_FILES} \
--roster plugins/edge-scrum/.roster.json \
--output {VELOCITY_DIR}/velocity.json
Velocity counts completed SP of team-owned issues (assignee or QA Contact on the roster, per law 00); bugs count like other work (decision 0003). A done issue is credited only to the sprint it finished in — the sprint with the latest end date among the sprints it belonged to (falling back to the highest sprint id, then its resolution date, when end dates are missing; Jira does not return the list in reliable order) — so an issue carried across sprints is not double-counted.
Law 09 plans capacity against velocity "adjusted for PTO and holidays". This is the same optional input as release-planning. Ask the user (via AskUserQuestion) whether any known PTO or company holidays fall in the remaining sprints. If they give you people-days away, convert to a per-sprint availability fraction for each remaining sprint: availability_i = 1 − (people-days away in sprint i ÷ (roster size × working days in sprint i)), clamped to [0, 1]. Record the resulting CSV as {AVAILABILITY} (one fraction per remaining sprint).
If the run is non-interactive, or the user skips or has nothing to report, leave {AVAILABILITY} empty. When it is empty the analysis uses the full remaining_sprint_count and the report must state the capacity is not adjusted for PTO.
This Jira instance uses page_token pagination, NOT start_at. Follow this protocol for all paginated MCP calls:
Make the first call without page_token
The response may be persisted to a file. Note the file path.
Run check-page.py to get pagination info:
python3 plugins/edge-scrum/bin/check-page.py <persisted_file_path>
Output: {"issues_count": N, "has_more": bool, "next_page_token": "..."}
If has_more is true: make the next call with page_token set to the next_page_token value. Repeat from step 2.
If has_more is false: pagination is complete.
For small responses that fit in context (not persisted), write them to {WORKDIR}/raw_<type>_<page>.json using Write, then run check-page.py on that file.
For jira_get_sprints_from_board: closed sprints may require multiple pages. Active and future typically fit in one page each.
Read plugins/edge-scrum/skills/release-health-analysis/SKILL.md. Substitute {WORKDIR}, {VELOCITY_DIR} (from step 3d, or empty if that step was skipped — the analyzer then uses the roster fallback), {VERSION}, {TODAY}, {REFINEMENT_SPRINT_NUM}, {REFINEMENT_MODE}, {AVAILABILITY} (the CSV from step 3e, or empty if not given), then spawn as a sub-agent:
This agent reads all four data files, detects misplaced spikes, fetches child issues, builds the hierarchy, assesses all risks, and writes {WORKDIR}/analysis.md.
REFINEMENT_MODE = false)plugins/edge-scrum/references/release-health-report-template.md{WORKDIR}/analysis.md===ANALYSIS_META=== block for header values{placeholder} values in the template:
{executive_summary}: Write 3-5 sentences using top_risks, overall_health, feature counts, and sprint_recommendation from ANALYSIS_META. Cover: overall verdict, count on track vs. at risk, top 2-3 risks, one recommended priority this sprint.{DASHBOARD}, {FEATURE_DETAIL}, {EPIC_DETAIL}, {RISK_REGISTER}, {REFINEMENT_BACKLOG}, {SPRINT_FORECAST}, {ACTIONS}: paste the corresponding ===SECTION:*=== block content from analysis.md, stripping the sentinel lines[KEY](https://redhat.atlassian.net/browse/KEY) markdown links, skipping keys already inside link syntax.reports/release_health_{VERSION}_{TODAY}.mdtest -n "{WORKDIR}" && [[ "{WORKDIR}" == /tmp/release-health-* ]] && rm -rf -- "{WORKDIR}"REFINEMENT_MODE = true){WORKDIR}/analysis.md===ANALYSIS_META=== block for header values===SECTION:REFINEMENT_BY_SME=== block from analysis.md. If the section is not found, halt with an error: "Analysis phase did not produce the REFINEMENT_BY_SME section — check sub-agent output."===SECTION:REFINEMENT_BACKLOG=== block from analysis.mdplugins/edge-scrum/references/refinement-report-template.md{VERSION}, {TODAY}, {REFINEMENT_SPRINT_NUM} — from release parameters{refinement_state} — derive from sprints.json: "Closed" if refinement_sprint_closed = true, otherwise "Open"{total_features} — from ANALYSIS_META total_features{refined_count} — from ANALYSIS_META refined_count{needs_attention_count} — from ANALYSIS_META needs_attention_count{REFINEMENT_BY_SME} — paste the extracted section content, stripping sentinel lines{REFINEMENT_BACKLOG} — paste the extracted section content, stripping sentinel lines.reports/refinement_{VERSION}_{TODAY}.mdtest -n "{WORKDIR}" && [[ "{WORKDIR}" == /tmp/release-health-* ]] && rm -rf -- "{WORKDIR}"4.19 vs 4.19.0): Analysis agent tries both in fixVersion queries."error" in JSON; main context stops before Phase 3.spike_keys[]; analysis agent uses worst-case status.all_ref_sprint_spikes cross-reference with epics.json.plugins/edge-scrum/bin/ — reusable data transformation (no LLM needed)plugins/edge-scrum/skills/release-health-analysis/SKILL.md — LLM-driven risk assessment and report generation{WORKDIR} persists across phases within a run. Rerunning on the same day overwrites prior files.plugins/edge-scrum/references/laws/ per the index at plugins/edge-scrum/references/Edge-Scrum-Laws.md — never hardcode roster, rules, or sizing in skill definitions.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub openshift-eng/edge-tooling --plugin edge-scrum9 skills in this plugin
/create-epicedge-scrum:create-epicUse when creating a new Epic in Jira for the OpenShift Edge team — enforces team conventions for required fields, description template, sizing, and parent linkage from Edge Scrum Laws/release-health-analysisAnalyze release health data and produce assessment/release-planningUse when assessing whether the team can deliver planned scope within remaining time — evaluates capacity, timeline, assignment, bug load, sizing, and progress risks per person and per feature to surface planning risks before they become execution problems/release-planning-analysisWrite the actionable recommendations and narrative for a release planning risk assessment — reads pre-computed check results and produces a short, decision-oriented recommendations file/sprint-healthUse when analyzing sprint health — capacity at the start, risks mid-sprint, or retrospective input at the end/sprint-health-capacity-analyzerAnalyze sprint capacity and commitment health