Compute a basis set of independent execution paths from a control-flow graph and derive tests from them.
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
control-flow graph
cyclomatic complexity if available
code or pseudo-code
Deliverables
independent paths
test set derived from basis paths
complexity note
residual risk note
Operating procedure
Build or use a CFG of the target logic.
Estimate cyclomatic complexity and identify independent basis paths.
Design tests that exercise each selected independent path.
State what complexity implies about residual risk.
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
cfg-builder
path-coverage-designer
statement-coverage-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 claim every path is covered just because basis paths are.
Do not skip CFG quality.
Do not ignore complexity warnings.
Minimum output skeleton
## Summary
## Findings
## Structured outputs
## Coverage / rationale
## Assumptions
## Open questions
## Recommended next skill
1---2name: basis-path-tester3description: basis-path-tester4---5# basis-path-tester67## Purpose8Compute a basis set of independent execution paths from a control-flow graph and derive tests from them.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- control-flow graph17- cyclomatic complexity if available18- code or pseudo-code1920## Deliverables21- independent paths22- test set derived from basis paths23- complexity note24- residual risk note2526## Operating procedure271. Build or use a CFG of the target logic.282. Estimate cyclomatic complexity and identify independent basis paths.293. Design tests that exercise each selected independent path.304. State what complexity implies about residual risk.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- cfg-builder40- path-coverage-designer41- statement-coverage-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 claim every path is covered just because basis paths are.51- Do not skip CFG quality.52- Do not ignore complexity warnings.5354## Minimum output skeleton55```md56## Summary57## Findings58## Structured outputs59## Coverage / rationale60## Assumptions61## Open questions62## Recommended next skill63```
Run npx skillmds@latest add 45ck/basis-path-tester 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.
basis-path-tester 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.