Qa expert

From seaworld008/Commonly-used-high-value-skills · View interactive version

Qa expert is an AI agent skill from the GitHub repository seaworld008/Commonly-used-high-value-skills. Design QA strategies, risk-based test cases, execution plans, and defect reports when establishing or improving software quality assurance.

How to use this skill

Skill file

QA Expert

Establish world-class QA testing processes for any software project using proven methodologies from Google Testing Standards and OWASP security best practices.

When to Use This Skill

Trigger this skill when:

Quick Start

Initialization into a new, empty destination only:

The initializer preflights the complete target list and refuses existing records.

Use an empty destination for a new project; merge templates into an existing project only within the requested scope.

Replacing existing records requires an explicit target list and authorization.

python scripts/init_qa_project.py <project-name> [output-directory]

What gets created:

For assisted execution: Adapt references/master_qa_prompt.md to this session's authorized scope and available tools; resume from verified tracking records.

Core Capabilities

1. QA Project Initialization

Initialize complete QA infrastructure with all templates:

python scripts/init_qa_project.py <project-name> [output-directory]

Creates directory structure, tracking CSVs, documentation templates, and master prompt for autonomous execution.

Use when: Starting QA from scratch or migrating to structured QA process.

2. Test Case Writing

Write standardized, reproducible test cases following AAA pattern (Arrange-Act-Assert):

  1. Read template: assets/templates/TEST-CASE-TEMPLATE.md
  2. Follow structure: Prerequisites (Arrange) → Test Steps (Act) → Expected Results (Assert)
  3. Assign priority: P0 (blocker) → P4 (low)
  4. 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 complete AAA pattern guidelines and coverage thresholds.

3. Test Execution & Tracking

Ground Truth Principle (critical):

Manual execution:

  1. Read test case from category document (e.g., 02-CLI-TEST-CASES.md) ← always start here
  2. Execute test steps exactly as documented
  3. Update TEST-EXECUTION-TRACKING.csv immediately after EACH test (never batch)
  4. File bug in BUG-TRACKING-TEMPLATE.csv if test fails

Autonomous execution (recommended):

  1. Copy master prompt from references/master_qa_prompt.md
  2. Paste to LLM session
  3. LLM assists with authorized cases, records observed outcomes and drafts reports;

unrun cases remain pending, and external notifications require authorization

Execution speed and completeness depend on actual results. Reconcile tracking records with test evidence before resuming; a prompt does not provide unattended scheduling.

4. Bug Reporting

File bugs with proper severity classification:

Required fields:

Severity classification:

Reference: See BUG-TRACKING-TEMPLATE.csv for complete template with examples.

5. Quality Metrics Calculation

Calculate comprehensive QA metrics and quality gates status:

python scripts/calculate_metrics.py <path/to/TEST-EXECUTION-TRACKING.csv>

Metrics dashboard includes:

The P0 heuristic does not read the bug table's Severity/Status and cannot prove

there are no open P0 defects. Use the bug table for severity and status.

Example quality gates (agree targets with the project before release).

The script supplies execution and pass-rate evidence only. Verify P0/P1 from the

bug table, coverage from a coverage report, and security from independent tests.

Mark gates with missing evidence as unverified, even if the script prints ✅:

| Gate | Target | Blocker |

|------|--------|---------|

| Test Execution | 100% | Yes |

| Pass Rate | ≥80% | Yes |

| P0 Bugs | 0 | Yes |

| P1 Bugs | ≤5 | Yes |

| Code Coverage | ≥80% | Yes |

| Security | 90% OWASP | Yes |

6. Progress Reporting

Generate QA reports for stakeholders:

Daily summary (end-of-day):

Weekly report (every Friday):

Reference: See references/llm_prompts_library.md for 30+ ready-to-use reporting prompts.

7. Security Testing (OWASP)

Implement OWASP Top 10 security testing:

Coverage targets:

  1. A01: Broken Access Control - RLS bypass, privilege escalation
  2. A02: Cryptographic Failures - Token encryption, password hashing
  3. A03: Injection - SQL injection, XSS, command injection
  4. A04: Insecure Design - Rate limiting, anomaly detection
  5. A05: Security Misconfiguration - Verbose errors, default credentials
  6. A07: Authentication Failures - Session hijacking, CSRF
  7. Others: Data integrity, logging, SSRF

Target: 90% OWASP coverage (9/10 threats mitigated).

Each security test follows AAA pattern with specific attack vectors documented.

Day 1 Onboarding

For new QA engineers joining a project, complete 5-hour onboarding guide:

Read: references/day1_onboarding.md

Timeline:

Checkpoint: By end of Day 1, environment running, first test executed, ready for Week 1.

Autonomous Execution (⭐ Recommended)

Enable LLM-driven autonomous QA testing with single master prompt:

Read: references/master_qa_prompt.md

Features:

Benefits:

Usage: Adapt the master prompt to the current session and supplied cases.

A multi-week plan needs an actual execution arrangement; preserve verified

tracking records so a later session can resume. No speed or completeness guarantee.

Adapting for Your Project

Small Project (50 tests)

Medium Project (200 tests)

Large Project (500+ tests)

Reference Documents

Access detailed guidelines from bundled references:

Assets & Templates

Test case templates and bug report formats:

Scripts

Automation scripts for QA infrastructure:

Common Patterns

Pattern 1: Starting Fresh QA

1. python scripts/init_qa_project.py my-app ./new-empty-qa
2. Fill in BASELINE-METRICS.md (document current state)
3. Write test cases using assets/templates/TEST-CASE-TEMPLATE.md
4. Copy master prompt from references/master_qa_prompt.md
5. Paste to LLM → autonomous execution begins

Pattern 2: LLM-Driven Testing (Autonomous)

1. Read references/master_qa_prompt.md
2. Copy the single master prompt (one paragraph)
3. Paste to LLM conversation
4. LLM assists with supplied cases within this session's scope; record pending cases
5. LLM updates tracking CSVs automatically
6. LLM generates weekly reports automatically

Pattern 3: Adding Security Testing

1. Read references/google_testing_standards.md (OWASP section)
2. Write TC-SEC-XXX test cases for each OWASP threat
3. Target 90% coverage (9/10 threats)
4. Document mitigations in test cases

Pattern 4: Third-Party QA Handoff

1. Ensure all templates populated
2. Verify BASELINE-METRICS.md complete
3. Package tests/docs/ folder
4. Include references/master_qa_prompt.md for autonomous execution
5. QA team verifies environment and cases, then schedules the agreed test plan

Success Criteria

This skill is effective when:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.