Логотип QA Skill For Claude Code

QA Skill For Claude Code

Сообщество
PramodDutta
QA Skill for Claude Code

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.

Обзор

ИздательPramodDutta
Репозиторийqaskills
Название навыкаQA Skill for Claude Code
Звёзды
239
Форки
31
Файлы в комплекте
Только инструкции
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — PramodDutta. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ QA Skill For Claude Code в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/PramodDutta/qaskills/tree/main/seed-skills/claude-code-qa
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/PramodDutta/qaskills.git /tmp/qaskills
mkdir -p .claude/skills
cp -r /tmp/qaskills/seed-skills/claude-code-qa .claude/skills/pramoddutta-qa-skill-for-claude-code
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык QA Skill For Claude Code в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык QA Skill For Claude Code, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык QA Skill For Claude Code не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

QA Skill for Claude Code

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.

Core principles

  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.

Step 1 — Understand the code before writing a single test

  • Read the module/route/component under test and its existing tests. Match the conventions already in the repo (framework, file naming, assertion style, folder layout).
  • Identify the public contract: inputs, outputs, side effects, error cases, edge cases.
  • Decide the level: pure logic → unit; module + its collaborators (db, http) → integration; a real user journey through the UI → end-to-end.
  • Ask: "What regression would actually hurt in production?" Test that first. Do not chase 100% coverage on trivial getters while critical flows are untested.

Step 2 — Detect and respect the existing framework

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 findDefault test tools
Node/TS web app, has ViteVitest (unit), Playwright (E2E)
Node/TS, Jest already presentJest (unit), Playwright or Cypress (E2E)
React componentsReact Testing Library + Vitest/Jest
Pythonpytest (+ pytest-mock, pytest-cov)
REST/GraphQL APIPlaywright 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.

Step 3 — Write reliable tests

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.

ts
// 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.

ts
// 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.

python
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.

Step 4 — Eliminate flaky tests

Flakiness is the #1 reason teams abandon a suite. Hunt these causes:

  • Timing: replace sleeps with explicit waits / web-first assertions.
  • Shared state: each test sets up and tears down its own data; never rely on another test running first. Run with randomized order to catch hidden coupling.
  • Real time/dates: freeze the clock (vi.useFakeTimers(), freezegun, Playwright clock).
  • Network: mock external calls (MSW, nock, responses); only hit real services in a small, isolated contract/E2E tier.
  • Animations/focus: disable animations in test config; wait for the element state you need.

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.

Step 5 — Assertions and coverage that mean something

  • Assert specific values and error messages, not just "truthy" / "no throw".
  • Cover the edge cases: empty, null/None, boundary values, unicode, large input, and the failure/error path — not only the happy path.
  • Treat coverage as a floor, not a goal. 100% line coverage with weak assertions is 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.

Step 6 — API testing

ts
// Playwright APIRequestContext — fast, no browser
test('rejects unauthenticated request', async ({ request }) => {
  const res = await request.get('/api/orders');
  expect(res.status()).toBe(401);
});

Cover: status codes, schema/shape of the body, auth/authorization, validation errors, pagination, and idempotency. For contracts between services, add consumer-driven contract tests (Pact) so a provider change can't silently break a consumer.

Step 7 — Wire it into CI

  • Add a test script and run it on every PR. Fail the build on any failure.
  • Cache dependencies and browser binaries; shard/parallelize E2E to keep PRs fast.
  • Upload artifacts on failure (Playwright trace, screenshots, video) so failures are debuggable without re-running locally.
  • Keep unit tests in the fast PR lane; run the heavier E2E/cross-browser matrix on merge or nightly if it's slow.

Reviewing AI-generated tests (including your own)

Before declaring tests done, self-review against this checklist:

  • Does each test actually fail if I break the behavior it claims to cover? (If unsure, temporarily break the code and confirm a red.)
  • Are there assertions, and do they check specific expected values?
  • No fixed sleep/waitForTimeout? No real external network in unit tests?
  • Edge and error cases covered, not just the happy path?
  • Tests are independent and pass in randomized order?
  • Names describe the requirement; no dead/commented-out tests.
  • No over-mocking that makes the test assert mock behavior instead of real behavior.

Anti-patterns to refuse

  • Tests with no assertions ("it renders" with nothing checked).
  • Snapshot tests on huge, volatile output that nobody reviews.
  • Asserting on log output or private fields instead of behavior.
  • Catch-all try/except: pass that hides failures.
  • Mocking the very thing under test.

Worked example — a critical-path E2E test (Playwright)

ts
import { test, expect } from '@playwright/test';

test.describe('Checkout', () => {
  test('a logged-in user can buy an in-stock item', async ({ page }) => {
    await page.goto('/products/widget-123');
    await page.getByRole('button', { name: 'Add to cart' }).click();
    await expect(page.getByTestId('cart-count')).toHaveText('1');

    await page.getByRole('link', { name: 'Checkout' }).click();
    await page.getByLabel('Card number').fill('4242 4242 4242 4242');
    await page.getByRole('button', { name: 'Pay' }).click();

    await expect(page.getByRole('heading', { name: 'Order confirmed' })).toBeVisible();
    await expect(page.getByTestId('order-id')).not.toBeEmpty();
  });
});

This test uses stable role/label locators, web-first assertions (no sleeps), covers a real revenue-critical journey, and asserts concrete post-conditions — exactly the kind of test this skill exists to produce.

Summary

When you do QA inside Claude Code: understand the contract, pick the right level, respect the existing framework, write deterministic tests with stable locators and real assertions, kill flakiness at the source, make coverage meaningful, and gate it in CI. Reliable tests the team trusts — that is the goal.

Часто задаваемые вопросы

Что делает навык ИИ QA Skill For Claude Code?

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.

Зачем использовать QA Skill For Claude Code в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. QA Skill For Claude Code — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить QA Skill For Claude Code в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/PramodDutta/qaskills/tree/main/seed-skills/claude-code-qa. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать QA Skill For Claude Code?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать QA Skill For Claude Code?

С любым количеством. В TypingMind вы можете использовать QA Skill For Claude Code с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ QA Skill For Claude Code?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — PramodDutta. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