/sota-skills:sota-testingfrom SOTA Engineering Skills
Provides language-agnostic rules for designing test strategy, writing unit/integration/e2e tests, and auditing test suites. Covers suite shape, test doubles, contract testing, property-based testing, fuzzing, mutation testing, and flaky-test policy.
Ships in SOTA Engineering 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.
Expert-level, language-agnostic rules for producing and auditing production test
suites. Per-language runner/tooling details (pytest, go test, cargo test,
vitest/jest) live in the language skills (sota-python, sota-golang,
sota-rust, sota-javascript-typescript) — this skill defines the strategy,
design discipline, and quality bar those tools execute against. Every rule
states the why; every rules file ends with an audit checklist of yes/no
questions and grep-able smells.
Two consumers, one source of truth:
01, 02, 03, 04.rules/01): what counts as a unit here, where
the integration boundary is, which 3–10 flows deserve e2e. Write that
decision down (CONTRIBUTING.md or a test README) so the next contributor
doesn't relitigate it.TODO: assert something placeholders. A merged test with no assertion is
worse than no test — it manufactures false confidence.rules/04.Coverage: every rules/ file's Audit checklist applies in AUDIT mode. Mark one not applicable only with its reason in the report — never skip a file because the thing it checks for is absent, since that absence may be the finding.
Audit the suite, not just the tests: shape, doubles discipline, data management, CI health, and what is missing (untested risk) all count.
Severity conventions:
Finding format (one per line):
file:line | rule-id | severity | finding and concrete fix
Example:
tests/orders_test.py:88 | 02-determinism | High | uses datetime.now(); inject a fixed clock so the test cannot fail at month boundaries
tests/api/user.spec.ts:12 | 03-mock-boundary | High | mocks internal UserValidator; test the real validator, mock only the HTTP gateway
End every audit with: findings table, top-3 risks, and a prioritized fix list (quick wins vs structural).
| File | Read this when... |
|---|---|
rules/01-strategy-and-shape.md | choosing pyramid/trophy/honeycomb, defining unit vs integration boundaries, deciding what NOT to test, risk-based prioritization, budgeting test cost |
rules/02-test-design-quality.md | writing or reviewing any test: behavior-over-implementation, AAA, naming, one logical assertion, determinism (clock/random/network — incl. proving hermeticity by running the suite with egress blocked, and tests that pass because a real call succeeded), test smells catalog (assertion-free, tautological, the liar, mystery guest, resource optimism), snapshot discipline |
rules/03-doubles-and-test-data.md | deciding mock vs fake vs stub, fixing over-mocked suites, building test data (builders/factories vs fixtures), seeding test DBs, using production data |
rules/04-integration-contract-system.md | testing against real DBs/brokers (Testcontainers-style), contract testing between services (Pact, schema-based), API testing, migrations, message/queue tests, ephemeral environments, and a bench that fails silently — including a green run that quietly ran fewer tests |
rules/05-e2e-and-ui.md | building or pruning an e2e suite: critical-path selection, selector strategy, auto-waiting, page objects/screenplay, visual regression, when to delete e2e tests |
rules/06-property-fuzzing-mutation.md | going beyond examples: property-based testing (what properties to encode), fuzzing parsers, mutation testing ROI — including that the revert is part of the probe, not cleanup — approval testing for legacy code, chaos pointer |
rules/07-suite-health-and-ci.md | flaky-test policy and quarantine, coverage philosophy (ratchets not targets), speed budgets, parallelization correctness and the opposite case of two independent runs sharing one database, CI sharding (CI speed and caching itself: sota-devsecops rules/16), failure triage, a threshold measured on one population and asserted over a pooled one, a PR-diff check that routes deleted, skipped or weakened tests to human sign-off |
rules/08-bdd-spec-by-example.md | BDD / specification by example: Given-When-Then done declaratively, the three-amigos value (and when there's no cross-role audience), outside-in double loop with TDD, scenario-explosion and UI-script anti-patterns, Gherkin tooling, and tracing scenarios to spec acceptance criteria (sota-docs-workflow rules/05) |
rules/09-security-testing.md | security testing as a test type: WSTG as the verification map, the security-regression set (IDOR/BOLA, BFLA, authn/session, injection, mass-assignment, rate-limit, SSRF, tenant isolation run as the production DB role and pooler, cross-identity cache tests), a role × method × path authz matrix, OpenAPI-derived auth negatives and a test that the enforcer is still wired, independent authorship of security tests, business-logic/abuse-case tests from threat models, where SAST/DAST/fuzz fit and their ceiling, security-critical coverage floor, stack fingerprinting and external recon, WebSocket and message-size tests, the penetration-testing process and manual REST technique, security stress runs, logging kept on during security runs. Pairs with sota-code-security, sota-threat-modeling, sota-devsecops rules/05 |
This skill holds test strategy and design. Each language skill carries the mechanics — its runner, fixtures, coverage, fuzzing and CI flags — in one file. Read it beside this one whenever the suite is in that language:
| Language | File |
|---|---|
| Python | sota-python rules/07 |
| Go | sota-golang rules/07 |
| Rust | sota-rust rules/07 |
| C / C++ | sota-c-cpp rules/06 |
| Java / Kotlin | sota-jvm rules/06 |
| C# / .NET | sota-dotnet rules/06 |
| JavaScript / TypeScript | sota-javascript-typescript rules/07 |
| PHP | sota-php rules/05 |
| Ruby | sota-ruby rules/04 |
| Swift | sota-swift rules/08 |
rejects_expired_card, not test_payment_2).sleep(), never a dumping
ground for cases a lower layer can cover.Security-critical paths (authn/authz, crypto, input parsing, money/quota,
tenancy, untrusted data) additionally require negative security tests at a
higher coverage bar — see rules/09. A green functional suite proves nothing
about IDOR, injection, or broken authz.
rules/01-strategy-and-shape.md (opens in a new tab)rules/02-test-design-quality.md (opens in a new tab)rules/03-doubles-and-test-data.md (opens in a new tab)rules/04-integration-contract-system.md (opens in a new tab)rules/05-e2e-and-ui.md (opens in a new tab)rules/06-property-fuzzing-mutation.md (opens in a new tab)rules/07-suite-health-and-ci.md (opens in a new tab)rules/08-bdd-spec-by-example.md (opens in a new tab)rules/09-security-testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub martinholovsky/sota-skills --plugin sota-skills2 plugins ship this exact skill · first indexed Oct 30, 2026
43 skills in this plugin
/sotaMaster router for the SOTA engineering skills library. Use this skill whenever the user asks to build, design, implement, refactor, harden, optimize, review, or audit an application, service, or codebase and the request spans more than one domain — or when you are unsure which specific sota-* skill applies. Also use when working on a codebase you do not own: reviewing a pull request or diff, responding to code review, evaluating someone else's patch, or preparing an upstream contribution — including mid-session, once you are already reading source, a diff, or CI config. It maps the task (build or audit mode) to the right domain and language skills (Rust, Go, C/C++, JVM, Python, JS/TS, .NET/C#, PHP, Ruby, Swift). Trigger keywords: SOTA, best practices, audit my code, security review, compliance, hardening, prod readiness, code quality, pull request, PR review, review comment, maintainer feedback, patch, diff, upstream, contribute, merge request./sota-api-designState-of-the-art API design and audit guidance (2026) covering REST/HTTP, GraphQL, gRPC, WebSockets/SSE/realtime, webhooks, versioning/evolution, and API security/operations. Use when designing or building any API surface (endpoints, schemas, protos, realtime channels, webhook senders/receivers) AND when auditing/reviewing existing APIs for correctness, evolvability, security, and operational robustness. Not for browser UI, rendering, or client-framework concerns — use sota-web-frameworks or sota-frontend-design. Trigger keywords: API, REST, GraphQL, gRPC, endpoint, websocket, SSE, realtime, WebRTC, webhook, versioning, OpenAPI, pagination, idempotency, rate limit, problem+json, protobuf, deprecation.Other plugins' skills for the same job