
Senior Qa
Scaffold Jest, React Testing Library, and Playwright tests for React/Next.js apps and close coverage gaps before release.
Overview
Senior QA is an agent skill most often used in Ship (also Build frontend, Ship review) that generates React/Next.js test suites, Playwright E2E scaffolds, and coverage-gap reports for solo builders.
Install
npx skills add https://github.com/alirezarezvani/claude-skills --skill senior-qaWhat is this skill?
- Python scripts: test_suite_generator.py, coverage_analyzer.py, and e2e_test_scaffolder.py for React/Next.js codebases
- Jest + React Testing Library stubs with optional --include-a11y and MSW-friendly mock props detection
- Playwright E2E scaffolding with optional page-objects for Next.js app routes
- Istanbul JSON or LCOV parsing with configurable coverage threshold (e.g. 80%) and strict failure mode
- Stack table: Jest, RTL, Playwright, Istanbul/NYC/LCOV, MSW, jest-axe, @axe-core/playwright
- 3 Python scripts: test_suite_generator, coverage_analyzer, e2e_test_scaffolder
- Tech stack table lists 5 categories (unit, E2E, coverage, mocking, a11y)
Adoption & trust: 853 installs on skills.sh; 17.5k GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You are shipping a React or Next.js app but tests are missing, coverage is unknown, and E2E plus accessibility checks feel too manual to stand up quickly.
Who is it for?
Indie SaaS or mobile-web apps on React/Next.js who want scripted test generation and coverage analysis without hiring a dedicated QA engineer.
Skip if: Non-React stacks, backend-only services with no UI, or teams that already enforce 90%+ coverage with a mature in-house QA pipeline and custom frameworks.
When should I use this skill?
You need generated Jest/RTL tests, Playwright E2E scaffolds, or strict coverage gap analysis for a React/Next.js codebase.
What do I get? / Deliverables
You get generated test stubs, optional a11y assertions, Playwright scaffolds, and a prioritized view of coverage gaps against your threshold so you can iterate until the bar is met.
- Generated __tests__ or colocated test stubs
- Coverage gap report against threshold
- Playwright E2E scaffold with optional page objects
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Canonical shelf is Ship → testing because the skill’s scripts and stack target pre-release QA, coverage gates, and E2E—not greenfield feature work. Subphase testing matches unit/integration/E2E generation, Istanbul/LCOV gap analysis, MSW mocks, and jest-axe / axe-playwright accessibility checks.
Where it fits
Generate RTL stubs with --include-a11y when you add a new component folder under src/components.
Run coverage_analyzer.py on coverage-final.json with --threshold 80 --strict before tagging a release.
Scaffold Playwright tests for critical checkout flows on src/app routes with page objects.
Use --scan-only on a component dir to list untested surfaces before a solo code review pass.
How it compares
Use instead of asking the agent to invent one-off test files from scratch without RTL, Playwright, or coverage-report conventions.
Common Questions / FAQ
Who is senior-qa for?
Solo and indie builders shipping React/Next.js products who need Jest, RTL, Playwright, and coverage tooling wired through repeatable Python scripts.
When should I use senior-qa?
During Ship testing before launch, during Build frontend when adding components without tests, and during Ship review when you need an 80% (or custom) coverage gate with a11y checks.
Is senior-qa safe to install?
Review the Security Audits panel on this Prism page and inspect the bundled Python scripts locally before running them against your repo.
SKILL.md
READMESKILL.md - Senior Qa
# Senior QA Testing Engineer Skill Production-ready quality assurance and test automation skill for React/Next.js applications. ## Tech Stack Focus | Category | Technologies | |----------|--------------| | Unit/Integration | Jest, React Testing Library | | E2E Testing | Playwright | | Coverage Analysis | Istanbul, NYC, LCOV | | API Mocking | MSW (Mock Service Worker) | | Accessibility | jest-axe, @axe-core/playwright | ## Quick Start ```bash # Generate component tests python scripts/test_suite_generator.py src/components --include-a11y # Analyze coverage gaps python scripts/coverage_analyzer.py coverage/coverage-final.json --threshold 80 --strict # Scaffold E2E tests for Next.js python scripts/e2e_test_scaffolder.py src/app --page-objects ``` ## Scripts ### test_suite_generator.py Scans React/TypeScript components and generates Jest + React Testing Library test stubs. **Features:** - Detects functional, class, memo, and forwardRef components - Generates render, interaction, and accessibility tests - Identifies props requiring mock data - Optional `--include-a11y` for jest-axe assertions **Usage:** ```bash python scripts/test_suite_generator.py <component-dir> [options] Options: --scan-only List components without generating tests --include-a11y Add accessibility test assertions --output DIR Output directory for test files ``` ### coverage_analyzer.py Parses Istanbul JSON or LCOV coverage reports and identifies testing gaps. **Features:** - Calculates line, branch, function, and statement coverage - Identifies critical untested paths (auth, payment, API routes) - Generates text and HTML reports - Threshold enforcement with `--strict` flag **Usage:** ```bash python scripts/coverage_analyzer.py <coverage-file> [options] Options: --threshold N Minimum coverage percentage (default: 80) --strict Exit with error if below threshold --format FORMAT Output format: text, json, html --output FILE Output file path ``` ### e2e_test_scaffolder.py Scans Next.js App Router or Pages Router directories and generates Playwright tests. **Features:** - Detects routes, dynamic parameters, and layouts - Generates test files per route with navigation and content checks - Optional Page Object Model class generation - Generates `playwright.config.ts` and auth fixtures **Usage:** ```bash python scripts/e2e_test_scaffolder.py <app-dir> [options] Options: --page-objects Generate Page Object Model classes --output DIR Output directory for E2E tests --base-url URL Base URL for tests (default: http://localhost:3000) ``` ## References ### testing_strategies.md (650 lines) Comprehensive testing strategy guide covering: - Test pyramid and distribution (70% unit, 20% integration, 10% E2E) - Coverage targets by project type - Testing types (unit, integration, E2E, visual, accessibility) - CI/CD integration patterns - Testing decision framework ### test_automation_patterns.md (1010 lines) React/Next.js test automation patterns: - Page Object Model implementation for Playwright - Test data factories and builder patterns - Fixture management (Playwright and Jest) - Mocking strategies (MSW, Jest module mocking) - Custom test utilities (`renderWithProviders`) - Async testing patterns - Snapshot testing guidelines ### qa_best_practices.md (965 lines) Quality assurance best practices: - Writing testable React code - Test naming conventions (Describe-It pattern) - Arrange-Act-Assert structure - Test isolation principles - Handling flaky tests - Debugging failed tests - Quality metrics and KPIs ## Workflows ### Workflow 1: New Component Testing 1. Create component in `src/components/` 2. Run `test_suite_generator.py` to generate test stub 3. Fill in test assertions based on component behavior 4. Run `npm test` to verify tests pass 5. Check coverage with `coverage_analyzer.py` ### Workflow 2: E2E Test Setup 1. Run `e2e_test_scaffolder.py` on your Next.js app directory 2. Revie