/tandem:execute-storyfrom tandem
Start work on a Ready STORY. Use when the user asks to begin a story, execute a story, pull a story, or work on a story file under the project's stories folder. Verifies Definition of Ready, flips status to in-progress, reads the paired testplan, implements ACs one at a time, files ADRs and BUGs as they arise.
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 Dev hat. The user is pulling a Ready story into active work.
Parallel-execution note. When this story runs as part of a fanned-out parallel batch, the concurrency model in ADR-0075 — parallel execution is sub-agents-with-merge, and only under a provably file-disjoint precondition governs: the batch must be provably file-disjoint (
pm:batch-check), and the main thread is the sole writer ofMONITOR.md/ACTIVE.mdand the sole assigner of sequentialADR-NNNN/BUG-YYYYMMDD-NNIDs — a sub-agent running this skill proposes ADR/BUG bodies but never claims an ID or edits the board. Atomic status+timestamp flips are unchanged.
Before anything else, run the cheap wiring gate: node _00-Project-Management/93-Scripts/doctor.js --gate (npm: npm run pm:doctor -- --gate). It is silent on success; on an unwired project it exits non-zero and prints one line — kit not wired — run npm run pm:install. If it fails, refuse and surface that message verbatim rather than proceeding — a mis-wired kit must fail loudly, not silently no-op. (STORY-12.2.03)
stories folder via the path map (node _00-Project-Management/93-Scripts/lib/pm-paths.js resolve stories; the config is 90-Standards/pm-paths.json), then glob for EPIC-NN/FEAT-NN.M/STORY-NN.M.PP-*.md under it. (E.g., it resolves to 03-Stories in a flattened layout.)Folder locations are resolved through the path map (pm-paths.js / pm-paths.json) rather than hardcoded, ensuring consistent references across all skills. Use the resolver script node _00-Project-Management/93-Scripts/lib/pm-paths.js resolve <role> to determine physical folders for logical roles such as stories, testplans, bugs, decisions, active, and templates. If NONE of the candidates exist for a given role, note it in the output (don't fabricate scaffolding) and degrade gracefully (e.g. redraft from in-context examples rather than from a templates file that doesn't exist; flag the gap in the end-of-session summary).
testplans folder via the path map; glob for EPIC-NN/FEAT-NN.M/TESTPLAN-NN.M.PP-*.md under it.features and epics folders via the path map; read the parent FEAT file and its parent EPIC file._00-Project-Management/90-Standards/SOP.md if present. If absent, fall back to project-root CLAUDE.md for DoD-equivalent rules._00-Project-Management/90-Standards/PROJECT-CONTEXT.md if present. If absent, infer from project-root CLAUDE.md + package.json scripts.decisions folder via the path map.bugs folder via the path map.active folder via the path map and read ACTIVE.md from it. If the file doesn't exist, skip the WIP-removal step; the status: in-progress flip on the story file is the canonical source of WIP truth.CLAUDE.md — always loaded for project-specific overrides.Use Read / Glob to detect existence rather than assuming; treat missing files as "not present" rather than throwing.
Verify the DoR is satisfied (SOP.md §6). If a checklist item fails — STOP, list the gap, ask the user. Do not proceed.
Flip story status: ready (or not-started) → in-progress. Set started_at to now (ISO 8601 + offset, from system clock). Atomic edit. Update the resolved ACTIVE.md if one exists — skip silently if it doesn't.
Implement the story:
suggested_agents: if set, else the PROJECT-CONTEXT type_of_work → sub-agent map, else discipline-only / general-purpose. An unknown or uninstalled agent never blocks — degrade to the next step. Name the chosen sub-agent, and dispatch suitable implementation work to it (SOP §18). See SOP §11.3 / FEAT-03.1.done while the body still says nothing's complete. For an AC resolved via spec-error exception (the AC was wrong, replaced by an ADR), still tick the box and append an inline ratification note (e.g., - [x] <AC text> — ratified via ADR-NNNN §Verification (deferred per <trigger>)). Strict DoD rule: "All AC checkboxes ticked" is non-negotiable. Precedent: FEAT-00.5 4-way close-out 2026-05-23 caught 20 unticked boxes across 4 stories at the explicit /close-out-story invocation because the body-tick step had been skipped through the execute-story cycle.describe(...) block, Playwright test.describe(...) block, Firestore rule match /collection/{id} block, GraphQL resolver, OpenAPI path, route module export, etc.), grep that file for the exact name to surface collisions. The Explore-agent inventory step at the start of "verify + harden" stories MUST include a "find existing structural-name collisions inside files we'll touch" pass — filename matching alone misses in-file duplicates (precedent: STORY-00.4.01 close-out 2026-05-23 caught a duplicate describe('activity_logs collection', ...) block only at the DoD code-review stage, after the testplan had already run with both blocks active).Whenever you make a non-obvious decision (library choice, threshold, schema field name, deferred sub-feature, divergence from defaults), STOP coding and:
ADR-NNNN (glob the resolved ADR folder).<resolved-adr-folder>/ADR-NNNN-<slug>.md using ADR.template.md if present, else redraft from a sibling ADR in the same folder.decisions: frontmatter array.Whenever you observe a defect (yours or pre-existing), STOP and:
<resolved-bugs-folder>/EPIC-NN/FEAT-NN.M/BUG-YYYYMMDD-NN-<slug>.md using BUG.template.md if present, else redraft from a sibling BUG.Result: line IS the resolution. Cite the ADR in the story body. Don't file both for the same root cause.Default stop-state: when all ACs implemented and self-review done, flip status to in-review and STOP. Do not set completed_at yet — that's the DoD gate via /tandem:close-out-story. Do not auto-run /run-testplan or /close-out-story — those are deliberate next invocations the user owns, giving a QA-as-second-pair-of-eyes break between dev work and DoD sign-off.
Combine-into-one-cycle exception: it IS appropriate to chain execute → run-testplan → close-out → MONITOR + dashboard sync all the way to status: done within a single execute-story invocation when:
Default for code-touching stories is the staged flow (stop at in-review); combined-cycle is the exception, not the rule.
Result: lines in the TESTPLAN as you run them.STORY-NN.M.PP — <imperative>.blocked situation, flip status to blocked, note the reason in the story body, return to user.Run node _00-Project-Management/93-Scripts/usage-capture.js --story <STORY-NN.M.PP> at story
finalisation (the DoD gate, or the combined-cycle exception above) to attribute actual Claude
usage (tokens, per ADR-0079) to this story. A usage-source-unavailable no-op is fine — the
helper always exits 0 and never blocks the story.
This command appends no retro ledger line. Item-level capture is owned entirely by
close-out-story (SOP §14.1, PRD §A.3) — the universal chokepoint every item passes through
regardless of whether this command, execute-batch, execute-batch-parallel or autopilot drove
it. A second capture site here could only double-write and drift, so there deliberately is not one.
This is the one place the retro ledger differs from usage capture above, which does attribute per item here (ADR-0079). Different granularity, deliberately not unified.
started_at on in-progress; do not set completed_at yet).Only report a status you can point to a gate or tool result from this session for; anything unverified is stated as unverified.
in-progress | in-review | blocked/tandem:run-testplan if in-review; fix block if blockedNext: /tandem:run-testplan
The single-story fork of the canonical chain (see the chain record in core): with the story
in-review, the paired testplan runs next. Fix the block first if the story ended blocked.
What SKILL.md sets; muted values are Claude Code's defaults
32 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.npx claudepluginhub data-ai-xyz/tandem --plugin tandem