openshift/rhdh-ocp-lifecycle
>- Check which OCP versions are supported by active RHDH releases and which are end-of-life, using the Red Hat Product Life Cycles API for both RHDH and OCP lifecycle data including EUS phases. Supports OCP 4.x and future 5.x+
npx skills add https://github.com/openshift/release --skill rhdh-ocp-lifecycle
Query the Red Hat Product Life Cycles API to determine:
Use this skill when you need to check version support status before:
rhdh-ocp-coverage analysis skillcurl and jq must be availablehttps://access.redhat.comCLAUDE_SKILL_DIR is set automatically by the Claude Code skill loader. For manual invocation, set it to this skill's directory (e.g., CLAUDE_SKILL_DIR=ci-operator/config/redhat-developer/rhdh/.claude/skills/rhdh-ocp-lifecycle)Run the bundled script from the repository root:
bash "${CLAUDE_SKILL_DIR}/scripts/check-ocp-lifecycle.sh"
bash "${CLAUDE_SKILL_DIR}/scripts/check-ocp-lifecycle.sh" --version 4.16
bash "${CLAUDE_SKILL_DIR}/scripts/check-ocp-lifecycle.sh" --rhdh-version 1.9
bash "${CLAUDE_SKILL_DIR}/scripts/check-ocp-lifecycle.sh" --rhdh-only
Shows each RHDH release with:
| Column | Description |
|--------|-------------|
| VERSION | RHDH release version (e.g., 1.9) |
| SUPPORTED | yes or no |
| TYPE | Full Support, Maintenance Support, or End of life |
| GA_DATE | General Availability date |
| FULL_SUPPORT_END | End of Full Support phase |
| MAINTENANCE_END | End of Maintenance Support phase |
| SUPPORTED_OCP_VERSIONS | OCP versions this RHDH release officially supports |
After the table, a summary shows:
Shows each OCP version (4.x and future 5.x+) with two support indicators:
| Column | Description |
|--------|-------------|
| VERSION | OCP minor version (e.g., 4.16) |
| OCP_SUPP | yes if OCP version has upstream support (any phase) |
| RHDH_SUPP | yes if any active RHDH release supports this OCP version |
| PHASE | Current OCP lifecycle phase |
| GA_DATE | OCP General Availability date |
| END_DATE | Latest end-of-support date across all OCP phases |
The RHDH_SUPP column is the key indicator for CI coverage decisions. An OCP version should only have cluster pools and test entries if RHDH_SUPP=yes.
A JSON object is written to stderr with:
rhdh_supported_versions: Array of active RHDH releases with their OCP compatibilityocp_versions_supported_by_rhdh: Deduplicated array of OCP versions supported by any active RHDH releasehttps://access.redhat.com/product-life-cycles/api/v1/products?name=Red+Hat+Developer+Hubopenshift_compatibility field per RHDH version (the authoritative source for which OCP versions RHDH supports)https://access.redhat.com/product-life-cycles/api/v1/products?name=Red+Hat+OpenShift+Container+Platformopenshift_compatibility field of active RHDH releases. This is the set that should have cluster pools and CI test entries.Take openshift/rhdh-ocp-lifecycle from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.