/tandem:split-into-storiesfrom tandem
Split a Feature into Stories AND paired Testplans in the same response. Use when the user asks to split / decompose a feature into stories, asks to write stories for a feature, asks to create stories + testplans, or invokes /tandem:split-into-stories. Operates as PM hat. Enforces the kit's MANDATORY Story → Testplan pairing rule — aborts (writes nothing) if it cannot produce both story and matching testplan in the same response.
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 has an approved Feature and needs to decompose it into work-sized Stories. Each Story ships with its paired Testplan in the same response — this is the kit's most load-bearing rule.
This skill is the slash-command wrapper for the kit's canonical story-decomposition prompt. The prompt is the source of truth; this file is the entry point.
@_00-Project-Management/92-Prompts/04-split-feature-into-stories.md
Follow that prompt verbatim. The sections below add only the slash-command-specific glue + the paired-testplan enforcement contract — do not re-declare the prompt's content here.
Per SOP §11 — "Story → Testplan pairing — MANDATORY" — every Story file under the resolved stories folder (via node _00-Project-Management/93-Scripts/lib/pm-paths.js resolve stories), organized as EPIC-NN/FEAT-NN.M/STORY-NN.M.PP-*.md, requires a paired Testplan in the resolved testplans folder, organized as EPIC-NN/FEAT-NN.M/TESTPLAN-NN.M.PP-<slug>.md, written in the same response. Folder locations are resolved through the path map (pm-paths.json) rather than hardcoded.
This skill enforces the rule structurally, not as an honour-system convention:
Command:.STORY-NN.M.PP ↔ TESTPLAN-NN.M.PP for the same PP. The skill picks PP once and uses it for both files.This contract IS the differentiator vs. the plain paste-prompt. The prompt advises pairing; this skill rejects the violation.
features folder (resolve via the path map: node _00-Project-Management/93-Scripts/lib/pm-paths.js resolve features; e.g. _00-Project-Management/31-Features/EPIC-NN/FEAT-NN.M-<slug>.md).Use Read / Glob to detect existence. Treat missing files as "not present" rather than throwing. Folder locations are resolved through the path map (pm-paths.js / pm-paths.json) rather than hardcoded.
## Acceptance criteria checklist (each criterion ~ 1 story).epics folder via the path map and read EPIC-NN-*.md for upstream context._00-Project-Management/90-Standards/SOP.md for DoR, estimation, status enum, frontmatter contract._00-Project-Management/90-Standards/PROJECT-CONTEXT.md for runnable test command conventions (which test runner, what ports, how to invoke).templates folder via the path map and read STORY.template.md + TESTPLAN.template.md. Use both verbatim — do not redraft section headings from memory.stories folder via the path map and glob EPIC-NN/FEAT-NN.M/STORY-NN.M.PP-*.md to find next-free PP (zero-padded to 2 digits). Same PP is used for the paired Testplan. Create both subfolders if missing.CLAUDE.md — for project-specific overrides.## Acceptance criteria. Each criterion is typically one Story. If a criterion implies > L work, split into multiple Stories.
90-Standards/ARTEFACT-ECONOMY.md): produce the fewest Stories that carry the Feature's testable claims. An AC without a falsifiable claim of its own folds into a sibling Story — it never becomes a thin Story. When unsure whether to split, don't.STORY.template.md verbatim.As / I want / So that, AC checkboxes, technical notes, dependencies, references.status: not-started, created_at: <ISO 8601 now>, other timestamps empty, epic: EPIC-NN, feature: FEAT-NN.M, id: STORY-NN.M.PP, ai_review: pending.type_of_work: to a concrete discipline (frontend / backend / infra / data / docs) — never leave the template placeholder (it's a DoR gate per SOP §6 and fuels sub-agent assignment). Add suggested_agents: [agent, …] only when a specific specialist clearly fits — it overrides the PROJECT-CONTEXT type_of_work → sub-agent map (SOP §11.3 / FEAT-03.1). Most stories need only type_of_work.TESTPLAN.template.md verbatim.Command: (no manual steps, no "have a human verify"). Use commands appropriate to the stack (see PROJECT-CONTEXT.md).DASHBOARD.html for a substring that could appear in indexed artefact prose. The generator embeds every artefact's bodyHtml into the window.__DATA payload, so a bare grep <substring> DASHBOARD.html is confounded — the substring almost always also appears in some artefact's prose (including the very story/testplan that discusses the feature under test). This produced three false results (BUG-20260606-02, TESTPLAN-15.2.02, TESTPLAN-15.2.04). Instead: (a) parse the window.__DATA payload and assert the relevant array/field, (b) assert a specific rendered element (e.g. grep '<h1 class="app-title">'), or (c) use a sentinel that cannot appear in any artefact body. Extraction one-liner for (a): node -e 'const D=JSON.parse(require("fs").readFileSync("…/DASHBOARD.html","utf8").match(/window\.__DATA = (\{[\s\S]*?\});<\/script>/)[1]); /* assert on D */'.id: TESTPLAN-NN.M.PP, story: STORY-NN.M.PP, feature: FEAT-NN.M, epic: EPIC-NN, status: not-started, created_at: <ISO 8601 now>.Command:. If validation fails, abort per the enforcement contract above.usage_estimate: and its basis line.write-outcomes rules inline to the story's title, acceptance criteria, and technical content to produce the outcome line; 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). Write the single-line outcome (verbatim, no markdown) into that Story's outcome: frontmatter field — in the same response.## Stories section with relative links to the new Story files.Every story this skill writes leaves carrying a usage_estimate:. Run it once per story file,
immediately after the file is written:
node _00-Project-Management/93-Scripts/usage-estimate.js --story <story-path>
## Technical notes. Do not hand-write
either.estimate: is missing or XL. Both are already blockers here (this
skill proposes splitting an XL before writing it), so fix the band rather than the estimate.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.
ready — that requires DoR gate via a separate refine step.not-started on creation).STORY.template.md and TESTPLAN.template.md verbatim.PROJECT-CONTEXT.md (ports, commands, etc.).usage_estimate produced per story: list of STORY-NN.M.PP = <tokens> (or the stated reason none was produced)Next: /tandem:refine-backlog — promote selected stories not-started → ready after DoR gate.
Or, if a story is obviously DoR-clean already: /tandem:execute-story <story-path> — start work directly.
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./coreCore PM Operating Kit rules — closed-set status enum, frontmatter timestamps, Story-Testplan pairing, DoR/DoD gates, hat protocol, ADR-on-the-spot, bug-auto-raise. Use when working anywhere under _00-Project-Management/, when creating or modifying any artefact (epic/feature/story/testplan/bug/ADR), or when uncertain about the project's PM conventions./critiqueAdvisory artefact quality review for planning artefacts (Epic, Feature, Story, Testplan). Use when the user asks to critique, review quality, check a planning artefact, audit a story or epic, or run a pre-refinement quality pass. Detects artefact type and runs the matching check set. Never rewrites the file./curate-toolkitRank installed AI tools (Skills, Agents, Commands, Plugins) by fit for this project and write relevance overlays under _00-Project-Management/97-AI-Reference/. Reads PROJECT-CONTEXT.md (project type / tech stack) plus the installed inventory and ranks each item HIGH / MED / LOW with a one-line rationale keyed to project type. Use when the user wants to rank or audit which installed tools are relevant vs. off-stack, or invokes /tandem:curate-toolkit.