From rfe
Create well-defined JIRA artifacts (Features or Initiatives) from a strategy-level source issue (RFE, Outcome, OCPSTRAT, or any issue with linked RFEs). Triggers on: /rfe:decompose, "decompose RFE", "create features from RFE", "decompose outcome into features", "create features from OCPSTRAT", "create initiative from RFE"
How this skill is triggered — by the user, by Claude, or both
Slash command
/rfe:decompose <JIRA-KEY><JIRA-KEY>The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You take a strategy-level JIRA issue — an RFE, Outcome, OCPSTRAT issue, or similar — gather deep context from it and all its linked issues, ask targeted interview questions to fill gaps, then create well-defined Feature or Initiative issues in the appropriate JIRA project.
You take a strategy-level JIRA issue — an RFE, Outcome, OCPSTRAT issue, or similar — gather deep context from it and all its linked issues, ask targeted interview questions to fill gaps, then create well-defined Feature or Initiative issues in the appropriate JIRA project.
Read these reference files now before proceeding:
references/feature-definition.md — Feature template, project routing, custom field IDs, and acli creation patternreferences/artifact-hierarchy.md — when to create a Feature vs. Initiative vs. Outcome, lifecycle statuses, and project routingreferences/artifact-templates.md — Initiative and Outcome body templates and acli JSON payloadsreferences/wiki-markup.md — Jira wiki markup reference (for understanding existing issue descriptions; create new issues using ADF)Step 1: Fetch the source issue.
Run `acli jira workitem view <KEY> --json` (or appropriate acli command) and parse the JSON output directly.
Step 2: Fetch linked issues.
Parse all linked issue keys from the output above. Fetch each one, prioritizing:
Cap at 10 linked issues. For each:
Run `acli jira workitem view <KEY> --json` (or appropriate acli command) and parse the JSON output directly.
Step 3: Synthesize context.
First, determine the artifact type for each piece of work using references/artifact-hierarchy.md:
For each distinct artifact, assess the 9 required elements (from references/feature-definition.md for Features; references/artifact-templates.md for Initiatives/Outcomes):
Also note:
references/artifact-hierarchy.md project routing)Before drafting anything, search for existing Features and Initiatives that may already cover the work. Creating a duplicate wastes planning effort and fragments tracking.
Step 1: Search the target project for related Features/Initiatives.
Run `acli jira workitem view <KEY> --json` (or appropriate acli command) and parse the JSON output directly.
Step 2: Evaluate results.
| Finding | Action |
|---|---|
| Exact or near-exact match (same capability) | Stop — link the RFE to the existing Feature; do not create a new one |
| Partial overlap (some RFEs are covered) | Note which RFEs the existing Feature covers; only create new artifacts for the uncovered gap |
| Adjacent work (related but distinct) | Note the relationship; plan to link the new artifact after creation |
| No matches | Clear to proceed to Phase 2 |
Report your findings to the user before continuing.
Compare your synthesis against the required Feature elements. Identify the most important gaps — things that would make the Feature incomplete or unactionable without answers.
Generate questions that target those gaps. Pre-fill partial answers from context where possible. Do not ask about things that are already clearly answered by the gathered context.
Ask up to 4 questions using AskUserQuestion, then ask a 5th separately if needed (the tool accepts max 4 at once).
Good question framing:
Poor question framing (avoid):
Using all gathered context plus the interview answers, draft each artifact.
Apply the correct template:
references/feature-definition.mdreferences/artifact-templates.mdreferences/artifact-templates.mdFill every section with real content — no placeholders. If a section is explicitly not applicable, say so briefly.
Key quality bar:
h2., *, ||) — never Markdown (see references/wiki-markup.md)Present the draft(s) to the user:
## Draft: [Artifact Title]
**Type:** [Feature / Initiative / Outcome]
**Project:** [ROSA / XCMSTRAT / HCMPE / etc.]
**Summary:** [one-line title]
[Full body in Jira wiki markup]
Ask the user to confirm or request revisions before proceeding to creation. Do not create until approved.
CRITICAL: Use acli jira workitem create --from-json for creation. Descriptions must be in ADF (Atlassian Document Format), not Jira wiki markup. Convert the template body content to ADF before writing the JSON payload. See references/feature-definition.md and references/artifact-templates.md for the required fields and JSON schema.
For each approved artifact:
Step 1: Create via acli
Write the issue payload to a temp JSON file (see references/feature-definition.md for the schema), then:
acli jira workitem create --from-json /tmp/artifact-payload.json --json
Note the new issue key from the JSON output.
Step 2: Link to source issue
acli jira workitem link create --out <NEW-KEY> --in <SOURCE-KEY> --type "Implements" --yes
Step 3: Link to parent Outcome (if known)
acli jira workitem edit --key <NEW-KEY> --from-json /tmp/parent-link.json --yes
Where parent-link.json sets additionalAttributes.customfield_12313140 to the Outcome key.
Step 4: Report results
## Created Artifacts
| Key | Type | Summary | Project | Link |
|-----|------|---------|---------|------|
| ROSA-456 | Feature | ... | ROSA | $JIRA_URL/jira/browse/ROSA-456 |
| ROSA-457 | Initiative | ... | ROSA | $JIRA_URL/jira/browse/ROSA-457 |
Links created:
- ROSA-456 Implements OCPSTRAT-2666
- ROSA-457 Implements OCPSTRAT-2666
export JIRA_API_TOKEN=<your-token> and export JIRA_USER=<your-email> before running, or run /rfe:init."Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub jhjaggars/rfe --plugin rfe