/agentic-awesome-skills:test-harnessfrom agentic-awesome-skills
Ensures test suites prove something real before trusting green results. Arranges harnesses (unit, integration, schema, browser) with rules learned from bugs to keep gates honest.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Keep the scope, sandbox, credentials and approval settings supplied by the user or host. Obtain authorization before delegating, exposing project files to another provider, enabling connectors or hooks, using paid services or deploying. Use synthetic or redacted inputs for examples. Keep security reviews static and defensive, with findings and fixes grounded in source inspection.
Writing or running tests, proving a fix, a red or flaky run, a fix that didn't land, 'is it verified', 'run the gate': tests where green means something.
Make each harness prove something real before trusting its green result. A suite can pass against the wrong server, database, fixture branch, or developer's .env and prove nothing. This skill arranges the harnesses, defines gate runs and reporting, and keeps green runs honest with rules learned from bugs.
On another stack, keep the principle and swap the mechanism. Each rule states its principle first and the mechanism second. The web-app mechanisms use Next.js (App Router), Supabase Postgres, Clerk, Vitest, and Playwright. The two-halves mechanisms were learned on a relay service with a web client and an editor extension with desktop installers that drives a CLI agent.
The product's own instructions come first — where they name its scripts, folders, or coverage file, follow them.
A bug survives exactly where every harness fakes the same side. Coverage of surfaces is not coverage of journeys. Before adding a suite, write down what it makes real. If everything else already fakes the same side, it mostly re-covers ground.
| Harness | Makes real | Fakes | Runs |
|---|---|---|---|
| Unit | pure modules: authorization functions, schemas, token hashing, limits, escaping, the env schema, source guards, the edge-rule numbers | database, identity, browser | gate |
| Integration | the development Postgres: the applied schema, deny-all, cross-tenant, invariants and races through the real SQL functions | identity (a mock verifier behind the same seam as the real one) | gate |
| Schema catalog | every public relation and function, enumerated from the catalog so future objects are covered | identity, fixtures | gate |
| Browser, public | a real browser on a phone profile against the development database; the anonymous journey needs no account | member identity | gate |
| Browser, authenticated | the identity provider's real development instance and real sessions, an account per role | local gate | |
| Visual | a bounded release set of captures; on request, a full sweep | identity where a capture does not sign in | outside the gate, on purpose |
| Live agents (only with embedded agents) | the real model with each agent's tools | — | outside the gate: it costs money |
| Smoke | a deployed URL, write-free | — | after every deploy, last |
When a product has two halves, ask what is faked per half. This includes a backend and client, or a host and the vendor tool it drives. Defects needing both real halves, or a restart mid-journey, are invisible when every suite fakes the other side. Build one harness with both halves real that can kill a process mid-journey. Add a compatibility suite that holds an old client working against the new backend.
Every row in full, including its target and run placement, is in references/harnesses.md. That reference also covers the two-halves harnesses, browser configs, script contract, and authenticated mile.
When an external create lacks an idempotency guarantee, follow references/external-creates.md before the first review.
Run the full local gate at phase end and before deploying pushes. Development deploys need browser coverage too. By default, gate runs typecheck, test (unit + integration), e2e, then e2e:auth, in that order, as applicable to the product's shape and current stage. Compare the actual script with references/harnesses.md's script contract; a green script can omit a whole suite. The owner decides any narrower gate; record that choice in the plan, with its reason and revisit trigger.
visual, the live agent suite, and smoke -- <url> run outside it on purpose. There is no hosted CI unless wired as its own change (release-gate). If wired, it runs the gate minus the authenticated mile. The local gate covers that gap: never skip it silently, and name any suite that did not run.
Run touched tests at stage end; reserve full gates for phases. The coordinator runs new and touched tests itself and checks changed journeys' end-to-end specs. Run the full gate on the finished phase before visual checks, the docs check and fresh review. Rerun it on the cleared state if a fix followed its last full run, before the closing push. Apply release-gate § Stage and phase close for the full sequence. Time one full run and write it in the plan. Phase estimates count required runs. A gate of a couple of minutes can run on every piece.
codex-agents for a Codex build's test-running mode and delegation for its boundaries. Where the tool or platform cannot run them, name the concrete blocker and the session agent's checks; budget the fix pass above. A test changed to make it pass is named in the handoff, with why: a loosened assertion or an added fallback can turn a real failure green. The coordinator reruns touched and new tests at stage end and the full gate at phase end.After two fixes that pass their checks and leave the reported symptom unchanged, stop fixing. Green checks with an unchanged symptom mean the model of the problem is wrong: the tests exercise a sequence the person never meets. Write down the explanations still standing. Get one observation whose outcome tells them apart: a screenshot, a log line from their run, or a question answerable in a minute. Ask after the second fix that didn't land, not the fifth.
The fix that lands comes with a test that reproduced the symptom before it, and the person confirms the symptom is gone in their own run.
Every feature that touches data gets the boundary and integrity tests its mechanisms need. These checks establish:
supabase-production, references/gotchas.md).The saas-authorization skill explains what each protects and why invariants live in the database rather than code.
references/rules-from-bugs.md § Reading a red run).e2e and e2e:auth did not run: browser launch blocked." Include the reason and what unblocks each missing run.references/coverage-map.md for the map's format.references/rules-from-bugs.md § Reading a red run). Never cure one with a sleep, a retry until green or a skip: each hides the cause. A suite that has never been green reports nothing and hides the next real red.references/rules-from-bugs.md § Reading a red run).Each of these rules has its receipt in the references. They are the ones that cost the most when skipped.
A fallback in a test is a bug in disguise. "Try the new way, else the old way" passes exactly when the thing under test is absent. Assert the one true path.
A pin must not pass against a dead branch. A substring assertion is satisfied by if (false && …). Assert the whole conditional and watch it fail under that mutation.
A new precondition breaks the harnesses CI does not run. If a change adds something a person must do before the product starts, every harness launching a real instance must seed it. Run the suites outside CI before the release, not inside it.
Test sign-in the way a new user meets it, with no saved credential on the machine; a signed-in machine passes a broken sign-in.
A reused server can be a build from before your change. The browser suites never reuse a server already on the port. When an assertion disagrees with source you just edited, check what answers the port before changing code.
The developer's .env is a harness default. Pin every optional configuration a suite's meaning depends on in the shared server module. Otherwise, one assertion means different things on different machines.
A DOM assertion cannot see a layout. Claims about layout need geometry, and a person looks at the captures.
A check that covers a class names who can reach the state. Before a width, a state or a timing goes into every scene, write down who can reach it. A check of states nobody reaches fails on non-defects.
Nothing else touches the gate's data while it runs. Run browser suites one at a time: they share a server and test accounts, and each resets what those accounts own. The same holds for every other actor on development. That includes a parallel agent driving a test account and a background worker acting on the suites' fixtures (references/rules-from-bugs.md § The harness's environment).
A deployed worker never stops. Before the first deploy running one against development's database, scope it away from test-account workspaces or give the suites their own database. That can be a test project or the local stack. Until then, let suites' setup fail loudly when anything outside them has claimed one of their fixtures.
Never test against production data or with production credentials. Use the development instance, development project, and dedicated test accounts. Only the smoke touches production, and it writes nothing.
A generated file can arrive rewritten by the tooling that wrote it. A backtick inside git commit -m "…" is command substitution: the shell runs the word and replaces it with its output, usually nothing. The text vanishes silently. Commit messages go through a heredoc (git commit -F -). A test written through a shell into an interpreter is rewritten the same way. Generate through the fewest layers, using the agent's file-write tool, and read the bytes produced (references/rules-from-bugs.md § Generated files).
A suite outside the gate rots silently. A screen's captures are part of its surface. Update visual specs in the same stage, and run the visual suite at phase end when screens changed.
Each rule's origin, the case that taught it, is in receipts.md beside this file; read it when a rule's edge is unclear.
Your own run covered the tests the piece touches, or the full gate at the phase's end, and you read its exit code. Each new test sits in the harness whose Runs column says where it runs. The coverage map was updated from the full gate's run.
| File | Holds | Read when |
|---|---|---|
references/harnesses.md | every harness in full; harnesses for a product with two halves (both real, old-client compatibility, the wire between DOM suites, operator checks, the authenticated canary); the two browser configs and the shared server module; the script contract; the authenticated mile | adding a suite or a script; a client and its backend; setting up or debugging the authenticated browser suite |
references/rules-from-bugs.md | the gate and harness rules, grouped by moment: reading a red run (the exit code, flakes, hangs, rotted checks); writing assertions; fixtures; irreversible identifiers; the database; servers, builds and worktrees; browsers and layout; the harness's environment (preconditions, sign-in without a credential); same-origin checks; generated files | writing or running any test; a red, flaky or hanging run; creating or removing a worktree |
references/captures.md | the capture harness and the exploratory pass: the release set as a budget, where captures live, sweeps | at the end of a phase that changes a screen; before a release's visual pass |
references/vendor-surfaces.md | vendor-rendered elements measured from the DOM; API response parsers and shared contract suites; link previews asserted on the raw response; icons and generated images | testing a third-party component, API contract, share card, icon or OG image |
references/external-creates.md | durable recovery for non-idempotent external writes and fault-injection tests | before reviewing a change that creates objects without an idempotency guarantee |
references/coverage-map.md | the coverage map's sections and who writes it | after a gate run; at a release; when a stage adds tests |
Use the related skills for screen claims, coverage documents, and release mechanics. What a screen may claim and what to verify visually are outside this skill: widths, states, themes, roles, and the 320 px floor. Use the ui-design skill's references/screens.md. The coverage map as a document, including its required reviewer contents, is shipping-artifacts. The derive-tests skill derives one from docs; its check mode lists stale entries and writes nothing. Use release-gate for the release checklist. The identity provider's harness mechanics in depth are clerk-production; the database's catalog posture and error codes are supabase-production.
The folders and scripts named here are a suggested layout: Call yours what you like:
tests/unit/, tests/integration/, tests/e2e/ (*.auth.spec.ts for the authenticated suite), tests/visual/, tests/live/, tests/smoke/;typecheck, test, e2e, e2e:auth, gate, visual, agents:live, smoke (references/harnesses.md § The script contract).The coverage map is the product's record of what was verified, by which run (references/coverage-map.md). The variables doc lists every environment variable the code reads. The kit is the product's design system and component primitives (ui-design). For invariant design, shrinking, and generator strategies with Hypothesis, proptest, or fast-check, see Property-Based Testing.
Reproduce a duplicate webhook in a disposable fixture and assert that two deliveries produce one domain event. Record the fixture and test output.
Treat upstream examples as patterns. Validate scope and results against current project constraints, available tools and decisions recorded by the owner.
Adapted from Pawel Huryn’s upstream skill.
LICENSE (opens in a new tab)receipts.md (opens in a new tab)references/captures.md (opens in a new tab)references/coverage-map.md (opens in a new tab)references/external-creates.md (opens in a new tab)references/harnesses.md (opens in a new tab)references/rules-from-bugs.md (opens in a new tab)references/vendor-surfaces.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (sickn33/agentic-awesome-skills) — no native marketplace selected
npx claudepluginhub p/sickn33-antigravity-awesome-skills3,195 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.2 plugins in one repository ship this exact skill · first indexed Dec 1, 2026
Other plugins' skills for the same job