Design tests that execute each decision outcome, including true and false branches and equivalent multi-way alternatives.
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
code or pseudo-code
CFG if available
branch conditions
Deliverables
branch coverage tests
branch map
missed-branch notes
coverage rationale
Operating procedure
Identify every decision point and each possible outcome.
Design tests that force each branch outcome.
Distinguish branch coverage from statement coverage when branches share statements.
Document branches that cannot be forced and why.
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
statement-coverage-designer
path-coverage-designer
mc-dc-test-designer
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 miss false branches.
Do not assume branch coverage proves condition independence.
Do not ignore exception or default paths where relevant.
Minimum output skeleton
## Summary
## Findings
## Structured outputs
## Coverage / rationale
## Assumptions
## Open questions
## Recommended next skill
1---2name: branch-coverage-designer3description: branch-coverage-designer4---5# branch-coverage-designer67## Purpose8Design tests that execute each decision outcome, including true and false branches and equivalent multi-way alternatives.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- code or pseudo-code17- CFG if available18- branch conditions1920## Deliverables21- branch coverage tests22- branch map23- missed-branch notes24- coverage rationale2526## Operating procedure271. Identify every decision point and each possible outcome.282. Design tests that force each branch outcome.293. Distinguish branch coverage from statement coverage when branches share statements.304. Document branches that cannot be forced and why.3132## Quality gates33- Be explicit about infeasible, unreachable, or assumption-heavy cases.34- Prefer lean, justified test sets over exhaustive-looking noise.35- Keep expected outcomes observable and tied back to rules or logic.36- Show why each test exists, not just the test data.3738## Handoff targets39- statement-coverage-designer40- path-coverage-designer41- mc-dc-test-designer4243## Output style44- Be explicit about uncertainty, infeasibility, and residual risk.45- Prefer compact, explainable artifacts over bloated lists.46- Tie tests back to rules, logic, or structure.47- Make expected outcomes observable.4849## Failure modes to avoid50- Do not miss false branches.51- Do not assume branch coverage proves condition independence.52- Do not ignore exception or default paths where relevant.5354## Minimum output skeleton55```md56## Summary57## Findings58## Structured outputs59## Coverage / rationale60## Assumptions61## Open questions62## Recommended next skill63```
Run npx skillmds@latest add 45ck/branch-coverage-designer 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.
branch-coverage-designer 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.