/tandem:run-testplanfrom tandem
Run every test case in a TESTPLAN. Use when the user asks to run a testplan, verify a story against its paired testplan, or work with a testplan file under the project's testplans folder. Runs each TC's Command verbatim, marks PASS/FAIL, and auto-files BUG-YYYYMMDD-NN files for every failure before reporting in chat.
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 QA hat. A story has flipped to in-review and its paired testplan needs verification.
Before running any TC, 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)
testplans folder via the path map (node _00-Project-Management/93-Scripts/lib/pm-paths.js resolve testplans; the config is 90-Standards/pm-paths.json), then glob for EPIC-NN/FEAT-NN.M/TESTPLAN-NN.M.PP-*.md under it. (E.g., it resolves to 05-Test 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 to determine physical folders for logical roles such as stories, testplans, bugs, and templates. If NONE of the candidates exist for a given role, note it in the output (don't fabricate scaffolding) and degrade gracefully.
stories folder via the path map and read the corresponding STORY file._00-Project-Management/90-Standards/SOP.md if present. If absent, fall back to project-root CLAUDE.md._00-Project-Management/90-Standards/PROJECT-CONTEXT.md if present. If absent, infer from package.json + project-root CLAUDE.md.templates folder via the path map and read BUG.template.md if present. If absent, redraft from a sibling BUG in the same FEAT folder.bugs folder via the path map.CLAUDE.md — always loaded.html_context:) — if the testplan (or its paired story) frontmatter carries a non-empty html_context: array, Read every repo-relative path it lists (explorations, annotated diffs, options-comparisons) into context before executing the test cases, so test interpretation is grounded in the same architectural reasoning the human reviewer had. Skip entries that don't resolve (validator R16 already flags missing/traversal paths at pm:lint — don't double-report, just note the skip). Treat the SOP §11 50 KB guideline as advisory: summarise very large files rather than reading them whole.Use Read / Glob to detect existence rather than assuming; treat missing files as "not present" rather than throwing.
Flip the testplan's status: not-started → in-progress. Set started_at to now. (Testplans don't use in-review — that's the story's status. If you find the testplan already at in-review from a prior skill misuse, flip it back to in-progress for this run, then on to done if all PASS.)
Verify all Preconditions in the testplan are met. If not, STOP and report.
Ingest prior HTML context first. If the testplan (or its paired story) carries a non-empty html_context:, Read every listed prior HTML artefact into context now — before any TC runs (see "Load into context" above) — so the expected behaviour is interpreted against the same architectural reasoning the human reviewer had.
Run every TC in order:
Command: exactly as written. No improvisation. No "I'll try a slightly different command."
exit 127 / "command not found" for node/npm/etc.), that's an environment gap, not a bad command — resolve it per PROJECT-CONTEXT.md "Known stack gotchas" (put the runtime on PATH or invoke its absolute binary), then re-run the same command verbatim. Resolving the runtime ≠ rewriting the Command:.Expected:.
grep <substring> DASHBOARD.html (no window.__DATA/element qualifier), treat a PASS/FAIL with suspicion — the generator embeds every artefact body into window.__DATA, so the substring may match indexed prose, not the rendered feature (precedents: BUG-20260606-02, TESTPLAN-15.2.02/04). Still run the Command: verbatim, but if the result looks confounded, file a BUG against the testplan (not the product) and flag the TC for re-authoring to a payload-/element-scoped assertion (see split-into-stories testplan-authoring rule).Result: line:
PASS — YYYY-MM-DD on success.FAIL — see BUG-YYYYMMDD-NN on failure (link the bug you file).If a TC fails — IMMEDIATELY:
<resolved-bugs-folder>/EPIC-NN/FEAT-NN.M/BUG-YYYYMMDD-NN-<slug>.md using BUG.template.md. Include full repro, environment snapshot, first analysis hypothesis, suggested fix direction. A junior dev should be able to act on it without asking questions.Result: line to reference the bug.Result: line IS the resolution. Don't file both for the same root cause.After all TCs run, update the testplan's "Sign-off" section.
If ALL TCs PASS — flip testplan status to done. Set completed_at to now. Recommend /tandem:close-out-story next.
If ANY TC FAILed — leave testplan as in-progress. Story stays in-review. The dev needs to fix the bugs and re-run the failed TCs.
--testPathPattern invocation), AS LONG AS the runner's per-file PASS/FAIL output keeps each TC's Result: line independently attributable. Don't batch across runners (jest + Playwright + bash scripts in one call); those run separately.41-Reports/screenshots/ canonical or _Reports/screenshots/ flattened) if helpful.done | in-progress/tandem:close-out-storyNext: /tandem:close-out-story
When every TC PASSes, close the story through the Definition of Done gate.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub data-ai-xyz/tandem --plugin tandemOther plugins' skills for the same job
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.