MCPInstall

senior-qa

Testing for React/Next.js with Jest, React Testing Library, and Playwright. Use when generating tests, writing unit tests, analyzing coverage, scaffolding E2E tests, configuring Jest, or improving test quality.

Installs
228
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/borghei/claude-skills --skill senior-qa
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads senior-qa automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Senior QA Engineer

Test automation, coverage analysis, and quality assurance patterns for React and Next.js applications. Generates Jest + React Testing Library unit test stubs, analyzes Istanbul/LCOV coverage for gaps, and scaffolds Playwright E2E suites for App Router and Pages Router projects.

Core Capabilities

  • Unit test generation — scan React/TypeScript components and emit Jest + RTL stubs (render, interaction, state, optional jest-axe a11y).
  • Coverage analysis — parse Istanbul/LCOV reports, identify gaps by severity, flag critical business-logic paths, and emit text/HTML/JSON recommendations.
  • E2E scaffolding — detect Next.js routes (dynamic segments, route groups, auth pages) and generate Playwright specs, Page Object Models, fixtures, and config.
  • Test strategy — the testing pyramid, coverage targets by code type, and test organization patterns.
  • Automation patterns — Page Object Model, data factories, MSW mocking, fixtures, and custom render utilities.
  • Quality practices — testable code design, AAA structure, test isolation, flaky-test elimination, and quality metrics.

When to Use

  • Setting up unit tests for new or existing React components.
  • Improving test coverage or preparing for release.
  • Setting up Playwright E2E tests for a Next.js project.
  • Configuring Jest thresholds or improving overall test quality.

Clarify First

