/tandem:refine-backlogfrom tandem
Refine a BACKLOG item or not-started STORY by running the SOP §6 Definition of Ready checklist. Use when the user asks to refine the backlog, refine an item, promote to ready, run DoR, gate a story, or invokes /tandem:refine-backlog. Operates as PM hat. Either flips status to ready (if all DoR items pass) OR stops, lists gaps, and asks — never silently promotes.
Ships in tandem. 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.
Operate as PM hat. The user wants to take a BACKLOG entry or a not-started STORY through the Definition of Ready gate — either promoting it to ready (eligible to pull into work) or surfacing exactly what's missing.
This skill is the slash-command wrapper for the kit's canonical refinement prompt. The prompt is the source of truth; this file is the entry point.
@_00-Project-Management/92-Prompts/05-refine-backlog-to-ready.md
Follow that prompt verbatim. The sections below add only the slash-command-specific glue + the DoR enforcement contract — do not re-declare the prompt's content here.
Per SOP §6, a story is ready only when all of the following are true. The skill walks each item; missing items abort the promotion with a clear gap list.
feature: and epic: set; parent Epic has okr: or prd_section: populated.33-Testplans/EPIC-NN/FEAT-NN.M/TESTPLAN-NN.M.PP-<slug>.md.Command:. No "have a human verify" steps.XL means split before promoting.type_of_work set to a concrete discipline (frontend / backend / infra / data / docs) — not the template placeholder. A missing or placeholder value is a DoR gap (it fuels execution-strategist sub-agent assignment; see SOP §11.3 / FEAT-03.1).STORY-/FEAT-/EPIC-/ADR-/BACKLOG- artefact, has been checked against that artefact's current frontmatter. A claim that contradicts reality — or names an artefact that can't be resolved — is a DoR gap.This skill never silently promotes. The contract:
status: not-started → ready, run the usage-estimate producer step below, then perform a fill-if-missing check: if the story's outcome: frontmatter is empty or absent, apply the write-outcomes rules inline — using the story's title + acceptance criteria + technical notes (the same input the other four FEAT-14.3 producers use, per ADR-0059's contract) — to generate exactly one plain-text line, then write that line into outcome: (fill-if-missing only — never overwrite an existing outcome). Dispatch a sub-agent only under ADR-0105 — write-outcomes runs inline first, rather than dispatching a sub-agent per artefact's named conditions (this producer's own context is near its limit, or an isolation-worthy batch run). Then flip the story (or BACKLOG entry, after conversion) status: not-started → ready. Atomic edit. Do not set started_at (that happens at in-progress, not ready). Show the user the result table.not-started > 90 days, propose wontfix or archived instead of refinement. Stale items rot; the kit prefers honest sunsetting over false hope.Every story this skill promotes to ready leaves carrying a usage_estimate: — the field has
existed since STORY-21.2.02 and nothing ever wrote one, so every estimate-vs-actual surface
in the kit prints an honest null (BACKLOG-0157). Run, per story, before the flip:
node _00-Project-Management/93-Scripts/usage-estimate.js --story <story-path>
## Technical notes. Do not
hand-write either — the basis is what makes a variance interpretable later.estimate: is missing or XL, that is a DoR gap: report it
in the gap list and do not promote. An XL story is split first (SOP §6).The derivation itself is written in exactly one place — do not restate it here or in any
skill: _00-Project-Management/90-Standards/USAGE-ESTIMATE-HEURISTIC.md.
Read it before overriding a produced number by hand; in particular it records why a ledger row is
not what a chat cost, and why every type_of_work multiplier is 1.00 today.
A story can be perfectly well-formed and still be wrong, because the other DoR items only check structure — never whether the item's stated premise is true. To walk the Premise verified item:
STORY-/FEAT-/EPIC-/ADR-/BACKLOG- id. (Only ids named with a status claim or mutation intent — a bare reference in prose does not trip the gate.)status: (and existence). If the artefact can't be found, or its real status contradicts the claim → DoR FAILS: do not promote; name the specific mismatch (claimed-vs-actual) and stop, consistent with the "never silently promote" rule above.Worked example (the regression fixture this guards) — STORY-15.1.02: it asserted "STORY-04.6.01–05 are five never-started, superseded stories" and proposed to flip them to archived — but all five are genuinely status: done. Executing it would have silently corrupted the board (done-count 154→149) while every structural gate stayed green (archived + completed_at is enum-legal; R21 doesn't fire on terminal status). The premise check resolves STORY-04.6.01…05, sees done, and fails the gate before promotion — catching systematically what was previously caught only by luck (execution happening to inspect the targets first).
The gap-list path is the skill's load-bearing differentiator vs the plain paste-prompt. Silent or partial promotion would corrupt the kit's "Ready means Ready" invariant — every downstream skill (execute-story especially) relies on it.
_00-Project-Management/11-Backlog/BACKLOG-NNNN-<slug>.md) — large items get refined into a Feature spec first; small ones promote directly to a Story+Testplan pair.not-started Story (_00-Project-Management/32-Stories/EPIC-NN/FEAT-NN.M/STORY-NN.M.PP-<slug>.md) — direct DoR gate.Use Read / Glob to detect existence. Treat missing files as "not present" rather than throwing.
_00-Project-Management/90-Standards/SOP.md (specifically §6 DoR + §15 sunset rule). The DoR list above is sourced from §6; if §6 has drifted from this skill's list, §6 wins — flag the drift to the user._00-Project-Management/90-Standards/PROJECT-CONTEXT.md (for stack-specific runnable-command conventions when checking testplan TCs)._00-Project-Management/42-Monitor/MONITOR.md for current WIP. After processing, the skill suggests "WIP is currently N in-progress + M in-review. You have capacity to pull K more."_00-Project-Management/91-Templates/STORY.template.md + _00-Project-Management/91-Templates/TESTPLAN.template.md (for the gap-fix proposals when ACs / testplans are incomplete).CLAUDE.md — for project-specific overrides./tandem:split-into-stories (after refinement). Don't write them inside this skill./tandem:split-into-features on the parent Epic, or draft a new Feature directly.wontfix or archived.status: not-started → ready. Atomic edit. Do not set started_at.Never silently promote. Every gap blocks the flip. No "I'll just fill that in for you" — the user owns the decision to patch or defer.
Process candidates serially, not in parallel — gives the user a beat to review each pass/fail call.
Show a summary table at the end:
| Item | DoR result | Notes |
|---|---|---|
| STORY-NN.M.PP | ✓ ready | Promoted 2026-MM-DD |
| STORY-NN.M.PP | ✗ fail | Missing: estimate, risks. Smallest fix: ... |
| BACKLOG-NNNN | ✗ sunset | Captured 2025-MM-DD (>90 days), no movement — propose wontfix |
Do not pull anything to in-progress here. That's /tandem:execute-story.
After processing, surface capacity guidance: "WIP is currently N in-progress (max 2) + M in-review (max 3). You have capacity to pull K more. Top Ready candidate: STORY-NN.M.PP."
ready touches status: only. Do not modify started_at or completed_at.ready is one of the closed 9 values; do not invent intermediate states.not-started > 90 days should be honestly retired rather than perpetually refined.ready: list of pathsNext: /tandem:execution-strategist
/tandem:split-into-stories <feature-path> — if a refined item turned out to be feature-sized.
Or, if a Story is now ready and within WIP capacity: /tandem:execute-story <story-path> — start the work.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub data-ai-xyz/tandem --plugin tandem32 skills in this plugin
/autopilotDrive the whole plan end-to-end unattended by chaining start-phase, each chat's execute-batch (subagent-per-batch), and close-phase across one or more phases — with checkpoint/resume, fail-halt guardrails, model tiering, and a usage-governor seam; use when the operator invokes /tandem:autopilot or asks to run the plan autonomously, hands-free, or unattended./close-out-storyClose out a STORY through the Definition of Done gate. Use when the testplan is fully PASS, when the user asks to close a story, to finish a story, to mark a story done, or to run the DoD check. Runs the DoD checklist, flips status to done, updates MONITOR, regenerates the dashboard./close-phaseClose out a whole phase after an execution-strategist chat / execute-batch run finishes — gate on every phase story being done, compile a phase retrospective, capture follow-ups, update the board, then run a gated merge to main. Use when the user asks to close a phase, wrap up a phase, run a phase retro, or wants to wrap up and integrate a finished chat/phase whose stories are already done.