agentsclimarketplace

Test design

Skill hashtagf/skills/skills/test-design

SOP for designing and running software tests at the right depth — test scenarios, test case checklists, test plans, coverage audits, and bug reports — via a 4-level system (L1 smoke → L4 critical) that adapts to the kind of work (new feature, bugfix, API-only, third-party integration, data migration, auth/payment, refactor, report/export, realtime, mobile). Use this skill whenever the user mentions test cases, testcase, test scenario, QA, test plan, UAT, regression, smoke test, acceptance criteria, coverage, bug report, or says things like "ออกแบบเทสเคส", "เขียน test case", "ทำ test scenario", "วางแผนทดสอบ", "ตรวจว่าเทสครบไหม", "ครอบคลุมหรือยัง", "เขียน checklist ให้ QA", "ทำ SOP การเทส" — even when they only ask for "a few test cases" for one small feature, because choosing the right level and the right path types (happy / alternate / error / edge / security) is exactly what separates a checklist that catches bugs from one that only proves the happy path works. Also use it when reviewing existing test docs for gaps, when writing bug reports, and when pushing scenarios into ClickUp / Jira as a task tree. This is about deciding and documenting *what* to verify — not about writing or debugging automated test code (jest / vitest / playwright specs, mocks, flaky CI), which is a different job.From its SKILL.md

Install
npx -y skills add hashtagf/skills --skill test-design

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

16.5 KB, as published. Nobody here has run it

Test Design

Design test documentation at the right depth — not 60 scenarios for a single button, and not 5 lines for an authentication system.

The problem this solves: most teams write happy-path tests because those are the easiest to imagine, then real bugs show up in error / edge / security paths in production. The 5 path types and 4 levels here force coverage in every direction without writing more than the work warrants.


Step 1 — Pick the level

Infer it from the request; ask only when genuinely ambiguous. If you can infer it, say which level you picked and why.

LevelSignalsDeliverableEffort
L1 Smokebugfix, hotfix, small change, "just check nothing broke"one checklist (5–15 items)15–30 min
L2 Modulenew feature, one flow / one screen, "write test cases for this"scenario specs + a checklist per scenariohalf a day
L3 Systemepic / release / several screens, "test the whole X system"several modules + Edge paths + NFR + traceability1–2 days
L4 Criticalauth, payment, permissions, personal data, migration, "is our coverage complete?"L3 + full Security paths + Test Plan + Summary Report3–5 days

Auto-escalation rule: if the work touches money, permissions, personal data, or authentication, use L4 even when the user asked for "just a few test cases". State the reason briefly and offer the option to scale down — let them decide. Never scale down silently: the damage from missing something here is not symmetric with the time saved.

Per-level deliverables and closing criteria live in references/levels.md.

What each level costs

Measured on the reference runs (one agent, Sonnet, no human in the loop). Use it to set expectations before starting, and to notice when you're overshooting the level.

LevelOutputWorking timeFast path
L1~400 words, 1 file~5 minwrite it straight from this file — read no reference files
L22–3k words, 2–3 files~10 minread templates.md only; hand-write rather than scaffold a single module
L35–8k words20–30 minscaffold, then fill module by module
L414k+ words, 15 files25–40 minsee the wave rule below — do not try to fill everything in one pass

Two habits keep this fast without losing coverage:

  • Never write the same sentence twice. Criteria go in the spec; checklists are generated from them (scripts/checklist.py). Rules shared by several scenarios go once in the module overview and get referenced by name, not repeated per scenario.
  • At L4, write the tail on demand. Deliver the full scenario list plus the highest-risk modules written out completely; state plainly that the remaining modules are listed but not yet specced, and write each one when its turn to be run arrives. A 39-scenario set written in one sitting mostly ages on disk — teams rarely run more than a few modules per sprint.

Step 2 — Pick the work type

The work type determines which path types are mandatory and which template sections you can drop.

Work typeStarting levelMandatoryCan drop
New feature (UI + API)L2–L3Happy, Error—
Bugfix / hotfixL1Confirmation + regression of the parent scenariofull specs
API / backend onlyL2Error (every status code), Security (authz)UX/UI
UI / redesign onlyL2NFR a11y + compatibilitydetailed business logic
Third-party integrationL3Edge (timeout, outage, retry, duplicate webhook)—
Auth / payment / permissionsL4full Security—
Data migration / batchL3Edge (idempotent, partial failure, rollback)UX/UI
Refactor (no behavior change)L1Regression sweep of every Happy path touchednew scenarios
PerformanceNFR-onlybefore/after numbersscenarios
Report / exportL2Edge (empty, huge, timezone, encoding)—
Realtime / chatL3Edge (reconnect, duplicate, loss, ordering)—
Mobile appL2–L3NFR device matrix, offline, permission dialogs—