Before generating tests, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Test layer — unit (Jest+RTL) vs E2E (Playwright) (selects test_suite_generator vs e2e_test_scaffolder)
  • Source path — the components or Next.js routes to generate tests from (the scaffolder's input)
  • Coverage focus — happy path only vs interaction/state/a11y (jest-axe) (sets which test stubs are emitted)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Tools

ToolPurposeCommand
test_suite_generator.pyGenerate Jest + RTL test stubs from React componentspython scripts/test_suite_generator.py src/components/ --output __tests__/
coverage_analyzer.pyAnalyze Istanbul/LCOV coverage and report gapspython scripts/coverage_analyzer.py coverage/coverage-final.json --threshold 80
e2e_test_scaffolder.pyScaffold Playwright E2E tests from Next.js routespython scripts/e2e_test_scaffolder.py src/app/ --output e2e/

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/qa-workflows-and-tools.md — quick start, the three tool overviews with sample output, the unit-test/coverage/E2E workflows, common pattern snippets (RTL queries, async, MSW, Playwright locators, jest thresholds), common commands, troubleshooting table, and success criteria. Read when running a workflow.
  • references/tool-cli-reference.md — full flag tables, examples, output formats, and generated artifacts for all three scripts. Read before running the scripts.
  • references/testing_strategies.md — the testing pyramid, testing types, coverage targets and thresholds, and test organization patterns. Read when designing test strategy.
  • references/test_automation_patterns.md — Page Object Model, data factories, fixture management, mocking strategies (MSW), and custom test utilities. Read when writing test code.
  • references/qa_best_practices.md — writing testable code, naming conventions, AAA pattern, test isolation, flaky-test debugging, and quality metrics. Read when improving test quality.

Scope & Limitations

This skill covers:

  • Unit test stub generation for React/TypeScript functional and class components using Jest and React Testing Library.
  • Coverage analysis and gap identification from Istanbul JSON and LCOV report formats.
  • E2E test scaffolding for Next.js App Router and Pages Router projects using Playwright.
  • Accessibility test generation via jest-axe integration.

This skill does NOT cover:

  • Backend API testing (see senior-backend for Express/Node.js testing patterns).
  • Performance or load testing (see senior-devops for infrastructure and performance tooling).
  • Visual regression testing or screenshot comparison workflows.
  • Mobile-native testing (React Native, Flutter) -- this skill targets web browser-based testing only.

Integration Points

SkillIntegrationData Flow
senior-frontendGenerated test stubs align with component patterns from the frontend skillFrontend components --> test_suite_generator.py --> test files
senior-fullstackCode quality analyzer consumes the same coverage reports produced herecoverage_analyzer.py output --> fullstack quality dashboard
senior-devopsE2E test scaffolder generates CI-ready Playwright configs that plug into DevOps pipelinese2e_test_scaffolder.py --> playwright.config.ts --> GitHub Actions workflow
code-reviewerCoverage gaps feed directly into code review checklists for untested changescoverage_analyzer.py gaps --> review checklist items
tdd-guideTDD workflow references this skill's test generator for initial red-phase stub creationTDD cycle --> test_suite_generator.py --scan-only --> write tests --> implement
qa-browser-automationPage Object Models generated here are consumed by the browser automation skill for advanced E2E scenariose2e_test_scaffolder.py --include-pom --> POM classes --> browser automation flows

FAQ

What does the senior-qa skill do?

Testing for React/Next.js with Jest, React Testing Library, and Playwright. Use when generating tests, writing unit tests, analyzing coverage, scaffolding E2E tests, configuring Jest, or improving test quality.

How do I install senior-qa?

Run npx skills add https://github.com/borghei/claude-skills --skill senior-qa in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/senior-qa/ (personal) or .claude/skills/senior-qa/ (project).

Which AI agents can use senior-qa?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is senior-qa safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains senior-qa?

It is published by borghei in borghei/claude-skills. It has 228 recorded installs.

More from borghei/claude-skills

View all →

product-designer

borghei/claude-skills

Product design across UI/UX, design systems, prototyping, and user research. Use when creating user journey maps, building wireframes, defining design tokens and component systems, planning usability tests, or establishing design principles.

Frontend & Design4.9K installs

business-intelligence

borghei/claude-skills

Business intelligence across dashboard design, visualization, and reporting automation. Use when designing dashboards, building KPI frameworks, automating reports, creating data stories, or optimizing BI tool performance.

Business & Finance1.5K installs

brand-strategist

borghei/claude-skills

Brand strategy covering positioning, identity, brand architecture, messaging frameworks, and governance. Use when developing brand positioning, creating messaging frameworks, auditing brand health, or building brand architecture.

Marketing & SEO776 installs

data-analyst

borghei/claude-skills

Data analysis across SQL, visualization, statistics, and reporting. Use when writing SQL queries, building dashboards, performing cohort or funnel analysis, running hypothesis tests, or presenting data-driven recommendations.

Data & Databases606 installs

cfo-advisor

borghei/claude-skills

Open the skill to read its SKILL.md instructions.

454 installs

data-scientist

borghei/claude-skills

Data science across machine learning, statistical modeling, and experimentation. Use when selecting ML algorithms, engineering features, designing A/B tests, evaluating model performance, or building predictive pipelines.

Popular testing & qa skills

View category →

tdd

mattpocock/skills

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

Testing & QA1.2M installs

grilling

mattpocock/skills

Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.

Testing & QA996.2K installs

migrate-to-shoehorn

mattpocock/skills

Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.

Testing & QA484.1K installs

run-train

lllllllama/rigorpilot-skills

Rigor Train skill for deep learning research repositories. Use when a documented or selected training command should be run conservatively for startup verification, short-run verification, full kickoff, or resume, with command, config, seed, log, checkpoint, status, and metric evidence written to standardized trainoutputs/. Do not use for environment setup, exploratory sweeps, speculative idea implementation, or end-to-end orchestration.

Testing & QA337.8K installs

test-driven-development

obra/superpowers

Use when implementing any feature or bugfix, before writing implementation code

Testing & QA261.8K installs

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

Testing & QA216.8K installs