agentleFS
jamal-gmljamal-gml/anthropica/skills/plan-test-strategy/SKILL.md

plan-test-strategy

Skill0 starsChanged 12 days agoMITView on GitHub

Plan risk-based testing - risk scoring, test levels, test-design techniques, exploratory charters, entry/exit criteria, test data, traceability and bug reports. Use when planning QA for a feature or release, deriving test cases from requirements, scoping regression, or writing a defect report. Not for writing or running tests (use `test-validation`) or load tests (use `test-performance`).

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Test the permission matrix explicitly: each role x each sensitive action, plus another tenant's or user's resource (IDOR).

    line 56
  2. Distinctive:

    Test upgrade and migration from realistic existing data and the rollback path, not only a fresh install.

    line 57
  3. Distinctive:

    Default entry criteria: build deployed to the test environment, smoke passes, test data ready, requirements stable enough to test, blockers …

    line 61
  4. Distinctive:

    Default exit criteria (tighten for High risk): all High-risk cases executed and passed.

    line 62
  5. Distinctive:

    Never use real customer personal data outside production.

    line 73
  6. Distinctive:

    Do not test against production, or with live payment, email or SMS providers, without explicit approval.

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Test Strategy and Planning

Decide what to test, at which level, how deeply and when testing is done, with effort proportional to risk.

Procedure

  1. Gather the test basis. Requirements, acceptance criteria, designs, API contracts, the diff or change list, past incidents and bug clusters in the area. Turn every ambiguity into a written question; a requirement nobody can test is a requirement defect.
  2. Set scope. In scope, out of scope (with the reason) and assumptions. Include the blast radius of the change: shared components, migrations, config, feature flags, integrations, scheduled jobs.
  3. Score risk per area: Impact (1-3) x Likelihood (1-3). Impact drivers: money, auth and permissions, data loss or corruption, privacy and legal, number of users, no workaround. Likelihood drivers: new or complex code, large diff, new technology or integration, bug history, unclear requirements, concurrency, time pressure. Map the score to depth with the Rules table.
  4. Choose levels. Put each check at the lowest level that can catch the failure (Rules table). Pyramid (many unit, fewer integration, few E2E) for logic-heavy services; trophy (integration-heavy, static analysis at the base) for frontends and glue code; consumer-driven contract tests between independently deployed services.
  5. Design cases. Derive at least one case per requirement, then add negative, boundary, state, permission and error-guessing cases using the technique table. Read references/test-design-techniques.md when applying partitioning, boundary values, decision tables, state transitions or pairwise.
  6. Plan exploratory sessions for new, high-risk or poorly specified areas as timeboxed charters. Read references/exploratory-testing.md when writing charters, running sessions or debriefing.
  7. Decide non-functional coverage per area: performance (test-performance), security (plan-threat-model, secure-code-review), accessibility (review-ui-ux), compatibility, resilience, upgrade/migration and rollback, observability. Write "N/A because ..." instead of skipping silently.
  8. Environments and data. Environment per level and its parity gaps with production, accounts per role and tenant, synthetic seed data, flag states, third-party sandboxes or stubs, clock and timezone control, data reset between runs.
  9. Entry/exit criteria and traceability. Build the matrix requirement -> cases -> result -> bugs. Every in-scope requirement has at least one case; every High-risk area has negative and boundary cases.
  10. Select regression. Changed areas + their dependents + smoke of critical journeys. Full regression only for High-risk releases or when impact analysis is unreliable.
  11. Report with the Output template; log defects with the bug template during execution.

Rules

Risk score -> depth:

ScoreDepth
6-9 HighAll relevant techniques, negative + boundary + state cases, exploratory charter, automated regression, named sign-off owner
3-4 MediumRequirements-based cases, key boundaries and negative paths, automate if repeated
1-2 LowHappy path and smoke, rely on existing automation

Level selection:

Failure to catchLowest useful level
Calculation, parsing, branching rulesUnit
SQL, ORM mapping, migrations, serialisation, queue or cache wiringIntegration against the real dependency (container)
Request/response shape between servicesContract
Authorisation per endpoint and roleAPI / integration
Multi-step journey across UI and backendE2E (critical journeys only)
Layout and visual regressionsVisual snapshot
Unknown unknowns, usability, odd combinationsExploratory

