{"data":{"slug":"github-donchitos-claude-code-game-studios-claude-skills-qa-plan-98c8bda5a182","title":"Generate QA Test Plan for Sprint or Feature","summary":"Create a QA test plan for a sprint, feature, or story by classifying stories by test type and generating test cases. The plan includes automated and manual test requirements, and is based on story files and referenced GDDs.","url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-qa-plan-98c8bda5a182","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-donchitos-claude-code-game-studios-claude-skills-qa-plan-98c8bda5a182","markdown_url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-qa-plan-98c8bda5a182.md","download_url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-qa-plan-98c8bda5a182\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the story files exist before running the plan. If a story file is missing, it will be noted as 'MISSING' and the plan will continue with the remaining stories. The `Type:` field in a story must be explicitly declared before implementation begins; if it is missing, the type will be inferred from the acceptance criteria and flagged as a gap.","instructions":"---\nname: qa-plan\ndescription: \"QA test plan for a sprint \u2014 classifies stories by Logic\/Integration\/Visual\/UI, covers automated tests, manual cases, smoke scope.\"\nargument-hint: \"[sprint | feature: system-name | story: path]\"\nuser-invocable: true\nallowed-tools: Read, Glob, Grep, Write, Edit, AskUserQuestion, Bash(bash \"*\/.claude\/skills\/qa-plan\/..\/..\/hooks\/yaml-helper.sh\" resolve_config *)\nmodel: sonnet\n---\n\n!`bash \"${CLAUDE_SKILL_DIR}\/..\/..\/hooks\/yaml-helper.sh\" resolve_config --keys automation,workflow,qa.level,system_overrides`\n\nResolved above \u2014 use as-is. No block \u2192 defaults in\n`.claude\/docs\/config-resolution.md`.\n\n\n# QA Plan\n\nThis skill generates a structured QA plan for a sprint, feature, or individual\nstory. It reads all in-scope story files and their referenced GDDs, classifies\neach story by test type, and produces a plan that tells developers exactly what\nto automate, what to verify manually, what the smoke test scope is, and when\nto bring in a playtester.\n\nRun this before a sprint begins so the team knows upfront what testing work\nis required. A test plan written after implementation is a post-mortem, not a\nplan.\n\n**Output:** `production\/qa\/qa-plan-[sprint-slug]-[date].md`\n\n---\n\nEvery `AskUserQuestion` call follows `.claude\/docs\/automation-modes.md`\n(collaborative asks always \u00b7 guided major-only \u00b7 autonomous logs and proceeds;\n`automation_always_ask` categories always prompt).\n\n**Workflow tier**: resolve per the GDD's system as each is read (per\n`.claude\/docs\/workflow-modes.md`): `workflow_overrides.system_overrides.<system>`\nif the block lists one, else the project value. It sets how many GDD sections\nthe test plan is mined from \u2014 see Phase 2.\n\n**`qa.level`**: at `minimal`, produce only a minimal smoke\nplan \u2014 drop the automated-test-required rows and the test-file DoD; at `standard`,\na full plan per story type; at `full`, also add per-system coverage targets.\nDistinct axis from `workflow` (which sets how many GDD sections are mined).\nNo level drops the Visual\/Feel and UI screenshot rows \u2014 tests are waived at\n`minimal`, the look is not (`.claude\/docs\/coding-standards.md`).\n\n## Phase 1: Parse Scope\n\n**Argument:** `$ARGUMENTS` (blank = ask user via AskUserQuestion)\n\nDetermine scope from the argument:\n\n- **`sprint`** \u2014 read the most recent file in `production\/sprints\/`, extract\n  every story file path referenced. If `production\/sprint-status.yaml` exists,\n  use it as the primary story list and fall back to the sprint plan for story\n  metadata.\n- **`feature: [system-name]`** \u2014 glob `production\/epics\/*\/story-*.md`, filter\n  to stories whose file path or title contains the system name. Also check the\n  epic index file (`EPIC.md`) in that system's directory.\n- **`story: [path]`** \u2014 validate that the path exists and load that single file.\n- **No argument** \u2014 use `AskUserQuestion`:\n  - \"What is the scope for this QA plan?\"\n  - Options: \"Current sprint\", \"Specific feature (enter system name)\",\n    \"Specific story (enter path)\", \"Full epic\"\n\nAfter resolving scope, report: \"Building QA plan for [N] stories in [scope].\"\n\nIf a story file path is referenced but the file does not exist, note it as\nMISSING and continue with the remaining stories. Do not fail the entire plan\nfor one missing file.\n\n> **If the resolved scope contains ZERO stories, stop \u2014 do not build a plan.**\n> Report `NOT ASSESSED \u2014 no stories in scope`, naming which scope was searched\n> and which path was empty, and route:\n> - no file in `production\/sprints\/` \u2192 \"No sprint plan found. Run `\/sprint-plan new`.\"\n>   At `workflow: minimal` there are no sprints by design \u2014 route instead to\n>   `\/qa-plan feature: [epic-slug]` or `\/qa-plan story: [path]`.\n> - a sprint plan exists but references no stories \u2192 \"Sprint plan `[path]` lists no\n>   stories. Run `\/create-stories [epic-slug]`.\"\n> - `feature:`\/`story:` scope matched nothing \u2192 name the glob that came back empty.\n>\n> **The N=0 guard is mandatory.** Without it an empty scope reports \"Building QA\n> plan for 0 stories\" and continues into Phase 4, producing a plan document with\n> empty tables \u2014 and **a QA plan for zero stories looks exactly like a completed\n> QA plan.** This skill gates the hand-off to manual QA, so a false-clean here\n> sends a build to QA on the strength of a plan that tested nothing.\n>\n> The rule at the top of this block still stands: one missing file among several\n> is MISSING-and-continue. This is the different case where there is no *several*.\n\n---\n\n## Phase 2: Load Inputs\n\nEstablish the denominator first \u2014 glob the in-scope story files and count **N** \u2014\nthen collect the fields below with **targeted section greps, not a full read of\neach story**. A QA plan needs each story's type and acceptance criteria; it does\nnot need its implementation notes, out-of-scope boundaries or ADR rationale, and\nreading N stories whole to reach two sections is where this phase's cost lives:\n\n```\nGrep pattern=\"^## Acceptance Criteria\" glob=\"production\/epics\/**\/story-*.md\" output_mode=\"content\" -A 15\nGrep pattern=\"^> \\*\\*(Type|Status|Estimate)\\*\\*\" glob=\"production\/epics\/**\/story-*.md\" output_mode=\"content\"\nGrep pattern=\"^## (Context|Dependencies)\" glob=\"production\/epics\/**\/story-*.md\" output_mode=\"content\" -A 8\n```\n\n(Scope the globs to the sprint plan's story paths in `sprint` mode.) From those:\n\n- **Story title** and story ID \u2014 from the file name and path; no read at all\n- **Story Type** field \u2014 from the header grep (e.g., `Type: Logic`)\n- **Acceptance criteria** \u2014 the complete numbered\/bulleted list, from the first grep\n- **GDD \/ ADR reference** and **Dependencies** \u2014 from the `## Context` grep\n- **Estimate** \u2014 from the header grep if present\n- **Implementation files** and **Engine notes** \u2014 only needed for stories whose\n  test plan actually turns on them; full-read those individual stories\n\n**Never treat an absent section as an absent story.** If a story matched no\n`## Acceptance Criteria`, full-read that one and say so \u2014 a story with no\ntestable criteria is a QA finding in its own right, not a story to skip.\n\nAfter reading stories, load supporting context once (not per story):\n\n- `design\/gdd\/systems-index.md` \u2014 to understand system priorities and which\n  GDDs are approved\n- For each unique GDD referenced across all stories: mine test material per that\n  system's workflow tier (resolved above) \u2014 at `full`, mine all 8 sections; at\n  `standard`, mine the test-relevant subset of the required sections\n  (**Acceptance Criteria** and **Edge Cases** always, plus **Formulas** for any\n  system that defines numeric rules); at `minimal`, **Acceptance\n  Criteria only**. Do not load the full GDD\n  text. Find the section headings with the Grep tool (pattern `^#`, content mode) and Read\n  those ranges with offset and limit. These sections contain the testable requirements, the math\n  to verify, and the boundary conditions tests must cover. If an Edge Cases section is absent (or\n  not expected at minimal), note per GDD: \"No Edge Cases section found \u2014 edge case\n  coverage will be inferred from acceptance criteria only.\"\n- `docs\/architecture\/control-manifest.md` \u2014 scan for forbidden patterns that\n  automated tests should guard against (if the file exists)\n\nIf no GDD is referenced in a story, note it as a gap but do not block the plan.\nThe story will be classified using acceptance criteria alone.\n\n---\n\n## Phase 3: Classify Each Story\n\nFor each story, assign a Story Type:\n\n- **If the story already has a `Type:` field in its header**: accept it as-is. Do NOT re-classify or validate against the criteria below \u2014 the Type was set by lead-programmer at story creation and is authoritative. Record it as-is.\n- **If the `Type:` field is missing**: infer the type from the acceptance criteria using the table below, and note in the report that the type was inferred (not declared). Flag this as a gap \u2014 the story should have its Type declared explicitly before implementation begins.\n\n| Story Type | Classification Indicators |\n|---|---|\n| **Logic** | Acceptance criteria reference calculations, formulas, numerical thresholds, state transitions, AI decisions, data validation, buff\/debuff stacking, economy transactions, or any testable computation |\n| **Integration** | Criteria involve two or more systems interacting, signals or events propagating across system boundaries, save\/load round-trips, network sync, or persistence |\n| **Visual\/Feel** | Criteria reference animation behaviour, VFX, shader output, \"feels responsive\", perceived timing, screen shake, particle effects, audio sync, or visual feedback quality |\n| **UI** | Criteria reference menus, HUD elements, buttons, screens, dialogue boxes, inventory panels, tooltips, or any player-facing interface element |\n| **Config\/Data** | Changes are limited to balance tuning values, data files, or configuration \u2014 no new code logic is involved |\n\n**Mixed stories** (e.g., a story that adds both a formula and a UI display):\nassign the primary type based on which acceptance criteria carry the highest\nimplementation risk, and note the secondary type. Mixed Logic+Integration or\nVisual+UI combinations are the most common.\n\nAfter classifying all stories, produce a classification summary table in\nconversation before proceeding to Phase 4. This gives the user visibility into\nhow tests will be allocated.\n\n---\n\n## Phase 4: Generate Test Plan\n\nAssemble the full QA plan document. Use this structure:\n\n````markdown\n# QA Plan: [Sprint\/Feature Name]\n**Date**: [date]\n**Generated by**: \/qa-plan\n**Scope**: [N stories across [N systems]]\n**Engine**: [engine name \u2014 `engine.name` from project.yaml if present and non-empty, else the Engine field from .claude\/docs\/technical-preferences.md, else \"Not configured\"]\n**Sprint File**: [path to sprint plan if applicable]\n\n---\n\n## Test Summary\n\n| Story | Type | Automated Test Required | Manual Verification Required |\n|-------|------|------------------------|------------------------------|\n| [story title] | Logic | Unit test \u2014 `tests\/unit\/[system]\/` | None |\n| [story title] | Integration | Integration test \u2014 `tests\/integration\/[system]\/` | Smoke check |\n| [story title] | Visual\/Feel | None (not automatable) | Screenshot + lead sign-off |\n| [story title] | UI | None (verified by its screenshots) | Retained screenshot of each screen touched |\n| [story title] | Config\/Data | Data validation test | Spot-check in-game values |\n\n---\n\n## Automated Tests Required\n\n*(At `qa.level: minimal`, omit this entire section and blank the Test Summary's\n\"Automated Test Required\" column \u2014 automated tests are not required there; list\nmanual\/smoke verification only.)*\n\n### [Story Title] \u2014 [Type]\n**Test file path**: `tests\/[unit|integration]\/[system]\/[story-slug]_test.[ext]`\n**What to test**:\n- [Specific formula or rule from the GDD Formulas section]\n- [Each named state transition or decision branch]\n- [Each side effect that should or should not occur]\n\n**Edge cases to cover**:\n- Zero\/minimum input values (e.g., 0 damage, empty inventory)\n- Maximum\/boundary input values (e.g., max level, stat cap)\n- Invalid or null input (e.g., missing target, dead entity)\n- [Any edge case explicitly called out in the GDD Edge Cases section]\n\n**Estimated test count**: ~[N] unit tests\n\n[If no GDD formula reference was found for this story, note:]\n*No formula found in referenced GDD \u2014 test cases must be derived from acceptance\ncriteria directly. Review the GDD Formulas section before writing tests.*\n\n---\n\n## Manual QA Checklist\n\n### [Story Title] \u2014 [Type]\n**Verification method**: [Screenshot + designer sign-off | Playtest session |\nManual step-through | Comparison against reference footage]\n**Who must sign off**: [designer \/ lead-programmer \/ qa-lead \/ art-director]\n**Evidence to capture**: [screenshot of X | video clip of Y | written playtest\nnotes | side-by-side comparison]\n\nChecklist:\n- [ ] [Specific observable condition \u2014 concrete and falsifiable]\n- [ ] [Another condition]\n- [ ] [Every acceptance criterion translated into a manual check item]\n\n*If any criterion uses subjective language (\"feels\", \"looks\", \"seems\"), it must\nbe supplemented with a specific benchmark or a playtest protocol note.*\n\n---\n\n## Smoke Test Scope\n\nCritical paths to verify before any QA hand-off for this sprint:\n\n1. Game launches to main menu without crash\n2. New game \/ new session can be started\n3. [Primary mechanic introduced or changed this sprint]\n4. [Any system with a regression risk from this sprint's changes]\n5. Save \/ load cycle completes without data loss (if save system exists)\n6. Performance is within budget on target hardware (no new frame spikes)\n\n*Smoke tests are verified by the developer via `\/smoke-check`. Reference this\nlist when running that skill.*\n\n---\n\n## Playtest Requirements\n\n| Story | Playtest Goal | Min Sessions | Target Player Type |\n|-------|--------------|--------------|-------------------|\n| [story] | [What question must the session answer?] | [N] | [new player \/ experienced] |\n\n**Sign-off requirement**: Playtest notes must be written with `\/playtest-report` to\n`production\/qa\/playtests\/` (naming the story) and reviewed by\nthe [designer \/ qa-lead] before the story can be marked COMPLETE.\n\nIf no stories require playtest validation: *No playtest sessions required for\nthis sprint.*\n\n---\n\n## Definition of Done \u2014 This Sprint\n\nA story is DONE when ALL of the following are true (at `qa.level: minimal`, drop\nthe test-file and smoke rows below \u2014 tests are waived there; the screenshot and\nsign-off rows stay at every level, because the look is not):\n\n- [ ] All acceptance criteria verified \u2014 via automated test result OR documented\n      manual evidence (screenshot, video, or playtest notes with sign-off)\n- [ ] Test file exists at the specified path for all Logic and Integration stories *(qa.level standard\/full)*\n- [ ] Retained screenshot of each screen touched, in `production\/qa\/evidence\/`, for all Visual\/Feel and UI stories *(every qa.level)*\n- [ ] Signed-off evidence doc at `production\/qa\/evidence\/[story-slug]-evidence.md` for all Visual\/Feel stories *(every qa.level)*\n- [ ] Smoke check passes (run `\/smoke-check sprint` before QA hand-off) *(qa.level standard\/full)*\n- [ ] No regressions introduced\n- [ ] Code reviewed (via `\/code-review` or documented peer review)\n- [ ] Story file updated to `Status: Complete` (via `\/story-done`)\n````\n\nWhen generating content, use the actual story titles, GDD formula text, and\nacceptance criteria extracted in Phase 2. Do not use placeholder text \u2014 every\ntest entry should reflect the real requirements of these specific stories.\n\n---\n\n## Phase 5: Write Output\n\nShow the complete plan in conversation (or a summary if the plan is very long),\nthen ask two questions together using `AskUserQuestion`:\n\n```\nquestion: \"Ready to write the QA plan. Choose output options:\"\nmultiSelect: true\noptions:\n  - \"Write QA plan to production\/qa\/qa-plan-[sprint-slug]-[date].md\"\n  - \"Also back-fill test case specs into each story file's ## QA Test Cases section (Recommended \u2014 enables \/dev-story and \/code-review traceability)\"\n```\n\nIf \"Write QA plan\" is selected: write the plan file exactly as generated \u2014 do not truncate.\n\nIf \"Also back-fill story files\" is selected: for each Logic and Integration story in scope, edit the story file at its path. Find the `## QA Test Cases` section and replace its content with the test case specs generated in Phase 4 for that story. If a story has no `## QA Test Cases` section, append it before `## Test Evidence`. For Visual\/Feel and UI stories, write the manual verification steps instead of test specs.\n\nAfter writing:\n\n\"QA plan written to `production\/qa\/qa-plan-[sprint-slug]-[date].md`.\n\nNext steps:\n- Share this plan with the team before sprint implementation begins\n- Once all sprint stories are implemented, run `\/smoke-check sprint` to gate QA hand-off \u2014 not yet, only after implementation is complete\n- For Logic\/Integration stories, create the test files at the listed paths\n  before marking stories done \u2014 `\/story-done` checks for them\"\n\nSilently append to `production\/session-state\/active.md` (create the file if it does not exist):\n\n```\n<!-- QA-PLAN: [date] | System: [system\/sprint identifier] | Plan written: production\/qa\/qa-plan-[identifier]-[date].md -->\n```\n\nClose with the verdict: **COMPLETE** \u2014 QA plan written (or **COMPLETE** \u2014 QA plan\nshown, not written, if the write was declined). The only other outcome is the\n`NOT ASSESSED \u2014 no stories in scope` path in Phase 1.\n\n---\n\n## Collaborative Protocol\n\n**Applies in `collaborative` mode (the default).** For `guided` and\n`autonomous` modes, see `.claude\/docs\/automation-modes.md` \u2014 the rules below\ndescribe what collaborative mode requires, not universal behavior.\n\n- **Never write the plan without asking** \u2014 Phase 5 requires explicit approval.\n- **Classify conservatively**: when a story is ambiguous between Logic and\n  Integration, classify it as Integration \u2014 it requires both unit and\n  integration tests.\n- **Do not invent test cases** beyond what acceptance criteria and GDD formulas\n  support. If a formula is absent from the GDD, flag it rather than guessing.\n- **Playtest requirements are advisory**: the user decides whether a playtest\n  is warranted for borderline Visual\/Feel stories. Flag the case; do not mandate.\n- Use `AskUserQuestion` for scope selection when no argument is provided.\n  Keep all other phases non-interactive \u2014 present findings, then ask once to\n  approve the write.\n","use_cases":["Generate a QA plan for the current sprint","Create a QA plan for a specific feature (e.g., 'inventory-system')","Generate a QA plan for a specific story file (e.g., 'production\/epics\/inventory\/story-123.md')"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Donchitos\/Claude-Code-Game-Studios\/blob\/abc0de79d6ceb0b5d7aa693945849b3937afbe6a\/.claude\/skills\/qa-plan\/SKILL.md","source_commit":"abc0de79d6ceb0b5d7aa693945849b3937afbe6a","license":null,"version":null,"listing_approved_at":"2026-11-18","created_at":"2026-11-17T18:55:33.000000Z","updated_at":"2026-11-18T12:52:01.000000Z","seo_title":"Generate QA Test Plan for Sprint or Feature","seo_description":"Automatically create a QA test plan for a sprint, feature, or story by classifying stories by test type and generating test cases.","seo_keywords":["QA test plan generator","sprint QA plan","feature QA plan","story QA plan","test case classification"]}}