Create RHOAIENG epics from an approved RHAISTRAT strategy. Only creates epics (not child tasks, stories, or spikes). Requires the strategy to have passed review (recommendation: approve) and security review (verdict: PASS). Use when the user says "create epics for RHAISTRAT-XXXX" or invokes /epic-create.
Ships in rhoai-security-reviewer. 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.
Create RHOAIENG epics from an approved RHAISTRAT strategy. This skill ONLY creates epics — no child tasks, stories, spikes, or sub-tasks.
/epic-create RHAISTRAT-1536
/epic-create RHAISTRAT-1536 --headless
/epic-create RHAISTRAT-1536 --dry-run
/epic-create RHAISTRAT-1536 --headless --dry-run
| Flag | Behavior |
|---|---|
| (no flags) | Interactive mode. Present the epics, ask for confirmation, then create on approval. |
--headless | Non-interactive. Create all epics automatically. |
--dry-run | Output the epic definitions but do NOT create any tickets in JIRA. |
--headless --dry-run | Non-interactive + no creation. Output the structured epic list silently. |
All Jira operations use the bundled script. Requires JIRA_SERVER, JIRA_USER, and JIRA_TOKEN environment variables.
# Fetch an issue (returns JSON)
python3 ${CLAUDE_SKILL_DIR}/scripts/jira_ops.py get-issue RHAISTRAT-1536
# Fetch comments for an issue (returns JSON array)
python3 ${CLAUDE_SKILL_DIR}/scripts/jira_ops.py get-comments RHAISTRAT-1536
# Create an issue (pass JSON payload as argument, returns created issue JSON)
python3 ${CLAUDE_SKILL_DIR}/scripts/jira_ops.py create-issue '{"fields": {...}}'
# Update an issue
python3 ${CLAUDE_SKILL_DIR}/scripts/jira_ops.py update-issue RHOAIENG-12345 '{"fields": {...}}'
# Search with JQL
python3 ${CLAUDE_SKILL_DIR}/scripts/jira_ops.py search 'project = RHOAIENG AND ...'
Before doing any work, verify ALL of the following. If any check fails, report the failure and exit.
Read the strat review artifact:
/app/artifacts/strat-reviews/{STRAT-KEY}-review.md
Check the frontmatter:
recommendation must be approverecommendation is revise or reject, exit with: "Strat review recommendation is '{recommendation}', not 'approve'. Cannot create epics until the strategy is approved."Read the security review artifact:
/app/artifacts/security-reviews/{STRAT-KEY}-security-review.md
Check the frontmatter:
verdict must be PASSverdict is CONCERNS or FAIL, exit with: "Security review verdict is '{verdict}', not 'PASS'. Cannot create epics until security concerns are resolved.""No security review found for {STRAT-KEY}. Run strat-security-review first."python3 ${CLAUDE_SKILL_DIR}/scripts/jira_ops.py search 'project = RHOAIENG AND issuetype = Epic AND parent = {STRAT-KEY}'
If the search returns one or more issues, epics have already been created. Do not create duplicates. Output:
"RHAISTRAT-{key} already has {N} child epic(s) in RHOAIENG: {keys}. Skipping."
Fetch the RHAISTRAT ticket and its comments:
python3 ${CLAUDE_SKILL_DIR}/scripts/jira_ops.py get-issue {STRAT-KEY}
python3 ${CLAUDE_SKILL_DIR}/scripts/jira_ops.py get-comments {STRAT-KEY}
Extract:
| Field | Where to Find | Used For |
|---|---|---|
| Summary | summary | Epic titles |
| Description | description | Epic scope and acceptance criteria |
| Issue Type | issuetype | Feature vs Initiative |
| Components | components | RHOAIENG component field |
| Priority | priority | Inherited by epics |
| Assignee | assignee | Default epic assignee |
| Labels | labels | Check for release candidate labels |
| Fix Version | fixVersions | Inherited by epics |
| Due Date | duedate | Inherited by integration epics |
Also check for:
h2. Strategy (AI Generated by Agentic SDLC Pipeline) — contains Affected Components, Impacted Teams, High Level Requirements, Dependencies, Risks, and Effort Estimate.Only create epics — no child tasks, stories, or spikes. Those will be created separately later.
Always create:
[Eng] Epic — engineering implementation work
[QE] Epic — test validation work
If new component being added to RHOAI:
Integration epic — based on target maturity:
Dev Preview → Reference RHOAIENG-31244 template
Tech Preview → Reference RHOAIENG-31290 template
GA → Reference RHOAIENG-31303 template
+ Stakeholder Sign-Off Epic
If maturity level is unknown, ask the user (interactive) or skip integration epics (headless).
Summary of possible epics:
| Epic | When to Create |
|---|---|
[Eng RHAISTRAT-XXXX] {title} | Always |
[QE RHAISTRAT-XXXX] {title} validation | Always |
Dev Preview - ODH and RHOAI Integrations [{Component}/{Feature}] | New component targeting DP |
Tech Preview - ODH and RHOAI Integrations [{Component}/{Feature}] | New component targeting TP |
General Availability - ODH and RHOAI Integrations [{Component}/{Feature}] | Component graduating to GA |
[RHAISTRAT-XXXX] Stakeholder Sign Offs | GA features |
Title: [Eng RHAISTRAT-{key}] {concise feature title}
Description (Jira markup):
h2. Overview
Implement {one-sentence summary}, as specified in [RHAISTRAT-{key}|https://redhat.atlassian.net/browse/RHAISTRAT-{key}].
h2. Scope
* {scope item 1 — derived from RHAISTRAT requirements/acceptance criteria}
* {scope item 2}
* ...
h2. Acceptance Criteria
* {criterion 1 — mapped from RHAISTRAT, rewritten for engineering}
* {criterion 2}
* ...
Title: [QE RHAISTRAT-{key}] {concise description} validation
Description (Jira markup):
QE epic for RHAISTRAT-{key} -- {feature title}.
h2. Scope
h3. {test area 1}
* {test scenario}
* {test scenario}
h2. Dependencies
* {dependency 1}
If the template exists in this JIRA instance, instruct the user to clone it:
python3 ${CLAUDE_SKILL_DIR}/scripts/jira_ops.py get-issue RHOAIENG-{template_key}
If the template does not exist, skip the integration epic and note:
Integration epic skipped: The {DP/TP/GA} integration template (RHOAIENG-{key}) does not exist in this JIRA instance.
Title: [RHAISTRAT-{key}] Stakeholder Sign Offs
This is an empty epic — the 8 sign-off tasks will be added separately.
Output each epic with its fields:
## Epics for RHAISTRAT-{key}: {summary}
**Source**: [RHAISTRAT-{key}](https://redhat.atlassian.net/browse/RHAISTRAT-{key})
**Strat Review**: {recommendation} (score: {total}/8)
**Security Review**: {verdict}
**Components**: {components}
**Target**: {fix version}
---
### Epic 1: [Eng RHAISTRAT-{key}] {title}
**Type**: Epic
**Project**: RHOAIENG
**Parent**: RHAISTRAT-{key}
**Priority**: {priority}
**Components**: {components}
**Fix Version**: {fix version}
**Assignee**: {assignee}
**Description**:
{generated description in Jira markup}
---
### Epic 2: [QE RHAISTRAT-{key}] {title} validation
...
--headless mode--dry-run mode**Dry run complete. {N} epics would be created.**Use python3 ${CLAUDE_SKILL_DIR}/scripts/jira_ops.py create-issue '<JSON>' to create each epic, setting:
project: {"key": "RHOAIENG"}issuetype: {"id": "10000"} (Epic)parent: {"key": "RHAISTRAT-{key}"}summary: Epic titledescription: Generated descriptionpriority: Inherited from RHAISTRATcomponents: Inherited from RHAISTRATfixVersions: Inherited from RHAISTRATcustomfield_10011: Epic Name (same as summary)customfield_10855: Target Version (mirror of fixVersions)After creation, output a summary table AND write a receipt artifact to
/app/artifacts/epic-receipts/{STRAT-KEY}.md:
---
strat_key: RHAISTRAT-{key}
created_at: "YYYY-MM-DDTHH:MM:SSZ"
epics:
- key: RHOAIENG-XXXXX
title: "[Eng RHAISTRAT-{key}] ..."
type: eng
- key: RHOAIENG-XXXXX
title: "[QE RHAISTRAT-{key}] ..."
type: qe
---
Create the /app/artifacts/epic-receipts/ directory if it does not exist.
This receipt file is used by the workflow engine to skip re-runs.
After writing the receipt, add the strat-epics-created label to the RHAISTRAT ticket. This label is used by the batch pipeline as an idempotency check to skip re-runs when the receipt artifact is missing but epics were already created.
python3 -c "
import os, ssl, json, urllib.request, base64
server = os.environ['JIRA_SERVER']
user = os.environ['JIRA_USER']
token = os.environ['JIRA_TOKEN']
key = '{STRAT-KEY}'
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
creds = base64.b64encode(f'{user}:{token}'.encode()).decode()
data = json.dumps({'update': {'labels': [{'add': 'strat-epics-created'}]}}).encode()
req = urllib.request.Request(
f'{server}/rest/api/2/issue/{key}',
data=data,
headers={'Authorization': f'Basic {creds}', 'Content-Type': 'application/json'},
method='PUT')
urllib.request.urlopen(req, context=ctx)
print(f'Added strat-epics-created label to {key}')
"
If the label update fails, report the error but do not fail the epic creation.
Also output the summary table to stdout:
## Created Epics
| Key | Title | Parent |
|-----|-------|--------|
| RHOAIENG-XXXXX | [Eng RHAISTRAT-{key}] ... | RHAISTRAT-{key} |
| RHOAIENG-XXXXX | [QE RHAISTRAT-{key}] ... | RHAISTRAT-{key} |
In --dry-run mode, do NOT write the receipt artifact.
| Field Name | Custom Field ID | Type | Notes |
|---|---|---|---|
| Epic Link | customfield_10014 | String | Plain epic key |
| Epic Name | customfield_10011 | String | Set on epics only |
| Target Version | customfield_10855 | Array of strings | Mirror of fixVersions |
| Team | customfield_10001 | Object | {"name": "RHOAI Trusty AI"} |
| Type | ID |
|---|---|
| Epic | 10000 |
RHAISTRAT Feature (hierarchyLevel: 2)
└── RHOAIENG Epic (hierarchyLevel: 1) — linked via parent field
parent field.[Eng RHAISTRAT-XXXX] for engineering, [QE RHAISTRAT-XXXX] for validation.What SKILL.md sets; muted values are Claude Code's defaults
/rhoai-security-reviewer:epic-createfrom rhoai-security-reviewer
rhoai-security-reviewer@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin rhoai-security-reviewer28 skills in this plugin
/bug-completenessScore bug report completeness (0-100)Other plugins' skills for the same job