Generate tests based on likely developer mistakes, common defect patterns, and known fragility in the design or code.
Trigger this skill when
You need disciplined test design rather than ad hoc case generation.
You need to justify why a test set is sufficient.
You want a reusable artifact that can feed automation later.
Expected inputs
requirements or code
defect history if available
risk hotspots
common bug patterns
Deliverables
fault hypotheses
targeted tests
bug pattern mapping
risk-ranked defect probes
Operating procedure
Identify likely mistake patterns such as off-by-one, null handling, logic inversion, stale state, and incorrect defaults.
Map each fault hypothesis to a focused test or probe.
Rank hypotheses by plausibility and impact.
Prefer defect-seeking tests over generic repetition.
Quality gates
Be explicit about infeasible, unreachable, or assumption-heavy cases.
Prefer lean, justified test sets over exhaustive-looking noise.
Keep expected outcomes observable and tied back to rules or logic.
Show why each test exists, not just the test data.
Handoff targets
negative-test-designer
coverage-goal-planner
review or inspection packs later
Output style
Be explicit about uncertainty, infeasibility, and residual risk.
Prefer compact, explainable artifacts over bloated lists.
Tie tests back to rules, logic, or structure.
Make expected outcomes observable.
Failure modes to avoid
Do not invent exotic faults while ignoring common ones.
Do not produce unranked lists with no rationale.
Do not omit the link from fault hypothesis to concrete test.
Minimum output skeleton
## Summary
## Findings
## Structured outputs
## Coverage / rationale
## Assumptions
## Open questions
## Recommended next skill
1---2name: fault-based-test-ideator3description: fault-based-test-ideator4---5# fault-based-test-ideator67## Purpose8Generate tests based on likely developer mistakes, common defect patterns, and known fragility in the design or code.910## Trigger this skill when11- You need disciplined test design rather than ad hoc case generation.12- You need to justify why a test set is sufficient.13- You want a reusable artifact that can feed automation later.1415## Expected inputs16- requirements or code17- defect history if available18- risk hotspots19- common bug patterns2021## Deliverables22- fault hypotheses23- targeted tests24- bug pattern mapping25- risk-ranked defect probes2627## Operating procedure281. Identify likely mistake patterns such as off-by-one, null handling, logic inversion, stale state, and incorrect defaults.292. Map each fault hypothesis to a focused test or probe.303. Rank hypotheses by plausibility and impact.314. Prefer defect-seeking tests over generic repetition.3233## Quality gates34- Be explicit about infeasible, unreachable, or assumption-heavy cases.35- Prefer lean, justified test sets over exhaustive-looking noise.36- Keep expected outcomes observable and tied back to rules or logic.37- Show why each test exists, not just the test data.3839## Handoff targets40- negative-test-designer41- coverage-goal-planner42- review or inspection packs later4344## Output style45- Be explicit about uncertainty, infeasibility, and residual risk.46- Prefer compact, explainable artifacts over bloated lists.47- Tie tests back to rules, logic, or structure.48- Make expected outcomes observable.4950## Failure modes to avoid51- Do not invent exotic faults while ignoring common ones.52- Do not produce unranked lists with no rationale.53- Do not omit the link from fault hypothesis to concrete test.5455## Minimum output skeleton56```md57## Summary58## Findings59## Structured outputs60## Coverage / rationale61## Assumptions62## Open questions63## Recommended next skill64```
Run npx skillmds@latest add 45ck/fault-based-test-ideator in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
fault-based-test-ideator It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
45ck (@45ck) published this skill. Their other Agent Skills are listed on their SkillMD profile.