blackbox-cause-effect

Derives test cases from cause-effect graphs and classification trees for black-box testing.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/Hakkadaikon/hymme --skill blackbox-cause-effect-hakkadaikon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: blackbox-cause-effect
Source: https://github.com/Hakkadaikon/hymme/tree/main/skills/blackbox-cause-effect
Command: npx skills add https://github.com/Hakkadaikon/hymme --skill blackbox-cause-effect-hakkadaikon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When input conditions have complex logical relationships or inputs span multiple independent dimensions, hand-written test cases easily miss combinations or include impossible ones. This Skill provides two black-box techniques—Cause-Effect Graphing and the Classification Tree Method—that systematically reduce combination spaces into a complete, non-redundant test set. ## Core Features & Use Cases - Cause-Effect Graph: Models inputs (causes) and outputs (effects) with AND/OR/NOT logic gates, then mechanically derives a decision table so no feasible rule is missed and infeasible combinations are excluded. - Classification Tree Method: Structures multi-dimensional inputs (e.g., format × size × color mode) into classification axes subdivided into equivalence classes, then selects leaf combinations using full, pairwise, or priority strategies. - Coverage criteria and gap checks: Defines explicit completeness rules—every feasible decision-table rule covered, each cause shown to affect the result, every leaf appearing at least once—so coverage holes can be detected by reverse-checking the test set. - Use Case: Testing an ATM withdrawal rule where card validity, balance, and daily limit combine logically; the cause-effect graph derives exactly the four decision-table rows needed, expressed as a Vitest it.each table. ## Quick Start Ask the AI to apply the cause-effect graph or classification tree method from this catalog to derive test cases for a function with complex input logic.

Frequently Asked Questions about blackbox-cause-effect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design test cases for complex input logic?

Use a cause-effect graph: map input conditions (causes) and outputs (effects) with AND/OR/NOT gates, then mechanically convert the graph into a decision table. Each feasible rule in the table becomes one test case, ensuring no combination is missed.

What is the classification tree method in testing?

The classification tree method splits test inputs into independent classification axes, subdivides each axis into equivalence classes, and selects leaf combinations as test cases. It structures equivalence partitioning across multiple dimensions and pairs well with pairwise strategies to control explosion.

When should I use a cause-effect graph instead of a decision table?

Use a cause-effect graph when condition logic is complex enough that hand-writing a decision table risks missing combinations. If the logic is simple, skip the graph and write the decision table directly, since graph construction adds cost.

How do I avoid test case explosion with classification trees?

Avoid taking all leaf combinations; instead apply a selection strategy such as pairwise (2-way) coverage or priority-based selection. Verify at minimum that every leaf appears at least once across the chosen cases.

Why do cause-effect graph tests sometimes include impossible cases?

Impossible cases appear when constraints between causes (exclusion, inclusion) are not reflected in the graph. Record these constraints during graphing so infeasible rows are removed from the derived decision table before writing tests.