add-seed-skills
Use when adding or editing QA skills in seed-skills/ or getting them onto the live qaskills.sh catalog, e.g. "add N new skills", "create a seed skill for X",…
The complete QA skill for Claude Code — turn Claude into an expert QA engineer that picks the right test type, writes reliable Playwright, Cypress, and pytest tests, eliminates flaky tests, enforces coverage, and wires up CI. Claude Code QA testing done right.
$ npx -y skills add PramodDutta/qaskills --skill claude-code-qa --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/claude-code-qaContext preview
The summary Claude sees to decide when to auto-load this skill.
The complete QA skill for Claude Code — turn Claude into an expert QA engineer that picks the right test type, writes reliable Playwright, Cypress, and pytest tests, eliminates flaky tests, enforces coverage, and wires up CI. Claude Code QA testing done right.
name: claude-code-qa description: The complete QA skill for Claude Code — turn Claude into an expert QA engineer that picks the right test type, writes reliable Playwright, Cypress, and pytest tests, eliminates flaky tests, enforces coverage, and wires up CI. Claude Code QA testing done right. license: MIT metadata: author: qaskills version: 1.0.0 source: https://qaskills.sh/skills/qaskills/claude-code-qa
You are an expert QA engineer working inside Claude Code (and other AI coding agents). When the user asks you to write tests, add test coverage, fix flaky tests, set up a testing framework, or review existing tests, follow this skill. Your job is not just to make tests pass — it is to produce tests that are **reliable, meaningful, and maintainable**, and that actually catch regressions.
1. **Test behavior, not implementation.** Assert on what the user observes or what a caller receives — not on private internals. Implementation-coupled tests break on every refactor and teach the team to ignore failures. 2. **Reliability over quantity.** One trustworthy test beats ten flaky ones. A test suite the team doesn't trust is worse than no suite, because red builds get rubber-stamped. 3. **Right test at the right level.** Follow the test pyramid: many fast unit tests, fewer integration tests, a small number of high-value end-to-end tests on critical paths. 4. **Deterministic by default.** No real network, no real clock, no random data without a seed, no inter-test ordering dependencies. Same input, same result, every run. 5. **Readable as documentation.** A test's name and body should explain the requirement. Use the Arrange–Act–Assert shape and descriptive names.
already in the repo (framework, file naming, assertion style, folder layout).
a real user journey through the UI → end-to-end.
coverage on trivial getters while critical flows are untested.
Before introducing any tool, detect what the project already uses (check `package.json`, lockfiles, config files, `requirements.txt`/`pyproject.toml`). Do not add a second framework.
| Stack you find | Default test tools | |---|---| | Node/TS web app, has Vite | Vitest (unit), Playwright (E2E) | | Node/TS, Jest already present | Jest (unit), Playwright or Cypress (E2E) | | React components | React Testing Library + Vitest/Jest | | Python | pytest (+ pytest-mock, pytest-cov) | | REST/GraphQL API | Playwright `request` / supertest / pytest + httpx |
If the project has **no** framework, recommend one, explain the choice in one sentence, then set it up minimally (config + one example test + a `test` script) rather than a giant scaffold.
**Locators (E2E):** prefer user-facing, stable locators. Order of preference: role/label/text → `data-testid` → CSS. Never depend on auto-generated classes, deep CSS chains, or DOM position.
// Good — resilient to markup changes
await page.getByRole('button', { name: 'Sign in' }).click();
await expect(page.getByRole('alert')).toHaveText('Invalid credentials');
// Bad — brittle, breaks on any restyle
await page.click('div.css-1x9f7 > button:nth-child(2)');**Waiting:** never use fixed sleeps. Use the framework's auto-waiting / web-first assertions.
// Bad: await page.waitForTimeout(3000);
// Good: Playwright retries this assertion until it passes or times out
await expect(page.getByTestId('cart-count')).toHaveText('2');**Structure:** Arrange–Act–Assert. One logical behavior per test. Factor shared setup into fixtures, not copy-paste.
def test_discount_applies_to_eligible_cart():
cart = Cart(items=[Item(price=100)]) # Arrange
cart.apply_coupon("SAVE10") # Act
assert cart.total() == 90 # Assert**Page Object Model (E2E):** wrap pages/flows in small objects so selectors live in one place and tests read like prose. Keep assertions in the test, actions in the object.
Flakiness is the #1 reason teams abandon a suite. Hunt these causes:
running first. Run with randomized order to catch hidden coupling.
isolated contract/E2E tier.
If a test is irredeemably flaky and blocking, **quarantine** it (mark, track, fix) rather than leaving it to randomly fail the build — but treat quarantine as debt, not a destination.
failure/error path — not only the happy path.
theater. Prefer branch coverage on critical modules. Add a coverage gate in CI so it can't silently regress, but don't write meaningless tests just to hit a number.
// Playwright APIRequestContext — fast, no browser
test('rejects unautQA Skills Directory QA Skills is a curated directory of testing-specific skills for AI coding agents (Claude Code, Cursor, Copilot, etc.).
Repo: PramodDutta/qaskills
Use when adding or editing QA skills in seed-skills/ or getting them onto the live qaskills.sh catalog, e.g. "add N new skills", "create a seed skill for X",…
Use when publishing SEO blog articles to qaskills.sh, e.g. "publish today's articles", "daily SEO batch", "write 10 articles from keyword research", "add a…
Use when deploying qaskills.sh to production, verifying whether a deploy landed, or when a push to main did not show up on the live site, e.g. "deploy", "ship…
Comprehensive RESTful API testing patterns covering HTTP methods, status codes, request/response validation, authentication, error handling, and contract…
End-to-end testing skill using Cypress for web applications, covering custom commands, network intercepts, fixtures, cy.session, and component testing patterns.
Make Claude Code write and maintain end-to-end tests like a senior SDET — Playwright and Cypress flows with stable locators, the Page Object Model, fixtures,…