test-case-reviewer
Skill0 starsChanged 7 months agoApache-2.0View on GitHub
This skill should be used when the user asks to "review test cases", "review existing test cases against feature specs", "check test case quality", "validate test case coverage", "review test cases against requirements", "check for missing test scenarios", "review test case format", "verify test case completeness", "check automation readiness", or needs quality review, coverage analysis, spec traceability, or format validation of any test case suite. Supports reviewing against one or more feature specification or requirement files. To generate new test cases from a spec, use test-case-generator.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- xmh-test/test-agent-skillstheir own version, first seen May 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- xmh-test/test-agent-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auto-mergeSkill
- auto-shipSkill
- backlog-burn-downSkill
- cloud-infra-plannerSkill
- daily-statusSkill
- decision-briefSkill
- deploy-shieldSkill
- eddSkill
- expo-build-and-sdk-upgrade-checkerSkill
- git-workflowSkill
- handle-reviewSkill
- hr-resume-screenerSkill
- img-prompt-genSkill
- instagram-carouselSkill
- integratekitSkill
- investor-deck-builderSkill
- investor-form-fillerSkill
- playwright-test-generationSkill
- qa-handoffSkill
- razorpay-integrationSkill
- resume-hiring-managerSkill
- resume-recruiterSkill
- review-queueSkill
- safe-push-workflowSkill
- ship-issueSkill
- skill-fixerSkill
- skill-reviewerSkill
- tech-mentorSkill
- your-skill-nameSkill
- test-case-generatorSkill
- test-scenario-planningSkill
- triage-issuesSkill
- ui-consistencySkill
- wp-maintenance-conductorSkill
- x-twitter-scraperSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
35 rules. About 0 are common, 27 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈27
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Do NOT activate when: the user only wants to generate new test cases without reviewing existing ones
- Distinctive: line 32
Do NOT activate when: the user is asking general QA methodology questions without providing test cases to review
- Distinctive: line 38
When the user provides test cases for structured review, produce one Excel file with four sheets:
- Distinctive: line 41
Sheet 2 — Fixed Test Cases: all corrected test cases in the standard 11-column format.
- Distinctive: line 62
If no spec file is provided, skip Steps 0, 3, 3b, and Sheet 3.
- Distinctive: line 71
Read: all test cases from the provided file.
- Distinctive: line 73
Review: every TC against all 12 criteria.
- Distinctive: line 86
Follow all steps in order.
- Distinctive: line 140
Verify the suite covers at least one complete user journey end-to-end for each major workflow.
- Very specific: line 156
Decision Rule: If a TC fails 2 or more of the above conditions, classify it as Not Automatable.
- Distinctive: line 186
Review: every TC against all 12 criteria.
- Distinctive: line 197
Verify before writing the Python script:
- Distinctive: line 199
All 11 required columns are present in each tuple, in the exact required order.
- Very specific: line 200
No extra columns added. No position left as an empty string — use N/A.
- Very specific: line 203
Test Case Category uses the controlled taxonomy (8 values only — see references/taxonomy.md).
- Very specific: line 205
Test steps are numbered and written as separate lines using \n inside the Python string literal.
- Very specific: line 206
No literal \\n text appears as visible content in any cell.
- Distinctive: line 210
Test Case IDs are sequential and unique.
- Distinctive: line 211
All required test types are verified for coverage.
- Distinctive: line 215
Every TC has quality gate values: Execution Ready (Yes/No), Client Deliverable (Yes/No), Production Ready (Yes/No).
- Distinctive: line 246
Method: Write tool then Bash tool — no heredoc.
- Distinctive: line 272
Write large outputs to files.
- Distinctive: line 274
Do not print generated test cases in chat.
- Distinctive: line 275
Do not print review findings in chat unless explicitly requested.
- Distinctive: line 276
Do not print the full Python script in chat.
- Distinctive: line 287
If no spec file is provided, Sheet 3 is skipped and the review is labeled "Structural Review Only — No Spec Traceability."
- Very specific: line 294
Use a bash heredoc (py << 'PYEOF') — unreliable on this machine for large scripts.
- Very specific: line 296
Use python, python3, or a full path — always use py.
- Distinctive: line 297
Run an openpyxl install check — it is already installed (v3.1.5).
- Distinctive: line 298
Leave any tuple positions as placeholders or empty strings.
- Very specific: line 300
Leave SPEC_PROVIDED = True when no spec file was provided in this session.
- Distinctive: line 301
Write pass rows in the evaluation table — fails only.
- Distinctive: line 302
Add a "Status" or "Pass/Fail" column in the evaluation table — the table is fails-only.
- Distinctive: line 304
Leave Reviewer Comments, Required Corrections, or Defects cells blank — use "No issues found" or "None".
- Distinctive: line 306
Use a Test Case Category value outside the Controlled Categories list.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test Case Review Skill
Review test cases for quality, coverage, spec traceability, and automation readiness — outputs a structured Excel report with fixes applied automatically.
When to use
- Activate when: the user asks to "review test cases", "check test case quality", or "validate test case coverage"
- Activate when: the user asks to "review test cases against requirements" or "check for missing test scenarios"
- Activate when: the user asks to "review test case format", "verify test case completeness", or "check automation readiness"
- Activate when: the user provides a test case file (
.xlsx,.csv, or inline table) and requests a review - Activate when: the user needs quality review, coverage analysis, spec traceability, or format validation of any test case suite
- Do NOT activate when: the user only wants to generate new test cases without reviewing existing ones
- Do NOT activate when: the user is asking general QA methodology questions without providing test cases to review
Purpose
Review test cases for requirement coverage, clarity, correctness, defect-detection value, maintainability, automation readiness, and release risk. Be specific and rigorous. Call out gaps directly and recommend concrete fixes. Apply all fixes autonomously — do not request clarification.
When the user provides test cases for structured review, produce one Excel file with four sheets:
- Sheet 1 — Review Feedback: 10-row summary block + 7-column evaluation table (Blocker and Minor fails only — no pass rows) + auto-computed verdict.
- Sheet 2 — Fixed Test Cases: all corrected test cases in the standard 11-column format.
- Sheet 3 — Spec Coverage Matrix: spec requirements mapped to coverage status, linked TC IDs, and gap notes. Generated only when one or more feature/requirement files are provided.
- Sheet 4 — TC Review Status: per-TC quality gate results (Execution Ready, Client Deliverable, Production Ready), Review Status, Readiness, Reviewer Comments, Required Corrections, and Defects. Always generated — one row per TC.
End-to-end automated. No terminal output of findings. No prompts to the user. No environment checks. The Excel file is the only output.
Inputs
Primary inputs (use all that are provided):
| Input | Format | Used for |
| Feature / requirement file(s) | .feature (Gherkin), .md (spec), .txt (numbered AC list), user story doc — one or more files accepted | Spec requirement list — source of truth for traceability. When multiple files are provided, merge all into one numbered requirement list and tag each with its source file name. |
| Test cases file | .xlsx, .csv, inline table | Test cases to review |
Supporting inputs (optional):
API schema, UI flows, security design, performance budget, test type, or target environment.
If no spec file is provided, skip Steps 0, 3, 3b, and Sheet 3. Label the review "Structural Review Only — No Spec Traceability."
Steps
Execute all steps in order without pausing or prompting the user.
- Parse spec files (if provided) — extract all requirement units, merge into one list, tag each with source file name, assign Spec IDs, classify as High / Medium / Low business risk.
- Read all test cases from the provided file.
- Map spec-to-TC and TC-to-spec — assign Covered / Partially Covered / Not Covered to each spec requirement. Flag orphan TCs. Compute coverage %.
- Review every TC against all 12 criteria. Run all audit steps (Steps 5–11 in the Review Sequence below). Identify Blocker and Minor failures only.
- Build evaluations — assign B1/B2… (blocker fail), M1/M2… (minor fail) only. No pass rows.
- Apply all fixes — produce corrected 11-column test case tuples. Compute per-TC quality gate results, Review Status, Readiness, Reviewer Comments, Required Corrections, and Defects for Sheet 4.
- Write
gen_tc_review.pyusing the Write tool — fully populated, no placeholders. All four sheets included. Seereferences/python-template.mdfor the complete script template. - Execute using the Bash tool:
python3 gen_tc_review.py - Output the filename only. Nothing else.
See Review Sequence below for the detailed step-by-step review instructions.
Review Sequence
Follow all steps in order. Do not skip steps.
Step 0 — Parse all spec files (when provided)
Extract every requirement unit from each provided file. BDD .feature: each Scenario: or Scenario Outline: title. Markdown spec: each ### AC-NNN heading or numbered AC bullet. User story doc: each acceptance criterion bullet. Plain text: each numbered or bulleted requirement line. When multiple files are provided, merge all into one numbered list and tag each requirement with its source file name. Assign Spec IDs (use document IDs if present; otherwise SR-001, SR-002, …). Classify each as High / Medium / Low business risk.
Step 1 — Identify the test scope Identify the feature, module, API, user flow, or release area being tested.
Step 2 — Extract or infer acceptance criteria Extract from the merged spec list (Step 0) or infer from the test cases themselves when no spec was provided.
Step 3 — Spec-to-TC mapping (when spec is provided) For each spec requirement, find all TCs that cover it. Assign: Covered (at least one TC fully validates including negative/boundary where warranted), Partially Covered (happy path only — negative or boundary missing), Not Covered (no TC addresses this requirement).
Step 3b — TC-to-spec orphan detection (when spec is provided) For each TC, confirm it traces to at least one spec requirement. A TC with no matching spec requirement is an Orphan TC — flag as Minor.
Step 4 — Structural review per TC
Review each TC against all 12 criteria in the Controlled Criterion List (see references/sheet-specifications.md). While reviewing, also detect and flag under the most relevant criterion: vague wording, hidden assumptions, chained state dependencies, non-deterministic behavior, and unmeasurable expected results. Skip the Spec Traceability criterion (criterion 12) when no spec file was provided — do not flag orphan TCs or missing traceability under this criterion in that case.
Step 5 — Test type coverage audit and depth check Verify the suite covers all required test types. Missing types: Blocker if Functional, Negative, or E2E is absent for a non-trivial feature; Minor if Smoke, Sanity, Integration, System, Boundary/Edge, Security, UI/UX, State/Workflow, or NFR is absent. Also verify depth — a high-risk area covered by only 1 TC where 3+ are warranted is a risk signal.
| Test Type | What to look for |
| Functional | Happy-path TCs validating core feature behavior end-to-end |
| Negative | TCs submitting invalid input, breaching rules, or triggering rejection/error |
| Boundary / Edge case | TCs at value limits (min, max, min-1, max+1), empty, null, zero, overflow |
| Smoke | Lightweight TC verifying the feature works at a basic level |
| Sanity | TCs verifying no regression in closely related existing features |
| Integration | TCs validating cross-system data flow, API-to-UI sync, or third-party calls |
| E2E (End-to-End) | At least one TC tracing the full user journey from entry to final observable state |
| System | TCs verifying complete system response including all components (DB, API, UI) |
| Security | TCs for auth, permission, token, and data-exposure scenarios |
| UI/UX | TCs for labels, layout, error messages, empty states, navigation |
| State / Workflow | TCs verifying state transitions, data persistence, multi-step progression |
| NFR | TCs for performance, concurrency, atomicity, reliability |
Step 6 — Risk-based prioritization audit For each spec requirement, use the business risk classification from Step 0. High risk: must have Functional + Validation + Error Handling + State/Workflow TCs — flag if fewer than 3 TCs covering different categories. Medium risk: must have Functional + Validation TCs minimum. Low risk: Functional TC minimum.
Step 7 — Negative coverage ratio check For each module or feature, count positive TCs (Functional) vs negative TCs (Validation + Error Handling). A ratio below 1:1 is a risk signal — flag the module and list the missing negative scenarios.
Step 8 — Duplicate intent detection Flag any two TCs that test the same behavior with only surface-level variation. Consolidate duplicates into one parameterized TC with a test data table.
Step 9 — Precondition dependency chain detection Flag any TC whose precondition requires a previous TC to have executed. These are execution-order dependencies that make the suite fragile and block parallel execution.
Step 10 — Test data completeness audit
For every TC marked Automatable, verify test data is fully specified with exact values. Flag any TC with vague data containing "valid", "any", "some", "appropriate", or similar non-specific descriptors.
Step 11 — E2E flow coverage check Verify the suite covers at least one complete user journey end-to-end for each major workflow. Flag workflows with no E2E coverage.
Step 12 — Classify automation readiness and quality gates For each TC: evaluate automation candidacy using the six conditions below. Classify as Automation-ready / Manual-only / Partially Automatable. Verify the existing Automation Readiness column value — flag misclassifications. Evaluate each TC against the three quality gates: Execution-ready, Client-deliverable, Production-ready. Determine Review Status: Rejected (Blockers present) / Needs Fix (Minors only) / Approved (no issues).
Automation Candidacy Conditions — a TC is a good automation candidate when it is:
| # | Condition | Description |
| 1 | Stable | Requirements and UI/API behavior are not changing frequently. |
| 2 | Repeatable | It can run multiple times with consistent results. |
| 3 | High-value | It covers critical business, user, security, or revenue-impacting functionality. |
| 4 | Low-flaky | It does not heavily depend on unstable timing, random behavior, third-party instability, OTP, CAPTCHA, or unreliable environments. |
| 5 | Clearly assertable | Pass/fail conditions can be validated objectively. |
| 6 | Maintainable | Automation effort and long-term maintenance cost are reasonable. |
Decision Rule: If a TC fails 2 or more of the above conditions, classify it as Not Automatable. Keep it manual, flag it for redesign, stabilize its dependencies, or recommend moving validation to a lower testing layer (API or unit test).
Selection Priority — automate first:
- Stable flows
- Frequently executed flows
- High business impact scenarios
- Regression and smoke validations
- Flows with clear assertions and reusable components
Avoid or delay automation for:
- Frequently changing features
- Highly flaky scenarios
- Low-value validations
- Visual-only checks
- Heavy manual dependency flows
Automation must be selective, practical, and value-driven — not coverage-driven. A smaller stable automation suite is far more valuable than a large unstable suite nobody trusts. It is NOT mandatory that all test cases be automated.
Step 13 — Build evaluations and produce output
Assign B/M codes per TC per criterion for all failures only. Do not generate pass rows. Determine the overall suite Verdict (see references/quality-gates.md). Apply all fixes. Produce the Excel file.
Automated Execution Flow
Execute all steps in sequence. Do NOT pause, prompt, or ask the user anything between steps. Do NOT check Python version, openpyxl installation, or any package. Do NOT output findings as terminal text.
- Parse all spec files (if provided) — extract all requirement units, merge into one list, tag each with source file name, assign Spec IDs, classify as High / Medium / Low business risk.
- Read all test cases from the provided file.
- Map spec-to-TC and TC-to-spec — assign Covered / Partially Covered / Not Covered to each spec requirement. Flag orphan TCs. Compute coverage %.
- Review every TC against all 12 criteria. Run all audit steps (Steps 5–11). Identify Blocker and Minor failures only.
- Build evaluations — assign B1/B2… (blocker fail), M1/M2… (minor fail) only. No pass rows.
- Apply all fixes — produce corrected 11-column test case tuples. Compute per-TC quality gate results, Review Status, Readiness, Reviewer Comments, Required Corrections, and Defects for Sheet 4.
- Write
gen_tc_review.pyusing the Write tool — fully populated, no placeholders. All four sheets included. Seereferences/python-template.mdfor the complete script template. - Execute using the Bash tool:
python3 gen_tc_review.py - Output the filename only. Nothing else.
Required Quality Checklist
Verify before writing the Python script:
- All 11 required columns are present in each tuple, in the exact required order.
- No extra columns added. No position left as an empty string — use
N/A. - Module Name is a broad product, domain, system, or pipeline area.
- Feature Name is a flow, story, or workstream inside the module — not a capability name.
- Test Case Category uses the controlled taxonomy (8 values only — see
references/taxonomy.md). - Each test case validates one primary behavior.
- Test steps are numbered and written as separate lines using
\ninside the Python string literal. - No literal
\\ntext appears as visible content in any cell. No HTML tags in any value. - Expected Result is specific and verifiable — no vague language.
- Severity is one of: Critical, High, Medium, Low.
- Automation Readiness is one of: Automatable, Partially Automatable, Not Automatable. Assessed using the 6-condition rule: Stable, Repeatable, High-value, Low-flaky, Clearly assertable, Maintainable. A TC failing 2 or more conditions must be classified
Not Automatable. - Test Case IDs are sequential and unique. Duplicate or near-duplicate tests are consolidated.
- All required test types are verified for coverage.
- Spec traceability verified — every TC maps to a spec requirement, every spec requirement maps to at least one TC (when spec file is provided).
- Multiple spec files merged into one requirement list with source file tag.
- Evaluation table contains only Blocker and Minor fail rows — no pass rows.
- Every TC has quality gate values: Execution Ready (Yes/No), Client Deliverable (Yes/No), Production Ready (Yes/No).
- Review Status assigned per TC: Rejected / Needs Fix / Approved.
- Reviewer Comments, Required Corrections, and Defects populated per TC — "No issues found" or "None" when no issues.
- Sheet 3 generated only when a spec file is provided —
SPEC_PROVIDED = True/Falseset correctly. - Sheet 4 always generated — one row per TC.
- Excel file saved to
Testcases/subfolder ofos.getcwd()— no hardcoded path. pyused as the executable — no fallbacks.
Output
- Format: Excel file (
.xlsx) with four sheets - Location:
Testcases/subfolder ofos.getcwd()— created automatically - File name:
ReviewAndFixed_<ModuleCode>_<YYYYMMDD_HHMMSS>.xlsx - Example:
ReviewAndFixed_AUTH_20240815_143022.xlsx
Final response contains only:
Excel file saved: ReviewAndFixed_<ModuleCode>_<YYYYMMDD_HHMMSS>.xlsxExcel Generation
File name: ReviewAndFixed_<ModuleCode>_<YYYYMMDD_HHMMSS>.xlsx
Save location: Testcases/ subfolder of os.getcwd() — created with os.makedirs(out_dir, exist_ok=True).
Executable: py only — never python, python3, or a full path.
openpyxl 3.1.5 is pre-installed — never add install checks, version checks, or pip commands.
Method: Write tool then Bash tool — no heredoc.
See references/python-template.md for the full script template with all sheet structures, style objects, variable definitions, tuple formats, and the auto-verdict computation block.
| Setting | Value |
| Executable | py (Windows Python Launcher — C:\Windows\py.exe) |
| Python version | 3.14.1 |
| openpyxl version | 3.1.5 — already installed |
Reference Files
| File | Contents |
references/python-template.md | Complete gen_tc_review.py script template — all 4 sheets, shared styles, variable reference, tuple formats, auto-verdict block |
references/sheet-specifications.md | Sheet 1–4 column definitions, Controlled Criterion List (12 criteria), row color coding, styling rules |
references/quality-gates.md | Review Quality Gates (3 gates), Automation Separation (3 tiers + terminology mapping), Verdict Rules, Review Tone |
references/taxonomy.md | Controlled Categories (8 values + mapping table), Taxonomy Rules (Module/Feature/Category), Severity table, TC ID Rules, Format Rules |
references/review-standards.md | Detailed criteria definitions for Steps 4–11: Requirement Coverage, Spec Traceability, Test Type Coverage, Risk Prioritization, Negative Ratio, Duplicate Detection, Dependency Chain, Test Data, E2E Coverage, Clarity, Atomicity, Determinism, UI Review, Markdown Review output format |
Output Token Limit Protection
Write large outputs to files. Keep the final response minimal.
- Do not print generated test cases in chat.
- Do not print review findings in chat unless explicitly requested.
- Do not print the full Python script in chat.
- Final response must be only:
Excel file saved: ReviewAndFixed_<ModuleCode>_<YYYYMMDD_HHMMSS>.xlsxNotes
- If no spec file is provided, Sheet 3 is skipped and the review is labeled "Structural Review Only — No Spec Traceability."
- Multiple spec files are merged into one requirement list; each requirement is tagged with its source file name.
- Automation must be selective and value-driven — not coverage-driven. A TC failing 2 or more of the 6 automation candidacy conditions must be classified
Not Automatable.
Never Do
- Output test case data or review findings in chat as a table or TSV block (unless the user explicitly requests it).
- Use a bash heredoc (
py << 'PYEOF') — unreliable on this machine for large scripts. - Hardcode a save path or ask the user for one.
- Use
python,python3, or a full path — always usepy. - Run an openpyxl install check — it is already installed (v3.1.5).
- Leave any tuple positions as placeholders or empty strings.
- Generate Sheet 3 when no spec file was provided — set
SPEC_PROVIDED = False. - Leave
SPEC_PROVIDED = Truewhen no spec file was provided in this session. - Write pass rows in the evaluation table — fails only.
- Add a "Status" or "Pass/Fail" column in the evaluation table — the table is fails-only.
- Omit Sheet 4 — it is always required regardless of whether a spec file is provided.
- Leave Reviewer Comments, Required Corrections, or Defects cells blank — use "No issues found" or "None".
- Hardcode
verdict_value— the auto-computation block derives it fromblocker_count,_b_ratio,_miss_crit, andcoverage_pct. - Use a Test Case Category value outside the Controlled Categories list.
- Mark a TC as
Automatablewhen it fails 2 or more of the 6 automation candidacy conditions (Stable, Repeatable, High-value, Low-flaky, Clearly assertable, Maintainable). - Force
Automatableon every TC to maximize automation coverage — automation must be selective and value-driven, not coverage-driven. - Automate TCs that are frequently changing, highly flaky, visual-only, or have heavy manual dependencies without flagging them as
Not Automatable.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