Presets per work type — the module list you usually need plus the edge cases teams forget most often — are in references/work-types.md.

Step 3 — Cover every direction with path types

Five values only. One scenario carries exactly one value: if it feels like two, split it, because in practice each type is run differently and often by a different person.

TypeDefinitionDeciding signal
Happy Paththe main line, every input correctat most one per flow
Alternate Pathalso succeeds, but by another routeend state = success
Error Patha normal user does something wrong that the system already handlesactor has no bad intent
Edge Pathboundary values, timing, concurrency, network, multiple tabsrare conditions, no bad intent
Security Patha deliberate attackeryou can write the Persona as an Attacker

Tie-breakers:

  • Error vs Security — "does the person doing this mean harm?" Forgot their password = Error. Hammering it with a script = Security.
  • Error vs Edge — "has the system already written an error message for this?" A designed message exists = Error. Nobody thought of this state (token expires while the form is open) = Edge.

Target mix at L3–L4: Happy ~20% / Alternate ~20% / Error ~30% / Edge ~15% / Security ~15%. If Happy exceeds 40%, coverage is still one-directional.

Where these five come from, how they differ from ISTQB test levels/types, and the design techniques behind them (boundary value analysis, decision tables, state transition) are in references/taxonomy.md — read it when the user asks "how many kinds of testing are there" or when you need to justify this vocabulary to a team trained on the standards.


Rules that make the documents usable

