/rfe-creator:rfe-reviewfrom rfe-creator
Reviews and improves work items (RFEs, Initiatives) by fetching from Jira or local artifacts, running rubric scoring and review dimensions, then auto-revising issues found.
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 review orchestrator: you coordinate reviews and revisions by launching agents and reading structured results. Critical: never read file contents into your context — read frontmatter via scripts/frontmatter.py read and check file existence via scripts/check_review_progress.py --list-ids (no Glob tool on native Claude Code builds; shell globs are off the headless allowlist). Content-heavy work (item bodies, assessment results, writing reviews, revisions) 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> (an explicit type — always wins) and --project <KEY> (a type family's member, by Jira project) if present--headless flag if present (suppresses end-of-run summary)--caller <name> if present (the calling skill, for the headless return){ID_GRAMMAR} once resolved)Resolve the work-item type. Forward only --type <t>, --project <KEY> and --headless (each when given) and the explicit IDs — never any other flag:
python3 scripts/type_registry.py resolve [--type <t>] [--project <KEY>] [--headless] <IDs>
A non-zero exit (unknown type, ambiguous ids, or exit 3: an undecided type family — pass --type <member> or --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> review
Persist the parsed flags and all IDs (both survive context compression):
python3 scripts/state.py init tmp/{STATE_PREFIX}review-config.yaml type={TYPE} headless=<true/false> caller=<split|none>
python3 scripts/state.py write-ids tmp/{STATE_PREFIX}review-all-ids.txt <all_IDs>
Check which IDs already have a task file (no reading or searching for it):
python3 scripts/check_review_progress.py --phase {POLL_PREFIX}fetch --id-file tmp/{STATE_PREFIX}review-all-ids.txt --list-ids
One-shot existence check, not a wave poll: ignore its NEXT_POLL; split the IDs by COMPLETED_IDS and PENDING_IDS:
Agent prompts. Every agent below runs with model: opus, run_in_background: true, and its prompt has the shape the headless dispatcher uses — the launch block, the step's substitutions, then the read line:
<launch block>
Substitute: <the step's substitutions>
Read .claude/skills/rfe-review/prompts/<prompt>.md and follow all instructions exactly.
Polling rule. After every wave: write the poll file once, run the checker, sleep the NEXT_POLL seconds it reports before polling again, print a status line only when the COMPLETED count changes, and wait for all to complete; check the status of any agent running longer than 5 minutes. Wait for the poll: launch no agent and read no artifact between polls.
For each remote ID, launch a fetch agent — substitute {KEY} with <ID> throughout, prompt fetch-agent.md. Poll (NEXT_POLL rule):
python3 scripts/state.py write-ids {POLL_FILE_PREFIX}fetch.txt <all_remote_IDs>
python3 scripts/check_review_progress.py --phase {POLL_PREFIX}fetch --id-file {POLL_FILE_PREFIX}fetch.txt
After the poll ends, re-run the check once with --list-ids; every ID under PENDING_IDS has no task file — for each, write an error to the review file:
python3 scripts/frontmatter.py set {REVIEWS_DIR}/<ID>-review.md {ID_FIELD}=<ID> score=0 pass=false recommendation=revise feasibility=feasible auto_revised=false needs_attention=true {SCORE_ZERO_SET} error="fetch_failed: task file not created" type={TYPE}
Remove failed IDs from the processing list and continue with the rest.
Run these in parallel (two Bash calls):
bash scripts/fetch-architecture-context.sh
{BOOTSTRAP}
If architecture fetch fails, proceed without it. If bootstrap fails, note it — review agents will do basic quality checks instead.
For each ID being reviewed:
Prepare assessment:
python3 scripts/prep_assess.py <ID>
Launch assess agent (model: opus, run_in_background: true, subagent_type: {SCORER_AGENT}) — substitutions {KEY}=<ID>, {DATA_FILE}={ASSESS_STAGING}/<ID>.md, {RUN_DIR}={ASSESS_STAGING}, prompt assess-agent.md (the rubric, {PROMPT_PATH}, is in the launch block).
Launch one agent per declared dimension (model: opus, run_in_background: true) — one per ID and dimension. DIMENSIONS={DIMENSIONS}; each <NAME> has a DIMENSION_<NAME>_PROMPT, _FILE, _BLOCKING and _CONDITION line in the launch block. Every dimension agent gets the same prompt, with that dimension's prompt file:
Read the file at <DIMENSION_<NAME>_PROMPT> and follow all instructions in it. The {ENTITY} ID to review is: <ID>
DIMENSION_<NAME>_CONDITION says when to launch it: always — for every ID; <field> startswith <prefix> — launch only when that task frontmatter field (python3 scripts/frontmatter.py read {TASKS_DIR}/<ID>.md) starts with the prefix; context_exists <path> — only when that path exists in the working directory. Otherwise skip the dimension for this ID; the review rules say what to record for one not assessed.
Launch all agents for all IDs in parallel (up to (1 + number of dimensions) × N agents for N IDs). Poll (NEXT_POLL rule) the assess phase plus one poll file and one --phase {POLL_PREFIX}<name> per blocking dimension (DIMENSION_<NAME>_BLOCKING=true):
python3 scripts/state.py write-ids {POLL_FILE_PREFIX}assess.txt <all_IDs>
python3 scripts/state.py write-ids {POLL_FILE_PREFIX}<name>.txt <all_IDs>
python3 scripts/check_review_progress.py --phase {POLL_PREFIX}assess --id-file {POLL_FILE_PREFIX}assess.txt
python3 scripts/check_review_progress.py --phase {POLL_PREFIX}<name> --id-file {POLL_FILE_PREFIX}<name>.txt
A non-blocking dimension (DIMENSION_<NAME>_BLOCKING=false) is polled the same way (--phase {POLL_PREFIX}<name>) but only for the IDs it was launched for — skip its poll block when it was launched for none (the checker exits 2 on an empty ID list); informational, not blocking: if still PENDING after 5 minutes, stop polling and continue; the prerequisite check below records the missing file without failing the ID.
After completion, re-run each poll once with --list-ids and read its PENDING_IDS:
PENDING_IDS for {POLL_PREFIX}assess has no assess result ({ASSESS_STAGING}/<ID>.result.md) → write error: assess_failedPENDING_IDS for a blocking dimension's phase has no DIMENSION_<NAME>_FILE → write error: <name>_failedPENDING_IDS for a non-blocking dimension whose agent was launched → note but do not treat as a blocking errorFor any missing prerequisite:
python3 scripts/frontmatter.py set {REVIEWS_DIR}/<ID>-review.md {ID_FIELD}=<ID> score=0 pass=false recommendation=revise feasibility=feasible auto_revised=false needs_attention=true {SCORE_ZERO_SET} error="<assess_failed or <name>_failed>: file not created" type={TYPE}
Remove failed IDs from the processing list and continue with the rest.
For each remaining ID, launch a review agent — substitutions {ID}=<ID>, {ASSESS_PATH}={ASSESS_STAGING}/<ID>.result.md, {FIRST_PASS}=true, plus one {<NAME>_PATH}=<DIMENSION_<NAME>_FILE> line for every dimension in DIMENSIONS={DIMENSIONS}; prompt review-agent.md. Launch all in parallel. Poll (NEXT_POLL rule):
python3 scripts/state.py write-ids {POLL_FILE_PREFIX}review.txt <all_IDs>
python3 scripts/check_review_progress.py --phase {POLL_PREFIX}review --id-file {POLL_FILE_PREFIX}review.txt
For any ID where the review file is missing or has no frontmatter, write error: review_failed (same stub command as above).
After all review agents complete, re-read the ID list from disk, then determine which IDs need revision:
python3 scripts/state.py read-ids tmp/{STATE_PREFIX}review-all-ids.txt
python3 scripts/filter_for_revision.py <all_IDs_from_file>
The script outputs the IDs that need revision (filters out passing, infeasible, and rejected IDs). If the output is empty, skip to Review Step 4.
Launch a revise agent for each ID returned — substitutions {ID}=<ID>, {REVISE_CYCLE}=0, prompt revise-agent.md. Launch all in parallel. Poll (NEXT_POLL rule):
python3 scripts/state.py write-ids {POLL_FILE_PREFIX}revise.txt <all_IDs_being_revised>
python3 scripts/check_review_progress.py --phase {POLL_PREFIX}revise --id-file {POLL_FILE_PREFIX}revise.txt
Post-processing: fix auto_revised flag. The revise agent may run out of budget before setting auto_revised=true, or set it after changing nothing (the flag is its completion marker). After all agents complete, run the batch check which compares originals to task files and sets the flag directly in review frontmatter:
python3 scripts/check_revised.py --batch {TYPE_FLAG} --ids-file {POLL_FILE_PREFIX}revise.txt
Re-read the ID list from disk, then check which IDs need re-assessment:
python3 scripts/state.py read-ids tmp/{STATE_PREFIX}review-all-ids.txt
python3 scripts/collect_recommendations.py --reassess {TYPE_FLAG} --ids-file tmp/{STATE_PREFIX}review-all-ids.txt
Parse the REASSESS= line (IDs with auto_revised=true, pass=false). If it names any, initialize the cycle counter on disk — set-default never resets an existing counter, so re-entry after compression is safe:
python3 scripts/state.py set-default tmp/{STATE_PREFIX}review-config.yaml reassess_cycle=0
Before each cycle re-read the counter; if reassess_cycle already shows 2 or higher, stop — max cycles reached. Increment after each cycle:
python3 scripts/state.py read tmp/{STATE_PREFIX}review-config.yaml
python3 scripts/state.py set tmp/{STATE_PREFIX}review-config.yaml reassess_cycle=<N+1>
For cycle 1, persist the reassess IDs to disk (needed across 4a–4e):
python3 scripts/state.py write-ids tmp/{STATE_PREFIX}review-reassess-ids.txt <all_reassess_IDs>
4a. Save cumulative state and remove review files so progress detection works:
python3 scripts/preserve_review_state.py save <all_reassess_IDs>
rm {REVIEWS_DIR}/<ID>-review.md # for each reassess ID
rm {ASSESS_STAGING}/<ID>.result.md # for each reassess ID
4b. Re-run assessment. For each reassess ID, prepare and launch an assess agent — this is the same process as Review Step 2:
python3 scripts/prep_assess.py <ID>
Launch an assess agent (model: opus, run_in_background: true, subagent_type: {SCORER_AGENT}) for each reassess ID with the Step 2 substitutions and prompt. Launch all in parallel. Re-read the reassess IDs from disk into the poll file and poll (NEXT_POLL rule):
python3 scripts/state.py copy-ids tmp/{STATE_PREFIX}review-reassess-ids.txt {POLL_FILE_PREFIX}reassess-assess.txt
python3 scripts/check_review_progress.py --phase {POLL_PREFIX}assess --id-file {POLL_FILE_PREFIX}reassess-assess.txt
4c. Launch review agents. Re-read reassess IDs from disk:
python3 scripts/state.py read-ids tmp/{STATE_PREFIX}review-reassess-ids.txt
For each reassess ID, launch a review agent with the Step 3 substitutions and prompt, but {FIRST_PASS}=false. Launch all in parallel. Poll (NEXT_POLL rule; review files were removed in 4a, so progress detection works):
python3 scripts/state.py copy-ids tmp/{STATE_PREFIX}review-reassess-ids.txt {POLL_FILE_PREFIX}reassess-review.txt
python3 scripts/check_review_progress.py --phase {POLL_PREFIX}review --id-file {POLL_FILE_PREFIX}reassess-review.txt
4d. Restore before_scores and revision history. Re-read reassess IDs from disk:
python3 scripts/state.py read-ids tmp/{STATE_PREFIX}review-reassess-ids.txt
python3 scripts/preserve_review_state.py restore <all_reassess_IDs_from_file>
4e. Filter for revision (also catches score regressions and sets autorevise_reject):
python3 scripts/filter_for_revision.py <all_reassess_IDs_from_file>
Launch revise agents for the IDs returned (if any) as in Step 3.5 with {REVISE_CYCLE}=<N+1>, wait for all, then run the batch flag fix:
python3 scripts/check_revised.py --batch {TYPE_FLAG} --clear-addressed-attention --ids-file tmp/{STATE_PREFIX}review-reassess-ids.txt
After cycle 2, stop regardless of results.
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}review-config.yaml
If headless: true: Output the text "rfe-review step completed." then read the split caller's config as its own Bash call — never chain commands with ; (denied in headless mode); a "State file not found" error means that caller's config does not exist:
python3 scripts/state.py read tmp/{STATE_PREFIX}split-config.yaml
Check the caller field above:
split: Returning to Split Step 3: Right-sizing Self-Correction of /rfe-split. Re-read parent IDs from tmp/{STATE_PREFIX}split-all-ids.txt. If the split config is not visible, re-read /rfe-split SKILL.md for the full flow. Do not summarize or stop.none (a direct /rfe-review --headless {TYPE_FLAG} <IDs> with no calling skill): nothing to return to — stop here; the completion text above was the announcement.If interactive (no --headless): Re-read ID list and present summary:
python3 scripts/batch_summary.py {TYPE_FLAG} --ids-file tmp/{STATE_PREFIX}review-all-ids.txt
Based on the output:
/rfe-submit --type {TYPE}./rfe-review --type {TYPE}./rfe-split --type {TYPE} <ID> for those IDs.RECLASSIFY=N): quote the review's needs_attention_reason; /rfe-submit only labels and comments them.$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 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.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