qa
QA workflow that validates a running application against Gherkin user stories. Use when running /qa or /qa:new-story, writing user stories under…
от vinnie357★ 30 звёзд на GitHub
Установить qa в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
QA Workflow
A team-driven validation loop that exercises a running application against a Gherkin user story, treats every Then clause as a TDD assertion, and files behavior deltas as bees issues via the existing bees-manager agent.
Inputs
The /qa command expects:
- A path to a Gherkin user story under
docs/user-stories/<slug>.mdin the target repo. Paths outside that directory are rejected. - Optional
--fixflag to enable the fix loop after deltas are filed.
The /qa:new-story command expects a kebab-case slug; the file at docs/user-stories/<slug>.md must not already exist.
The accepted Gherkin dialect, parsing rules, and rejection criteria live in references/gherkin-format.md.
Stack Detection
The qa-lead agent probes the repo before decomposing work:
mix.exspresent → Phoenix path.qa-tidewavevalidates backend assertions.package.json+playwright.config.{ts,js,mjs}→ UI present.qa-playwrightdrives scenarios.- Neither → generic.
qa-backenduses HTTP/CLI/log probing through Bash. - Mixed (e.g. Phoenix + UI) → spawn both UI and backend workers; correlate by scenario name.
Full probe tree in references/stack-detection.md.
Worker Decomposition
One Scenario: block per worker. The lead assigns workers by the assertion targets in the Then clauses:
| Scenario type | Worker | Tools |
|---|---|---|
| UI flow (clicks, form fill, navigation) | qa-playwright | Playwright MCP browser tools |
| Phoenix runtime / DB / log assertions | qa-tidewave | Tidewave MCP tools |
| HTTP API / CLI / generic backend | qa-backend | Bash, WebFetch |
| Scenario asserts both UI and backend | qa-playwright + qa-tidewave (or qa-backend) | Both, correlated by scenario name |
The lead never runs validation itself — it spawns workers via the Task tool and aggregates their reports.
TDD Mapping
Each Scenario: is a TDD assertion against running application behavior. The standard Red-Green-Refactor loop maps directly onto Gherkin:
| Gherkin | TDD state | Worker action |
|---|---|---|
Given <precondition> |
Test setup | Bring app to the stated initial state (or assert it). |
When <action> |
Exercise | Execute the action against the running app. |
Then <expectation> |
Assertion | Capture observed behavior with tool output as evidence. |
Then matches expectation |
GREEN | Report PASS for that scenario step. |
Then mismatches |
RED | Emit a BEES REQUESTS: entry; the lead routes it to bees-manager. |
--fix flag passed |
Fix loop | qa-test-writer writes ONE failing test (RED). qa-implementer then writes the smallest production change to make it pass (GREEN). The two never touch each other's files — qa-lead inspects the diff between phases to enforce the boundary. |
Full mapping with examples in references/validation-loop.md. The /core:tdd skill defines the canonical Red-Green-Refactor cycle and Three Laws — load it whenever a worker enters the fix loop.
Delta Filing Protocol
Workers MUST NOT call bees new, bees close, bees dep add, bees update, or bees comment add directly. They emit a BEES REQUESTS: block in their final report. The qa-lead aggregates these across all workers and routes the batch to ONE bees-manager agent invocation per repo cwd.
The block shape is fixed (it IS the input contract for bees-manager):
BEES REQUESTS (cwd: <repo-root>):
- new title="qa: <scenario name> — <failing assertion>" body="<reproduction + observed vs expected>" priority=P2 external-ref="<repo>/docs/user-stories/<slug>.md#<scenario>" labels="qa,golden-path"
Full grammar in references/delta-format.md. Reuses the contract from plugins/core/skills/bees/agents/bees-manager.md lines 33–41 verbatim — that agent is the source of truth.
Filed issues land in the target repo's .bees/ DB only. Global ~/github/.bees/ is out of scope for /qa.
Fix Loop (--fix) — adversarial TDD pair
Default behavior (no flag): file deltas, report the issue list, stop.
With --fix, the fix loop uses TWO opposed agents per issue. They are intentionally split to enforce /core:tdd honesty — the agent writing the test cannot also write the implementation, so neither can quietly relax the contract.
- qa-test-writer (sonnet) — Reads the bees issue. Writes ONE failing test that captures the bug. MAY edit files only inside the repo's test directory. MUST NOT touch production code. Confirms the test fails for the right reason. Returns a test artifact:
{path, test_name, runner_command}and the verbatim failure output. - Lead diff inspection — Runs
git diff --name-onlyafter qa-test-writer. If any modified path is outside the test directory, the run is REJECTED and reported asBLOCKED: qa-test-writer crossed boundary. No qa-implementer spawn happens. - qa-implementer (sonnet) — Receives only the test artifact (NOT the failure output). MAY edit any file OUTSIDE the test directory. MUST NOT touch the test. Writes the smalles
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/delta-format.md
- references/gherkin-format.md
- references/stack-detection.md
- references/validation-loop.md
- templates/user-story.md
FAQ
Что делает скилл qa?
QA workflow that validates a running application against Gherkin user stories. Use when running /qa or /qa:new-story, writing user stories under docs/user-stories/, decomposing Gherkin scenarios into Playwright and Tidewave validation work, mapping Given/When/Then to a RED/GREEN TDD loop, or filing observed behavior deltas as bees issues.
Как установить скилл qa?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл qa запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…