# senior-qa

senior-qa — a skill for Claude Code and five other platforms that structures test suites for React and Next.js apps. Scaffolds Jest unit tests, Playwright specs, and inspects coverage reports.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 232 installs · ★ 1183 repo stars
- Author: borghei
- License: LicenseRef-MIT-Commons-Clause · policy=link-only · description only; the file stays with the author
- Source: https://github.com/borghei/Claude-Skills/tree/HEAD/engineering/senior-qa/SKILL.md
- Updated: 2026-11-08
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/borghei-senior-qa

## What it does

The skill focuses on web applications built with React and Next.js, handling both App Router and Pages Router projects. Execution relies on three internal Python scripts for unit scaffolding, E2E generation, and coverage inspection.

The `test_suite_generator.py` script reads TypeScript component interfaces to create typed mock properties, render checks, and optional `jest-axe` accessibility runs. For CI pipelines, `coverage_analyzer.py` returns an exit code of 1 when passed `--strict` if Istanbul or LCOV metrics fall below the specified threshold.

Generated test files arrive with `TODO` markers that compile successfully without asserting real user-facing behavior, requiring manual checks before committing. The skill is strictly limited to web interfaces and skips Node.js backend logic, screenshot comparisons, and React Native codebases.

## Requirements
- Works with: Playwright

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill senior-qa -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/senior-qa/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/senior-qa/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill senior-qa -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/senior-qa/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill senior-qa -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/senior-qa/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install borghei/Claude-Skills engineering/senior-qa/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/senior-qa/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill senior-qa -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/borghei/Claude-Skills --path engineering/senior-qa
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/senior-qa/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill senior-qa -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/borghei/Claude-Skills/tree/HEAD/engineering/senior-qa/SKILL.md

## When to use it
- scaffold Jest and React Testing Library unit tests from component interfaces
- generate Playwright E2E suites with Page Object Models for Next.js routes
- evaluate Istanbul or LCOV coverage files for critical logic gaps
- integrate jest-axe checks into generated component tests

## Example prompts
- Generate Jest and RTL test stubs for components/Modal.tsx including accessibility checks
- Scaffold Playwright E2E suites and page objects for the routes in app/(dashboard)
- Analyze coverage/lcov.info with an 80% threshold in strict mode

## Similar
- [testing-expert](https://affpapa.org/en/nevibecode/agents/testing-expert.md) — subagent · ★ 763 repo stars
- [next-cache-components-optimizer](https://affpapa.org/en/nevibecode/skills/next-cache-components-optimizer.md) — skill · 22000 installs
- [next-partial-prefetching-optimizer](https://affpapa.org/en/nevibecode/skills/next-partial-prefetching-optimizer.md) — skill · 3800 installs
- [playwright-core](https://affpapa.org/en/nevibecode/skills/playwright-core.md) — skill · 1100 installs
- [Next.js App Router taste](https://affpapa.org/en/nevibecode/prompts/nextjs-app-router-taste.md) — prompt · ★ 178201 repo stars
- [react-testing-library](https://affpapa.org/en/nevibecode/skills/pproenca-react-testing-library.md) — skill · 428 installs

## Other versions with the same name
- [senior-qa · alirezarezvani](https://affpapa.org/en/nevibecode/skills/senior-qa.md) — 1178 installs

From the same set: [borghei/claude-skills](https://affpapa.org/en/nevibecode/by/borghei/claude-skills.md) — 120 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