Technique selection:

Input or behaviourTechnique
Ranges, lengths, quantities, datesEquivalence partitions + boundaries (min-1, min, max, max+1, empty, null)
Combinations of conditions with different outcomesDecision table, one case per rule column
Lifecycle or status fieldState transition: every valid transition, invalid transitions, guards
Many independent parameters (browser x OS x locale x role)Pairwise instead of the full cartesian product
WorkflowsScenario: main, alternate and exception flows
AnythingError guessing: whitespace, unicode/emoji, RTL, very long input, double submit, back/refresh mid-flow, two tabs, session expiry, slow or offline network, timezone/DST, leap day, rounding

Gotchas:

  • E2E is the slowest and flakiest level. Keep it to critical journeys; never repeat in E2E what unit or integration tests already prove.
  • Pass rate and test count are not coverage. Report requirement coverage and risk coverage.
  • Test the permission matrix explicitly: each role x each sensitive action, plus another tenant's or user's resource (IDOR).
  • Test upgrade and migration from realistic existing data and the rollback path, not only a fresh install.
  • Feature flags: test on, off and the switch while users are mid-session.
  • Severity (impact) and priority (urgency) are independent: a logo typo is S4/P1; a crash in a rarely used export may be S2/P3.

Default entry criteria: build deployed to the test environment, smoke passes, test data ready, requirements stable enough to test, blockers from the previous cycle fixed. Default exit criteria (tighten for High risk): all High-risk cases executed and passed; no open S1/S2; every S3 triaged with an owner; 100% traceability for in-scope requirements; regression green; residual risks accepted in writing by the owner.

Severity scale (priority P1-P4 is set by the product owner from severity and business context):

SeverityMeaning
S1 CriticalData loss or corruption, security breach, outage, core journey blocked with no workaround
S2 MajorCore function broken with a painful workaround, wrong money or data shown
S3 MinorNon-core function broken, or easy workaround
S4 TrivialCosmetic, copy

Safety gates

  • Never use real customer personal data outside production. Use synthetic or irreversibly masked data; ask before copying any production data.
  • Do not test against production, or with live payment, email or SMS providers, without explicit approval. Use sandboxes and allowlisted recipients.
  • Confirm with the environment owner before destructive, data-reset or load tests on shared environments.
  • Waiving exit criteria (shipping with open S1/S2) is a named human decision. Record it; never make it.
  • Redact secrets, tokens and personal data from screenshots, logs and HAR files attached to bug reports.

Output

# Test plan: <feature/release>   Build: <version/commit>   Owner: <name>
Scope: in <...> | out <... because ...> | assumptions <...>
Risks:
| Area | Impact | Likelihood | Score | Depth | Levels / techniques |
Approach: unit / integration / contract / API / E2E / exploratory / non-functional (or N/A because ...)
Environments and data: <env, accounts per role, data, flags, stubs>
Entry criteria: <...>   Exit criteria: <...>
Traceability: | Req ID | Case IDs | Result | Bugs |
Open questions and coverage gaps: <...>

Test case:

ID: TC-<area>-<n>   Title: <behaviour + condition, e.g. "Rejects transfer above daily limit">
Req: <ID>  Risk: High|Med|Low  Level: <unit/API/E2E>  Technique: <BVA/decision table/...>
Preconditions: <role, data, flags>
Steps: 1. ...  Expected: <observable outcome>
Automate: yes|no (<reason>)

Bug report (one defect per report; search for duplicates first; facts, no blame):

Title: <Component>: <what fails> when <condition>
Environment: build/commit, URL, browser/OS/device, role, flags
Steps: 1. ... (minimal, reproduced twice from a clean state)
Expected: ... (cite the requirement)   Actual: ... (exact error text, request ID, timestamp)
Frequency: always | x of y   Severity: S1-S4   Priority: P1-P4 (owner sets)
Evidence: screenshot/video, logs, HAR (redacted)   Notes: first bad build, workaround, related bugs

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.