Reasons are in parentheses — understanding the reason tells you when a rule can flex.

  1. Every acceptance criterion must be checkable by eye or by an API response. "The system must be fast" belongs in NFR with a number, or becomes "redirects within 1 second". (Uncheckable criteria force QA to guess, and guessed results aren't evidence.)
  2. Anything not visible from the screen goes in Business Logic / Rules — e.g. "store passwords with bcrypt cost ≥ 12". (It's a requirement for the developer and a review checkpoint, not something QA can tick.)
  3. The test checklist is the acceptance criteria 1:1 — nothing added, nothing removed. Write the criteria once and generate the checklists with scripts/checklist.py; verify with --check before delivering. (A failing item then points at exactly one criterion, and traceability needs no interpretation. Copying by hand looks harmless but measurably isn't: in the reference payment set, 16 of 25 scenarios had criteria silently shortened in the checklist — parenthetical conditions dropped — so the thing QA ticks stopped matching the thing the developer agreed to.)
  4. Confirm the scenario list with the work's owner before writing full specs. Send the table of IDs, names, and types first. (Writing 40 specs and then learning the scope was wrong is the most painful way to lose a day on this work.)
  5. Always write down what is out of scope. Anything you did not test needs a name in the document. (A document that doesn't say what was skipped reads as "everything is tested", which is more dangerous than having no document.)
  6. Never hand over a file with unfilled placeholders. Run grep -rn "TODO" <dir> before delivering. Scenario content — names, criteria, business rules — must be complete. A genuinely unknowable value (a staging URL that doesn't exist yet, an unscheduled date) may stay as an annotated placeholder in a plan table, but it must also appear as an open item in your reply — a placeholder nobody is told about is indistinguishable from an oversight. (A scaffold full of placeholders looks like finished work at a glance; that's how coverage gets over-reported.)
  7. Deliver large sets in risk-ordered waves. Above roughly 20 scenarios, fill the one or two highest-risk modules to 100% first — they double as the format sample for the team — then continue outward, and state in your reply which files are complete and which are not. (A single pass over 45 scenarios tends to run out of room halfway, and a half-filled set presented as done is worse than an honest partial one.)
  8. Every bug links back to a scenario and the criterion it broke. (That turns the bug into permanent regression coverage instead of something that disappears when the ticket closes.)
  9. Write the documents in the team's language. Check the PRD and existing tickets; if the team writes Thai mixed with English technical terms, write that. (The readers are QA, developers, and PMs — this is a working document, not a showcase.)
  10. With no PRD, write your assumptions down as a numbered list (A1, A2, …) in the index, reference them from the criteria that depend on them, and ask for confirmation before the set gets run. (You will have to assume things — token lifetimes, refund policy, who may do what. Numbered assumptions are correctable in one message; assumptions buried inside criteria get discovered only when QA reports a failure that was never a bug.)

Workflow

1. Determine level + work type       → tell the user what you picked and why
2. Gather inputs                     → PRD, Figma, API spec, permission matrix, old bugs
3. Draft the module + scenario list   → table of ID / name / type → confirm before continuing
4. Write the scenario specs           → templates in references/templates.md
5. Convert criteria → checklists 1:1  → one scenario = one test task
6. Push into the tracker              → references/clickup.md (4 tiers)
7. Audit the coverage                 → references/coverage-audit.md

Steps 3 and 7 are the two people skip most often, and they are what separates this from "writing a checklist off the top of your head".

Old bugs are excellent raw material

If the project has bugs in its tracker, read them before writing scenarios and turn each symptom into an acceptance criterion in the new set. You get regression coverage for free and can prove the old bug can't return. Real example: the bug "password reset succeeds but login fails afterwards" became the criterion "logging in with the new password succeeds immediately, and the old password no longer works".


Short example — criteria that work vs criteria that don't

Input: a delete button on a table row.

Doesn't work:

- [ ] deletes correctly
- [ ] the system is fast
- [ ] data is secure

Nobody knows what ticking these means, so the result isn't evidence of anything.

Works:

- [ ] clicking delete opens a confirmation modal — one click never deletes
- [ ] after confirming, the row disappears from the table without a refresh
- [ ] clicking delete 5 times quickly fires one request and shows no error
- [ ] deleting a row someone else already deleted shows "already removed", not a 500
- [ ] a user without delete permission sees no button, and calling the API directly gets 403

Five items covering Happy + Edge (double click, already-deleted) + Security (authz) for a single button — that's the shape of good output.


Scripts

scripts/checklist.py — write criteria once

python3 scripts/checklist.py 01-checkout.md --write   # generate/refresh the checklist blocks
python3 scripts/checklist.py *.md --check             # verify 1:1 before delivering (exit 1 on drift)

--check is the review gate: it catches criteria that exist in a spec but never reached the checklist QA ticks, which is how a criterion silently stops being tested.

scripts/scaffold.py — file skeletons

Generates the file skeleton for the chosen level. Use it once the scenario list is confirmed (step 3 done) so you don't retype headings:

python3 scripts/scaffold.py --out ./docs/test --level 3 --project "Zyra" \
  --module "Login:SC-LOGIN:5" --module "Register:SC-REG:6"

# domain presets with a standard module list
python3 scripts/scaffold.py --out ./docs/test --level 4 --preset auth --project "Zyra"
python3 scripts/scaffold.py --out ./docs/test --level 3 --preset payment --project "Shop"

# Thai-language skeletons for a Thai-speaking team
python3 scripts/scaffold.py --out ./docs/test --level 2 --lang th --module "Cart:SC-CART:4"

It writes skeletons only — the criteria and business rules depend on the real system, so you still write those. For a single module it is usually faster to hand-write the file than to scaffold it. Whatever you scaffold, rule 6 applies: no TODO may survive into delivery.


Reference map — what to read when

FileRead it when
references/levels.mddeciding the level, or checking what a level must deliver
references/work-types.mdyou know the work type and want its module list + commonly forgotten edge cases
references/taxonomy.mdthe user asks how many kinds of testing exist, or you must cite ISTQB / ISO 25010 / ISO 29119
references/templates.mdwriting modules / scenarios / checklists / bugs — copy-paste ready
references/planning-docs.mdL3–L4: test plan, risk matrix, environment spec, summary report
references/checklist-library.mdyou want ready criteria and edge cases per domain (form, list, upload, money, notification, realtime, export, RBAC, cron, NFR)
references/coverage-audit.mdthe user asks "is our coverage complete?", or you must review existing test docs
references/clickup.mdpushing work into ClickUp / Jira as a task tree
examples/auth-l4.mdyou want a finished L4 set as a reference point
scripts/checklist.pygenerating checklists from criteria, or verifying they're still 1:1
scripts/scaffold.pycreating the file skeleton for L2+ (skip it for a single module)

Common failure modes

SymptomFix
ten Happy Path items and nothing elsecheck the mix in step 3 — require Error + Edge before delivering
criteria that are feelings ("easy to use")move to NFR with a number, or restate as something visible on screen
one scenario with 30 stepssplit it — one scenario carries one intent
checklist doesn't match the criteriabuild the checklist from the criteria only, never from memory
nobody knows what has been testedtraceability matrix per references/coverage-audit.md
high-risk system tested at L1apply the auto-escalation rule in step 1
scaffolded files delivered with placeholdersrule 6 — grep -rn TODO before handing over
checklist quietly shorter than the criteriagenerate it (checklist.py --write), then gate on --check
L4 taking an hour and still unfinishedthe wave rule — highest-risk modules complete, tail on demand
beautiful docs nobody runsone scenario = one tickable task in the tracker, not a file nobody opens

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.