/rfe-creator:rfe-auto-fixfrom rfe-creator
Non-interactively reviews, auto-revises, and splits oversized work items (RFE, Initiative) by explicit IDs or JQL query. Runs autonomously without confirmation.
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 non-interactive work-item auto-fix pipeline. Do not ask questions or wait for confirmation. Make all decisions autonomously.
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:
--type <t> (an explicit type — always wins), --project <KEY> (the member of a type family, by its Jira project)--jql "<query>", --limit N, --batch-size N (default 50), --data-dir "<path>"--headless, --announce-complete, --reprocess, --random NForward to resolve --type <t>, --project <KEY> and --headless (each when given), the explicit IDs and, in JQL mode, the query itself as --jql "<query>" (as ONE shell argument, the text unchanged: double-quoted when the query holds no ", $, backtick or backslash — a single quote inside it is then literal, so a caller's double-quoted argument is copied as written — otherwise single-quoted, --jql '<query>', with each single quote inside it written as '\'', which also keeps $(...) and backticks literal; the snapshot_fetch.py fetch "<query>" call below takes the query in the same form) — never --data-dir, --limit, --batch-size, --announce-complete, --reprocess or --random:
python3 scripts/type_registry.py resolve [--type <t>] [--project <KEY>] [--headless] [--jql "<query>"] <IDs>
In JQL mode there are no ids to forward: run python3 scripts/type_registry.py resolve [--type <t>] [--project <KEY>] [--headless] --jql "<query>", passing each flag only when the invocation supplied it. It prints one line, TYPE RESOLVED: <type> (<how>) — a positive project = / project in (...) clause of the query picks the member of a type family (jql project), and snapshot_fetch.py below still cross-checks the query against the resolved type's binding; with no --type, no project clause and no ids the run resolves to the legacy default (rfe). Exit 3 is an ambiguous type — ids from a project no type is bound to, or --type named a type family with several members and nothing named one — the line is TYPE AMBIGUOUS: <a>, <b> - pass --type on stdout, or ERROR: ambiguous type for ... on stderr under --headless or a CI marker: this skill never asks, so stop and report it — pass --type <member> (for a family, keeping its name and adding --project <KEY> decides it too). Any other non-zero exit is an error: stop. Then print the stage's launch block; every {VAR} in this skill is the value of that VAR= line:
python3 scripts/type_registry.py launch-vars <type> auto-fix
python3 scripts/pipeline_state.py init {TYPE_FLAG} [--batch-size N] [--headless] [--announce-complete]
Pass --headless only when the caller passed it.
The tmp/pipeline-* files in this skill take no type prefix (STATE_PREFIX is for the review, split and speedrun state files): write them exactly as shown.
JQL mode (--jql):
python3 scripts/snapshot_fetch.py fetch "<query>" {TYPE_FLAG} --ids-file tmp/pipeline-all-ids.txt --changed-file tmp/pipeline-changed-ids.txt [--limit N] [--data-dir "<path>"] [--reprocess] [--random N]
Quote <query> as in Step 0. Print [AUTOFIX] JQL: <jql> from stderr output. Pass --reprocess if set.
Reprocess-only mode (--reprocess without --jql):
python3 scripts/snapshot_fetch.py fetch --reprocess {TYPE_FLAG} --ids-file tmp/pipeline-all-ids.txt --changed-file tmp/pipeline-changed-ids.txt
Explicit mode:
python3 scripts/state.py write-ids tmp/pipeline-all-ids.txt <IDs>
python3 scripts/state.py write-ids tmp/pipeline-changed-ids.txt
If no IDs and no JQL and not --reprocess, stop with usage instructions.
{BOOTSTRAP}
Retry once on failure. If retry fails, stop: "bootstrap failed."
python3 scripts/check_resume.py --ids-file tmp/pipeline-all-ids.txt --changed-file tmp/pipeline-changed-ids.txt --output-file tmp/pipeline-process-ids.txt
Read process IDs: python3 scripts/state.py read-ids tmp/pipeline-process-ids.txt
Split into batches of batch_size. Write each:
python3 scripts/state.py write-ids tmp/pipeline-batch-1-ids.txt <batch_1_IDs>
python3 scripts/state.py write-ids tmp/pipeline-batch-2-ids.txt <batch_2_IDs>
Zero process IDs from the resume check is a normal outcome (JQL mode: nothing new or changed since the last run; explicit IDs: every one already processed), not an error: write no batch files and start the pipeline below with total_batches=0. The first next-action then returns done (no run report — there was no run); go to teardown. The resume check must have run: its empty output file is what makes the run idle.
Start the pipeline:
python3 scripts/pipeline_state.py set total_batches=<M>
python3 scripts/pipeline_state.py set-phase BATCH_START
CRITICAL: You MUST run the loop to completion. Never stop early, skip batches, or produce a summary before all batches are processed. Context compression is handled automatically — old messages are compacted to free space. Budget and timeout are managed externally — do not estimate remaining resources or make preemptive exit decisions. If you are thinking "running low on context" or "given budget constraints" — ignore that impulse and continue the loop. The pipeline MUST reach phase DONE naturally.
Bash discipline: Issue exactly one operation per Bash call. Never use command substitution $(...) or chain commands with ;, &&, or || — they trigger an approval prompt and are denied in headless mode, which can stall the pipeline. Instead, pass a value between commands by writing it to a tmp/ file with scripts/state.py and reading it back in a separate call.
Repeat until phase is DONE:
python3 scripts/pipeline_state.py next-action
Parse the YAML output for: action, phase, message, agents_file, agent_count, common_vars, agents.
done: Exit loop. Run teardown.
run_script: Run python3 scripts/pipeline_state.py run-phase. Go to step 1.
launch_wave: For each agent in the agents list:
common_vars, then the agent's vars, then "\n\nRead <prompt_file> and follow all instructions exactly.", verbatim — no substitution.common_vars is the part of the type's launch block that is the same for every agent, printed once per wave; vars are the agent's own pre-rendered KEY=VALUE lines (the launch-block lines that carry the agent's id, then the phase's own), with the id already substituted.subagent_type if present).agents_file. Recover a lost or compacted listing with python3 scripts/state.py read-launch tmp/pipeline-launch-wave.yaml --agent <N> (N = 1..agent_count, the agent's position in agents; omit --agent for the whole file), never by searching transcript or artifact files.Then wait for completion:
python3 scripts/pipeline_state.py wait-for-wave
On exit 0 (complete): go to step 1.
Barrier contract: On exit 3 the wave is still pending: wait by re-running python3 scripts/pipeline_state.py wait-for-wave. The barrier re-dispatches a stuck agent itself after the stall window and escalates when it cannot (docs/wave-stall-guard.md). While a wave is pending, launch no agent, read no artifact and run no command other than the barrier. If the launch list is lost mid-launch, recover it with python3 scripts/state.py read-launch tmp/pipeline-launch-wave.yaml --agent <N>, never by searching files.
Any other exit code is an error.
launch_wave outputThe values are the resolved type's (here rfe); the launch block lines are elided to …. A typed prompt file is the descriptor's relative path while the working directory carries it (the checkout, or the types/ link the bootstrap makes in any other working directory) and an absolute path only when it does not (a drop-in outside the checkout):
action: launch_wave
phase: ASSESS
message: "ASSESS: wave 1/2 (5 IDs)"
agents_file: tmp/pipeline-launch-wave.yaml
agent_count: 10
common_vars: |
…
PROMPT_PATH=.context/assess-rfe/skills/assess-rfe/scripts/agent_prompt.md
…
agents:
- id: RHAIRFE-1234
subagent_type: rfe-scorer
prompt_file: .claude/skills/rfe-review/prompts/assess-agent.md
vars: |
DIMENSION_FEASIBILITY_FILE=artifacts/rfe-reviews/RHAIRFE-1234-feasibility.md
DIMENSION_FILES=feasibility: artifacts/rfe-reviews/RHAIRFE-1234-feasibility.md
KEY=RHAIRFE-1234
DATA_FILE=tmp/rfe-assess/single/RHAIRFE-1234.md
RUN_DIR=tmp/rfe-assess/single
- id: RHAIRFE-1234
prompt_file: types/rfe/dimensions/feasibility.md
vars: |
DIMENSION_FEASIBILITY_FILE=artifacts/rfe-reviews/RHAIRFE-1234-feasibility.md
DIMENSION_FILES=feasibility: artifacts/rfe-reviews/RHAIRFE-1234-feasibility.md
ID=RHAIRFE-1234
After phase reaches DONE:
python3 scripts/batch_summary.py {TYPE_FLAG} --counts-only --ids-file tmp/pipeline-all-ids.txt
$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/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./rfe.reviewCompatibility alias for /rfe-review, kept so existing /rfe.review invocations keep working. Review, improve and auto-revise RFEs: prefer /rfe-review (Initiatives: /rfe-review --type initiative).rfe-creator@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin rfe-creatorOther plugins' skills for the same job