Skip to content
Skills Library
Programming · Testing

pairwise-combinations

/pairwise-combinations

Generate a small all-pairs (pairwise) test set covering every pair of parameter values, with a bundled stdlib Python script, plus constraints to exclude impossible combinations. Use for configuration matrices (browser x OS x role x language), feature flags, or any form with many independent options.

Licence
MIT
Last repository change
10.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/pairwise.py

What it does and when to use it

Generate a small all-pairs (pairwise) test set covering every pair of parameter values, with a bundled stdlib Python script, plus constraints to exclude impossible combinations. Use for configuration matrices (browser x OS x role x language), feature flags, or any form with many independent options.

Original author description

Generate a small all-pairs (pairwise) test set covering every pair of parameter values, with a bundled stdlib Python script, plus constraints to exclude impossible combinations. Use for configuration matrices (browser x OS x role x language), feature flags, or any form with many independent options.

How it works

  1. Steps
  2. Output
  3. Notes
Original SKILL.md headings · 27 lines, 158 words
SKILL.md preview
---
name: pairwise-combinations
description: "Generate a small all-pairs (pairwise) test set covering every pair of parameter values, with a bundled stdlib Python script, plus constraints to exclude impossible combinations. Use for configuration matrices (browser x OS x role x language), feature flags, or any form with many independent options."
---

# Pairwise combinations

Most defects are triggered by one parameter or an interaction of two. Pairwise covers every pair with a fraction of the full matrix.

## Steps
1. List parameters and their values. Keep values representative (partitions), not exhaustive.
2. Write constraints for impossible combinations, e.g. `os=iOS & browser=Edge`.
3. Run the script:
   ```bash
   python "${CLAUDE_SKILL_DIR}/scripts/pairwise.py" params.json --format md
   ```
   `params.json`:
   ```json
   {"parameters": {"browser": ["Chrome","Firefox","Safari"], "role": ["admin","accountant","viewer"], "lang": ["fr","es","pt"]},
    "exclude": [{"browser": "Safari", "role": "viewer"}],
    "seed": 1}
   ```
4. Report the number of rows versus the full product, and the pairs that a constraint made impossible.
5. Add by hand any **high-risk triple** the business cares about (pairwise does not cover triples).

## Output
A Markdown or CSV table, one row per test configuration, and a one-line coverage summary from the script.

## Notes
The script is greedy (not optimal) but deterministic for a given seed; it verifies that every allowed pair is covered and exits non-zero otherwise.
Files in this package (2)
  • SKILL.md 1 KB
  • scripts/pairwise.py 5 KB

Versions

The database has no other skills named pairwise-combinations.

Database snapshot: 13.11.2026 · package version 373e891c2363 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100pairwise-test-case-generator
    Generates parameterized test inputs combining boundary-value, equivalence-class, and pairwise-combinatorial cases from a typed multi-input specification - produces the cross-product of cases up to a configurable strength (1-wise / 2-wise / N-wise) using all-pairs reduction so…
  • 100test-design-techniques
    When the user wants to design test cases systematically — boundary value analysis, equivalence partitioning, pairwise / combinatorial, state-transition, decision tables, classification trees, error guessing. Use when the user mentions "test design," "boundary tests,"…
  • 100pairwise
    Generate a minimal pairwise covering array for factors with arbitrary mixed level counts, using the bundled deterministic generator. TRIGGER — invoke when a debugging or testing plan has 3+ independent factors whose level counts do not fit the fixed taguchi arrays (a 4-level…
  • 100feature-flag-test-matrix-reference
    Feature-flag test matrix design: the flag-state combinatorics problem (N flags × M variants × K user-segments = N×M×K test cases), the canonical coverage strategies (pairwise interaction coverage; default-only smoke; full matrix; risk-driven matrix), the workflow for building…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.