generate-test-ideas-and-cases
Skill1 starsChanged 8 days agoMITView on GitHub
Build a layered test matrix — unit, integration, contract, E2E, failure injection — with a requirement trace and coverage notes. Use when a design needs a test plan.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- customer-discovery-and-synthesisSkill
- define-success-metricsSkill
- draft-prdSkill
- prioritize-asksSkill
- slice-mvp-and-storiesSkill
- survey-designSkill
- deploy-plan-and-releaseSkill
- design-and-code-reviewsSkill
- pr-plan-and-rollback-notesSkill
- technical-design-and-breakdownSkill
- operational-health-reviewSkill
- scope-cut-and-tradeoffsSkill
- sprint-planning-and-capacitySkill
- sprint-retroSkill
- standup-executionSkill
- program-roadmap-and-depsSkill
- program-status-reviewSkill
- release-readiness-checkSkill
- risk-raid-and-mitigationsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Ask up to 3, then draft with [CONFIRM]:
- Very specific: line 44
Happy paths first, then their shadows: Every happy-path TC-n implies at least one failure-path row, or a stated reason why not.
- Very specific: line 50
Trace to requirements: Every REQ-n/AC-n from the input maps to ≥ 1 TC-n, or is listed in coverage notes as uncovered (with the reason).
≈ “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.
Files
generate-test-ideas-and-cases — layered test matrix
What it produces
A test plan bound to shared/output-schemas/test-plan-and-cases.md: a test matrix by layer —
Unit · Integration · Contract/API · End-to-End/Smoke · Non-Functional/Failure Injection — with
Scenario, Preconditions/Input, Expected Result, and Verification type per case, plus coverage
notes stating what is deliberately not covered.
RACI row
Test plan & cases — SDE A/R (shared/raci.md); PMT I · TPM I · SDM C.
Inputs required
- The feature/design being tested (paste or link)
- The failure modes worth inducing (from the design's §Failure Modes if run)
- The automation surface that exists: test frameworks, CI jobs
- Environment constraints (what cannot be tested end-to-end, and why)
Clarifying questions when inputs are missing
Ask up to 3, then draft with [CONFIRM]:
- Which layer does your team trust for regression today?
- What breaks loudly — and what breaks silently, and which layer catches silence?
- What is too expensive/flaky to automate — and may it be listed as manual?
Steps
- Pin the scope. Feature + design revision + what is explicitly out of test (with the reason — cost, flake, environment).
- Enumerate per layer. Rows in the fixed layers — Unit, Integration, Contract/API,
E2E/Smoke, Non-Functional/Failure Injection. Every layer heading appears even when empty:
"none —
<reason>", never a silent gap. - Happy paths first, then their shadows. Every happy-path
TC-nimplies at least one failure-path row, or a stated reason why not. Negative paths are not optional. - Name the injected fault. Failure-injection cases name the fault: timeout, 5xx, partial write, poison message, flag flipped mid-read. "Failure occurs" is not a case.
- Assign verification. Automated (framework + job) / manual (steps) / review (who). Each case states its type — "hopefully" is not a type.
- Trace to requirements. Every
REQ-n/AC-nfrom the input maps to ≥ 1TC-n, or is listed in coverage notes as uncovered (with the reason). - Coverage notes. What is not covered and why: cost, flake risk, environment. Silence here is the failure mode.
- Read-back pass. Layers all present; every happy path shadowed or excused; every case typed; no case asserting a number the inputs never supplied.
- Hand over. Emit the matrix ending with its Import-target block. Answer questions. Wait.
Output binding
shared/output-schemas/test-plan-and-cases.md.
Import target
Jira — the QA/test checklist. GitHub — the PR test plan / issue body. Confluence — the test spec page.
Worked example
tests/sde/generate-test-ideas-and-cases/fixture.md — full input + expected artifact
(synthetic). Recorded run: tests/results/run-2026-11-22-v0.1.0.md. Condensed shape:
Input: "Design: GET /status/{order_ref}, signed link, no PII unauthenticated.
Unit: pytest. Contract: schema tests in CI. E2E: playwright. Alerts: Grafana."
→ # Test plan — order-status self-service
## Matrix — TC-1 Unit: ref parse rejects malformed → 400 [automated]
TC-4 Contract: response matches schema, PII absent [automated]
TC-7 E2E: guest link → status renders [playwright]
TC-9 Failure injection: outbox poison → stale-state alert fires [manual+alert]
## Coverage notes — no prod E2E (env): carrier stub in CI instead
## Import target — Jira QA checklist; PR test plan; Confluence specDoes 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
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.

