/microshift-release:analyze-zstream-to-release [Z|X|Y|RC|EC|nightly] [version|time-range...]from microshift-release
Evaluates OCP releases to determine whether MicroShift should participate, checking CVEs, RPM builds, and lifecycle status. Outputs action per version: OK, SKIP, ASK ART, NEEDS REVIEW, or ALREADY RELEASED.
Ships in microshift-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.
/microshift-release:analyze-zstream-to-release [release_type] [version|time-range...] [--verbose]
MicroShift ships as a layered product on top of OCP. Every time OCP releases a new version (z-stream, EC, RC, or nightly), the MicroShift team must evaluate whether to participate — checking for CVEs, verifying RPM builds exist in Brew, and deciding whether to ask ART to create artifacts.
This command automates that evaluation (Phase 0 of the release process). It checks lifecycle status, OCP payload availability, advisory CVEs, nightly build gaps, and EC/RC readiness — then outputs a clear action per version: OK, SKIP, ASK ART, NEEDS REVIEW, or ALREADY RELEASED.
When a time range is provided (e.g., "this week"), it queries ART Jira for OCP release tickets due in that period and evaluates each one.
| Requirement | Needed for | Mandatory? |
|---|---|---|
| VPN | Brew RPM checks (nightly, EC/RC), advisory report | Yes for nightly/ecrc — xyz degrades gracefully (skips advisory, 90-day rule) |
| Jira MCP | ART ticket queries, time range lookups | Yes — required for resolving versions from time ranges |
JIRA_API_TOKEN + JIRA_USERNAME | OCPBUGS enrichment, advisory CVE enrichment, component CVE discovery | No — script degrades gracefully (shows "Pending Jira lookup") |
GITLAB_API_TOKEN | Advisory report for 4.20+ (shipment MR data) | No — advisory skipped for 4.20+ without it |
release_type (optional): One or more of Z, X, Y, RC, EC, nightly (case-insensitive). If omitted, defaults to Z.version (optional): Specific version (e.g., 4.19.27) or minor stream (e.g., 4.21)time-range (optional): Natural language time range instead of explicit versions. Detected by keywords like:
today, tomorrowthis week, next weeknext 3 days, next 7 daysthis monthAll scripts are run relative to the repository root:
SCRIPTS_DIR=plugins/microshift-release/scripts
release_type(s) — tokens matching Z, X, Y, RC, EC, nightly (case-insensitive)version(s) — tokens matching X.Y or X.Y.Z patterntime range — remaining tokens that are not release types, versions, or flags (e.g., "this week", "next 3 days", "tomorrow")--verbose flagZ and treat version/time-range tokens accordinglyIf a time range is present instead of explicit versions, query ART Jira for release tickets due in that window:
Convert the time range to concrete dates (date_from, date_to) based on today's date. Weeks always start on Monday (ISO 8601):
today → today onlytomorrow → tomorrow onlythis week → Monday of the current ISO week through the following Sunday (if today is Sunday, it belongs to the week that started on the previous Monday)next week → Monday after the current ISO week through the following Sundaynext N days → today through N days from nowthis month → today through end of current monthQuery ART Jira using mcp__jira__jira_search:
jql: project = ART AND issuetype = Story AND summary ~ "Release" AND duedate >= "{date_from}" AND duedate <= "{date_to}" ORDER BY duedate ASC
Use limit: 50 to ensure all tickets in the window are returned. If the
query returns exactly 50 results, request additional pages until a page
returns fewer than the limit, so no in-window release ticket is truncated
before the version filter runs.
The broad summary ~ "Release" match deliberately spans all major
versions (4.x, 5.x, and later); the version-format filter in the next
step discards non-release stories.
Extract versions from ticket summaries. ART release tickets use the format "Release X.Y.Z [YYYY-Mon-DD]" (e.g., "Release 4.21.18 [2026-Jun-02]" or "Release 5.0.2 [2026-Nov-17]"). Keep only tickets whose summary matches the regex Release \d+\.\d+\.\d+ and extract the X.Y.Z version; ignore non-release stories (e.g., "Release RHCOS images in Konflux").
Filter to MicroShift-supported versions — keep 4.14+ and every later minor and major, including 5.x and beyond. MicroShift GA'd at 4.14, so only versions older than 4.14 have no MicroShift images. Concretely, keep a version X.Y.Z when X > 4, or when X == 4 AND Y >= 14.
Pass the resolved versions as explicit arguments to the script in Step 4.
If no ART tickets are found in the date range — or no tickets remain after the version-format and supported-version filters in steps 3–4 — report "No OCP releases scheduled in {range}." and stop without running Step 4.
Before running the script, query ART Jira for in-progress release tickets so the script can show ART ticket status in the Release Schedule table.
Call mcp__jira__jira_search with:
jql: project = ART AND summary ~ "Release" AND status = "In Progress" ORDER BY duedate ASCfields: summary,status,duedatelimit: 50From the results, build a JSON array:
[{"key": "ART-XXXXX", "summary": "Release 4.21.18 [2026-Jun-03]", "status": "In Progress", "due_date": "2026-06-03"}]
Write the JSON to a temp file and set ART_TICKETS_JSON env var:
echo '<json>' > /tmp/art_tickets.json
If mcp__jira__jira_search is not available, skip this step — the script degrades gracefully (shows None for ART tickets).
Map each release type to the corresponding analyze_zstream-to-release.sh subcommand and run via Bash:
| Release Type | Command |
|---|---|
Z, X, Y (default) | ART_TICKETS_JSON=/tmp/art_tickets.json bash ${SCRIPTS_DIR}/analyze_zstream-to-release.sh xyz [versions...] |
nightly | bash ${SCRIPTS_DIR}/analyze_zstream-to-release.sh nightly [version] |
EC | ART_TICKETS_JSON=/tmp/art_tickets.json bash ${SCRIPTS_DIR}/analyze_zstream-to-release.sh ecrc EC [version] |
RC | ART_TICKETS_JSON=/tmp/art_tickets.json bash ${SCRIPTS_DIR}/analyze_zstream-to-release.sh ecrc RC [version] |
Stderr contains progress messages — only display it if the script exits non-zero.
Multiple types (e.g., nightly EC RC): Run each command as a separate Bash call in parallel.
The script produces two output modes:
The script outputs all analysis in a single run:
Display the complete stdout as rendered markdown (NOT as a code block). The script outputs markdown tables — they MUST render as formatted tables, not raw text. Every section must be visible to the user. Do not summarize, abbreviate, or replace the output with your own tables or commentary. Bold the Recommendation column values in the Recommendations table.
The Recommendations table already combines summary data with
recommendation reasons — no parsing or reformatting needed.
No --verbose re-run or MCP enrichment steps are needed — the
script handles everything internally via JIRA_API_TOKEN.
If the script exits non-zero, display stderr and suggest:
GITLAB_API_TOKEN (for 4.20+ advisory reports)/microshift-release:analyze-zstream-to-release this week # OCP versions releasing this week
/microshift-release:analyze-zstream-to-release next week # OCP versions releasing next week
/microshift-release:analyze-zstream-to-release today # OCP versions releasing today
/microshift-release:analyze-zstream-to-release next 3 days # OCP versions in next 3 days
/microshift-release:analyze-zstream-to-release 4.21.10 # specific version
/microshift-release:analyze-zstream-to-release 4.20 4.21 4.22 # xyz eval for multiple streams
/microshift-release:analyze-zstream-to-release 4.19.27 --verbose # specific version, detailed report
/microshift-release:analyze-zstream-to-release nightly # nightly gaps for all active branches
/microshift-release:analyze-zstream-to-release EC # latest EC status
/microshift-release:analyze-zstream-to-release RC # latest RC status
/microshift-release:analyze-zstream-to-release nightly EC RC # combined report
| Emoji | Status | Meaning |
|---|---|---|
| 🔴 ASK ART | Create ticket to ART | OCP payload ready, must release |
| ⏳ BLOCKED | Action decided, waiting | Need to release but OCP payload not ready yet |
| 🟡 NEEDS REVIEW | Human judgment needed | Unlabeled OCPBUGS, ambiguous cases |
| 🟢 SKIP | No action | No CVEs, no bugs, within 90 days |
| ✅ ALREADY RELEASED | Done | Already shipped |
--json for raw JSON output when called directly (e.g., bash ${SCRIPTS_DIR}/analyze_zstream-to-release.sh xyz 4.21.10 --json)--verbose works for all types: detailed tables for xyz, NVR/nightly names for nightly, next versions for EC/RCJIRA_API_TOKEN + JIRA_USERNAME)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub openshift-eng/edge-tooling --plugin microshift-release8 skills in this plugin
/check-artifactsmicroshift-release:check-artifactsStep 1 after ART builds — validate RPMs and bootc images before release testing/check-bootc-advisorymicroshift-release:check-bootc-advisoryStep 3 — check the bootc image advisory for QE sign-off before shipment/check-published-releasemicroshift-release:check-published-releaseStep 5 after shipment — verify public artifacts, errata, documentation, and lifecycle information/check-rpm-erratamicroshift-release:check-rpm-errataStep 4 — check the RPM advisory in Errata Tool for QE sign-off before shipment/release-versionsmicroshift-release:release-versionsOptional lookup of MicroShift version availability and artifact locations; not build validation/request-release-to-artmicroshift-release:request-release-to-artStep 0b after ASK ART — request MicroShift z-stream builds, create release-tracking tickets, or guide the manual alternativeOther plugins' skills for the same job