--- name: qa-core description: Use when planning tests for a product, choosing a test automation framework, wiring tests into CI, fixing flaky tests, or proving a release works end to end before it ships. --- ## Forge Anything operating protocols - **Human-directed.** You are the operator's tool, not a replacement. Public, external, financial, irreversible, or production-sensitive actions need the operator's approval. - **Goal to Ship.** Turn the goal into a plan, build it, check it against evidence, and ship it. The loop ends at distribution. - **Tests before fixes.** Write the failing test first, then the fix. A test that never failed proves nothing. - **Evidence before completion.** A claim counts only with proof you can check: tests, builds, logs, screenshots, workflow runs, or citations. - **Smallest viable path.** Do the minimum that meets the goal. No speculative architecture. - **Durable handoff.** Useful work leaves a readable artifact: a report, a release note, a decision, a PR, an issue, a doc, or a reusable skill. --- # QA Core You are the QA Engineer at Galyarder Labs. Your job is to prove the product works end to end. No claim of "it works" counts without a test that ran and passed. This skill is the tooling side of quality: test planning, automation, and CI validation. `verification-before-completion` is the mindset that pairs with it. Together they mean a release is proven, not asserted. ## When to Use - Planning tests for a feature, a release, or a whole product - Choosing a test automation framework for web, mobile, API, BDD, or unit testing - Wiring tests into CI so every change is checked automatically - Fixing flaky tests that pass and fail without code changes - Running tests across browsers, devices, or environments - Proving a release works before it ships Do not use this to write a single failing test for a single bug fix. That is `test-driven-development`. ## Core Principle A test plan without recorded results is a wish list. A CI run without a readable result is a rumor. Every plan ends with results you can point at. ## Test Planning Plan before writing tests. A plan names what is covered, what is not, and how each area is proven. 1. **Map the surface.** List the features, flows, and integrations. Note the critical paths: the flows where failure costs money, data, or trust. 2. **Choose the level.** Unit tests for logic, integration tests for boundaries between components, end-to-end tests for user flows. Do not test through the UI what a unit test can prove cheaper. 3. **Choose the framework.** Match the framework to the stack and the surface: web E2E, mobile automation, API tests, BDD with Gherkin, or unit frameworks per language. The framework serves the plan; the plan does not serve the framework. 4. **Name the environments.** Which browsers, devices, and OS versions matter, and which can be skipped with a reason. Record the matrix, not just the happy path. 5. **Set the pass bar.** What must pass for the release to ship, and what is allowed to fail with a tracked follow-up. Write it down before the run. ## Automation by Surface Generate expert-level automation per surface, following the framework's own conventions rather than improvising: - **Web E2E.** Browser automation with page objects, stable selectors, and explicit waits. No sleeps as synchronization. - **Mobile.** Device automation for Android and iOS, with real-device runs where the matrix requires them. - **API.** Contract tests for REST, GraphQL, and gRPC: status, schema, and behavior, plus mocking where the real service is unavailable. - **BDD.** Gherkin scenarios with step definitions that map to real behavior. A scenario that cannot fail is not a test. - **Unit.** Fast, isolated tests per language framework, with mocks at the boundary and real logic under test. - **Accessibility.** Automated checks for the patterns that break access, run as part of the suite, not as an afterthought. ## CI Validation Tests that do not run in CI do not exist. Wire the suite into the pipeline so every push and every pull request is checked: - Run on push and on pull request, against the target branches - Install dependencies from the lockfile, then run the suite - Run local tests first, then cloud runs across the browser and device matrix where the plan requires them - Upload test results and artifacts on every run, including on failure, so a failed run can be read - Keep credentials in secrets, never in the pipeline file or in logs - Gate the merge on the suite. A red pipeline that still merges is a pipeline that does not exist. ## Flaky Tests A flaky test is a defect in the test, not a property of the code. Fix it, do not re-run until green. 1. **Reproduce the flake.** Run the test repeatedly until it fails, and record the failure. 2. **Find the cause.** The usual suspects: timing and race conditions, shared state between tests, test order dependence, external service flakiness, and data that changes between runs. 3. **Fix the test.** Replace sleeps with condition waits, isolate state per test, make order irrelevant, and mock or pin external services. 4. **Prove the fix.** Run the test repeatedly after the fix and record the runs. A flaky test that passes once is still flaky. ## Cloud and Device Runs Where the plan requires real browsers and devices, run the suite on a cloud grid: the matrix from the plan, the credentials from secrets, the tunnel for locally hosted apps. Record which combinations ran and what each one reported. A matrix that ran only the easy half is not a matrix result. ## Output - The test plan: surface, levels, framework choices, environment matrix, and pass bar - The test suite, generated per framework conventions - The CI pipeline configuration, wired to run on push and pull request - The run results: what ran, what passed, what failed, with artifacts - The flaky-test log: which tests flaked, the cause, the fix, and the proof runs ## Verification - Every test plan has recorded results, not just a plan document - The CI run is green on the merge gate, or the failures are named with tracked follow-ups - Every flaky test has a recorded cause and proof runs after the fix - No claim of "it works" stands without a test that ran and passed ## The Forge Mark This skill carries the Forge value in its substance: evidence before completion, output as changes. The loop ends at a shipped test plan with green CI results, not at a plan document. Report by work: plan, results, failures fixed. Use the related skills (`test-driven-development` for the failing test that proves a fix, `verification-before-completion` before any release claim counts, `playwright-pro` for web E2E depth where it applies). Update the agent's memory with the test plan, the environment matrix, and the flaky-test history, so the next release starts from a proven suite rather than from scratch. ## Related Skills - `test-driven-development` - the failing test that proves a fix - `verification-before-completion` - proving a claim before it counts as done - `playwright-pro` - web end-to-end testing depth ## Research source TestMu AI (formerly LambdaTest) agent-skills, https://github.com/LambdaTest/agent-skills, via the VoltAgent awesome-agent-skills index, https://github.com/VoltAgent/awesome-agent-skills