/rfe-creator:rfe-splitfrom rfe-creator
Splits oversized work items (RFEs, initiatives) into smaller, right-sized ones by decomposing, generating new items, reviewing, self-correcting, and checking coverage. Takes one or more existing item IDs.
Ships in rfe-creator. 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.
You are a work-item splitting orchestrator. Your job is to coordinate decomposition by launching agents and reading structured results. Critical: never read file contents into your context — only read frontmatter via scripts/frontmatter.py read and check file existence via scripts/check_review_progress.py --list-ids (the dedicated Glob tool does not exist on native Claude Code builds, and shell globs are not on the headless allowlist). All content-heavy work (reading item bodies, decomposition analysis, generating children) is delegated to agents.
Reference for the person invoking this skill, not read during a run: docs/working-with-work-item-types.md (how the type is chosen and what changes with it).
Layout check. Skip it only when ${CLAUDE_SKILL_DIR} is under the working directory's .claude/skills/ and the working directory has types/_schema/type.schema.json (a checkout). Otherwise run once
bash "${CLAUDE_SKILL_DIR}/../../../scripts/bootstrap.sh" --layout
If ${CLAUDE_SKILL_DIR} reaches you unsubstituted (no substitution, or a Read of this file), use this skill file's directory instead. It links the plugin's scripts/ and types/ in; on any nonzero exit stop and show its message (exit 3 means the directory already carries its own). Every command below then runs exactly as written.
Parse $ARGUMENTS for flags and IDs:
--type <t> if present (an explicit type — always wins)--project <KEY> if present (the member of a type family, by its Jira project)--headless flag if present (suppresses end-of-run summary){ID_GRAMMAR} once resolved)Resolve the work-item type — forward only --type <t> (when given), --project <KEY> (when given), --headless (when given) and the explicit IDs:
python3 scripts/type_registry.py resolve [--type <t>] [--project <KEY>] [--headless] <IDs>
It prints TYPE RESOLVED: <type> (<how>); a non-zero exit (unknown type, ambiguous ids, or exit 3 after a --type that named a type family with several members and nothing that named one — name the member with --type, or add --project <KEY>) is an error — stop and report it. Then print the stage's launch block and keep it: every {VAR} in this skill is the value of that VAR= line, and every agent you launch gets the whole block prepended to its prompt:
python3 scripts/type_registry.py launch-vars <type> split
Persist parsed flags (survives context compression):
python3 scripts/state.py init tmp/{STATE_PREFIX}split-config.yaml type={TYPE} headless=<true/false>
If no arguments provided, stop with: "Usage: /rfe-split [--type <t>] <ID> [ID2 ...]. Provide one or more IDs."
Persist all IDs to disk (survives context compression):
python3 scripts/state.py write-ids tmp/{STATE_PREFIX}split-all-ids.txt <all_IDs>
Verify the task files exist without reading or searching for them:
python3 scripts/check_review_progress.py --phase {POLL_PREFIX}fetch --id-file tmp/{STATE_PREFIX}split-all-ids.txt --list-ids
This is a one-shot existence check, not a wave poll: ignore the NEXT_POLL value it prints. Every ID under PENDING_IDS has no {TASKS_DIR}/<ID>.md: report it and skip it.
The split agent prompt is the type's own file, {SPLIT_RULES_PATH} (from the launch block). For each ID, launch a split agent (model: opus, run_in_background: true):
<launch block>
Substitute: {ID}=<ID>, {TASK_FILE}={TASKS_DIR}/<ID>.md, {REVIEW_FILE}={REVIEWS_DIR}/<ID>-review.md
Read {SPLIT_RULES_PATH} and follow all instructions exactly.
Launch all split agents in parallel.
Write IDs to poll file once, then poll using NEXT_POLL interval:
python3 scripts/state.py write-ids {POLL_FILE_PREFIX}split.txt <all_IDs>
python3 scripts/check_review_progress.py --phase {POLL_PREFIX}split --id-file {POLL_FILE_PREFIX}split.txt
Sleep for the NEXT_POLL seconds reported by the script before polling again. Only output status when COMPLETED count changes. If any agent runs longer than 5 minutes, check its status.
After all agents complete, check split-status files for each ID. If the file is missing, write error to review frontmatter:
python3 scripts/frontmatter.py set {REVIEWS_DIR}/<ID>-review.md error="split_failed: agent did not write split-status file" type={TYPE}
Re-read parent IDs from disk (context compression may have corrupted in-memory lists):
python3 scripts/state.py read-ids tmp/{STATE_PREFIX}split-all-ids.txt
For each ID, read {REVIEWS_DIR}/<ID>-split-status.yaml. If action: no-split, update the review recommendation so downstream consumers don't treat it as needing a split:
python3 scripts/frontmatter.py set {REVIEWS_DIR}/<ID>-review.md recommendation=revise
For IDs where action: split, collect children:
python3 scripts/collect_children.py {TYPE_FLAG} <split_IDs>
Parse the output to get all child IDs. If any parent has zero children despite action: split, treat it as a no-split and update its recommendation to revise.
If there are children to review, invoke /rfe-review as an inline Skill, forwarding the resolved type and passing --headless through if present:
/rfe-review [--headless] --caller split {TYPE_FLAG} <child_ID_1> <child_ID_2> ...
This triggers the full agent delegation review pipeline on all children.
Limited to 1 cycle because repeated re-splitting compounds child count (e.g. 5 → 9) and produces diminishing returns — if decomposition is still wrong after one correction, it needs human judgment.
Initialize the correction cycle counter on disk (set-default is safe if compression causes re-entry — it won't reset an existing counter):
python3 scripts/state.py set-default tmp/{STATE_PREFIX}split-config.yaml correction_cycle=0
After /rfe-review completes on children, re-read config and parent IDs (context compression may have lost them):
python3 scripts/state.py read tmp/{STATE_PREFIX}split-config.yaml
If correction_cycle is 1 or higher, stop and report remaining right-sizing concerns. Otherwise, re-derive child IDs:
python3 scripts/collect_children.py {TYPE_FLAG} --ids-file tmp/{STATE_PREFIX}split-all-ids.txt
Check right-sized scores. For each child:
python3 scripts/frontmatter.py read {REVIEWS_DIR}/<child_ID>-review.md
If any child scores below {RESPLIT_BELOW}/2 on scores.{RESPLIT_FIELD} (the descriptor's pipeline.resplit threshold — the same rule the headless pipeline's check_right_sized.py applies), unless its review's recommendation is reclassify (the child reads as another work item type and is held for a human; a second split would bury that verdict):
python3 scripts/collect_children.py {TYPE_FLAG} <re-split_ID>/rfe-review [--headless] --caller split {TYPE_FLAG} <new_child_IDs>After each cycle, increment the counter on disk:
python3 scripts/state.py set tmp/{STATE_PREFIX}split-config.yaml correction_cycle=<N+1>
Re-read config before starting the next cycle to check the counter. Stop after 1 cycle and report remaining right-sizing concerns.
Do not re-split for non-Right-sized criteria. This loop only corrects grouping mistakes caught by the Right-sized score. Other criteria are handled by /rfe-review's auto-revision.
If INDEX_ENABLED={INDEX_ENABLED} is true, rebuild the index once:
python3 scripts/frontmatter.py rebuild-index
Re-read flags (in case context was compressed):
python3 scripts/state.py read tmp/{STATE_PREFIX}split-config.yaml
If headless: true: Output the text "rfe-split step completed." and stop.
If interactive (no --headless): Present the final state for each parent ID:
## Split Complete
Original: {KEY_EXAMPLE} (archived)
New {ENTITY_PLURAL}:
- {LOCAL_PREFIX}003: <title> (Priority: Normal) — PASS
- {LOCAL_PREFIX}004: <title> (Priority: Normal) — PASS
Coverage: All original scope items covered
Review: All new {ENTITY_PLURAL} passed
For IDs where action: no-split, report the reason recorded in the split-status file (e.g., delivery-coupled).
Tell the user they can:
/rfe-submit --type {TYPE} to create or update tickets in Jira{TASKS_DIR}/ and re-run /rfe-review --type {TYPE}$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
rfe-creator@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin rfe-creator13 skills in this plugin
/rfe-auto-fixReview and fix batches of work items automatically. Works for every registered type: RFEs by default, Initiatives with --type initiative. Accepts explicit IDs or a JQL query. Reviews, auto-revises, and splits oversized items. Non-interactive./rfe.auto-fixCompatibility alias for /rfe-auto-fix, kept so existing /rfe.auto-fix invocations keep working. Batch review, revision and split of RFEs: prefer /rfe-auto-fix (Initiatives: /rfe-auto-fix --type initiative)./rfe-createWrite a new work item — an RFE from a problem statement, idea, or need (business needs, WHAT/WHY), or an Initiative from an objective or strategic goal. Works for every registered type: RFEs by default, Initiatives with --type initiative. Asks clarifying questions, then produces well-formed items. Use when starting from scratch./rfe.createCompatibility alias for /rfe-create, kept so existing /rfe.create invocations keep working. Write a new RFE: prefer /rfe-create (Initiatives: /rfe-create --type initiative)./rfe-creator.update-depsForce re-vendor the dependencies — assess-rfe skills at the descriptor-pinned commit and the latest architecture context. Use after bumping pipeline.rubric.ref or to repair a stale copy./rfe-reviewReview and improve work items. Works for every registered type: RFEs by default, Initiatives with --type initiative. Accepts one or more Jira keys to fetch and review existing items, or reviews local artifacts from /rfe-create. Runs rubric scoring and the type's review dimensions (technical feasibility, strategic alignment), then auto-revises the issues it finds.Other plugins' skills for the same job