QA Expert
Set up test cases, execution tracking, bug reports and QA handoffs using AAA test structure and OWASP security categories.
When to Use This Skill
Trigger this skill when:
- Setting up QA infrastructure for a new or existing project
- Writing standardized test cases (AAA pattern compliance)
- Executing comprehensive test plans with progress tracking
- Implementing security testing (OWASP Top 10)
- Filing bugs with proper severity classification (P0-P4)
- Generating QA reports (daily summaries, weekly progress)
- Calculating quality metrics (pass rate, coverage, gates)
- Preparing QA documentation for third-party team handoffs
- Enabling autonomous LLM-driven test execution
Quick Start
One-command initialization:
uv run "<qa-expert-dir>/scripts/init_qa_project.py" "<project-name>" "<project-root>"
The output directory is the project root; the script appends tests/. Use a fresh
destination: initialization overwrites its template files. Replace example CSV
rows, write test specifications and bind the project harness before execution.
Resolve <qa-expert-dir> from this loaded Skill's directory, not the target project.
For autonomous execution: Follow the master prompt
for preparation, bounded execution and interruption recovery. Initialization
creates templates; it does not run tests or install a scheduler.
Core Capabilities
Test Case Writing
Write standardized, reproducible test cases following AAA pattern (Arrange-Act-Assert):
- Read template:
assets/templates/TEST-CASE-TEMPLATE.md - Follow structure: Prerequisites (Arrange) → Test Steps (Act) → Expected Results (Assert)
- Assign priority: P0 (blocker) → P4 (low)
- Include edge cases and potential bugs
Test case format: TC-[CATEGORY]-[NUMBER] (e.g., TC-CLI-001, TC-WEB-042, TC-SEC-007)
Reference: See references/google_testing_standards.md for AAA guidelines and project-bound coverage and release acceptance.
For cross-platform adapters or compatibility with another runtime/implementation,
load runtime compatibility acceptance
before choosing mocks, expected results or supported-version cases.
For payment, procurement, fulfillment or refund recovery, load
transaction recovery acceptance
before selecting cases. For schema upgrades, accounting views or integration
fixtures, load migration and fixture acceptance.
For file-backed state, snapshot dependency checks, recovery or CLI argument,
wrapper, compatibility-alias, output or read-cost changes, load
file persistence and CLI acceptance.
For a persisted-state upgrade, use its
before choosing fresh fixtures or changing retry identity.
For bounded concurrent probes with ordered publication, use its
For admission decisions, account/resource bindings, retained sessions or cached
permissions across upgrades, and recovery that can authorize an effect,
load admission and recovery acceptance
before choosing fault timing or side-effect assertions.
For responses, normalization or suggested edits that race with user changes,
load asynchronous editing and conflict acceptance
before selecting timing, session and related-object cases.
Bind these recipes to the application's existing contract and test harness;
retain the general AAA, tracking and reporting workflow.
Test Execution & Tracking
Ground Truth Principle (critical):
- Test case documents (e.g.,
02-CLI-TEST-CASES.md) = authoritative source for test steps - Tracking CSV = execution status only (do NOT trust CSV for test specifications)
- See
references/ground_truth_principle.mdfor preventing doc/CSV sync issues
Manual execution:
- Read test case from category document (e.g.,
02-CLI-TEST-CASES.md) ← always start here - Execute test steps exactly as documented
- Update
TEST-EXECUTION-TRACKING.csvimmediately after EACH test (never batch) - File bug in
BUG-TRACKING-TEMPLATE.csvif test fails
Autonomous execution (recommended):
- Copy master prompt from
references/master_qa_prompt.md - Paste to LLM session
- Execute the authorized batch, track each result, file reproduced bugs and report evidence
On interruption, read back checkpoints and reconcile uncertain side effects
before choosing the first unmet test. Future execution requires an available,
authorized host runner; a prompt alone does not keep a session running.
Bug Reporting
File bugs with proper severity classification:
Required fields:
- Bug ID: Sequential (BUG-001, BUG-002, ...)
- Severity: P0 (24h fix) → P4 (optional)
- Steps to Reproduce: Numbered, specific
- Environment: OS, versions, configuration
Severity classification:
- P0 (Blocker): Security vulnerability, core functionality broken, data loss
- P1 (Critical): Major feature broken with workaround
- P2 (High): Minor feature issue, edge case
- P3 (Medium): Cosmetic issue
- P4 (Low): Documentation typo
Reference: Initialization creates tests/docs/templates/BUG-TRACKING-TEMPLATE.csv.
Quality Metrics Calculation
Calculate metrics from the current tracking rows:
uv run "<qa-expert-dir>/scripts/calculate_metrics.py" "<project-root>/tests/docs/templates/TEST-EXECUTION-TRACKING.csv"
Metrics dashboard includes:
- Test execution progress (X/Y tests, Z% complete)
- Pass rate (passed/executed %)
- Unique linked bug IDs and test-priority breakdown
- Quality gates status (✅/❌ for each gate)