All skills
simota avatar

/matrix

@c805268
by shingo imotasimota/agent-skills85 stars
15

Controlling combinatorial explosion across multi-dimensional axes: minimum coverage sets, execution plans, test/deploy/UX/risk prioritization. Use when scoping multi-axis combinations.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/matrix

This session only. Nothing lands on disk.

referencecombination-methods.md

≈1.4k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Combination Methods

Purpose: Use this file when you need the method definitions, reduction expectations, and constraint thresholds behind Matrix planning.

Contents

  • Full enumeration
  • Pairwise
  • Orthogonal arrays
  • Higher-strength CIT
  • Constraint handling

Full Enumeration

Use the full Cartesian set when:

  • axes <= 2
  • the user explicitly requires exhaustive coverage
  • the domain is small enough that optimization would hide important cases

Formula:

total_combinations = ∏(value_count_per_axis)

Do not present full enumeration as the default once the matrix becomes expensive.

Pairwise

Definition:

  • Guarantee that every 2-way value pair appears at least once.

Use pairwise when:

  • axes >= 3
  • invalid pairs stay below roughly 30%
  • the domain is not safety-critical

Typical reduction:

Shape Full Pairwise Reduction
3 axes x 3 values 27 9 67%
4 axes x 3 values 81 9-12 85-89%
10 axes x 3 values 59,049 18-27 99%+

Default evidence baseline:

  • Pairwise usually detects 70-95% of interaction faults in non-safety-critical software.

Orthogonal Arrays

Use an orthogonal array when:

  • each axis has the same number of values
  • balanced representation matters as much as raw reduction
  • a fixed, well-known array is easier than greedy generation

Common arrays:

Array Rows Max factors Levels
L4 4 3 2
L8 8 7 2
L9 9 4 3
L16 16 15 2 or 5 factors x 4 levels
L27 27 13 3

Choose OA over pairwise when value-balance is more important than the smallest possible row count.

Higher-Strength CIT

Use 3-way+ coverage when:

  • the system is safety-critical or regulated
  • historical defects show higher-order interactions
  • the user explicitly requests stronger assurance

Recommended baseline:

Context Minimum Preferred
Normal application 2-way 2-way
High-quality or complex interaction domain 2-way 3-way
Safety-critical or regulated 3-way 4-way+

Size guidance:

Strength Relative size vs pairwise Typical use
2-way baseline general planning
3-way 2-3x high-risk interaction zones
4-way 3-5x regulated or safety-critical systems

Constraint Handling

Constraint types:

  • exclude: impossible or invalid combinations
  • conditional: one value forces another
  • require: combinations that must appear in the final set

Constraint health:

Exclusion rate Interpretation Action
< 30% healthy proceed
30-40% suspicious review model and business rules
> 40% over-constrained recommend redesign

Escalate when:

  • constraints remove every valid combination -> ON_CONSTRAINT_UNKNOWN
  • constraints are too complex for simple pairwise reasoning -> mention SAT-solver style tooling

Method Selection Summary

Situation Default choice
<= 2 axes Full
3+ axes, normal risk Pairwise
Uniform value counts, balanced representation needed OA
Safety-critical or higher-order evidence 3-way+ CIT
Heavy constraints plus budget Constrained, budgeted optimization
Highly configurable system, 3-way+ required at scale ScalableCA / CCAG solver (ISSTA 2024)
AI/ML input space coverage Combinatorial frequency coverage (NIST 2025)

Tool Landscape (2025–2026)

Tool Maintainer Key capability Notes
ACTS (Advanced Combinatorial Testing System) NIST t-way CA generation, constraints, variable strength Java; free; email acts@nist.gov. Received ICST 2023 Most Influential Paper award. Dataworks 2025 short course available.
PICT (Pairwise Independent Combinatorial Tool) Microsoft Pairwise + constraint, CLI Open source (GitHub microsoft/pict); CI/CD friendly via command-line
Hexawise Hexawise Inc. GUI, n-wise, Gherkin export 2025 AI Guidance feature (Sembi iQ): auto-generates parameter/value model from spec docs
CODEX NIST Coverage measurement, (p,t)-completeness Sep 2024 release; companion to ACTS for coverage gap analysis
Combination Frequency Difference tool NIST AI/ML dataset skew detection Sep 2024 release; measures training data frequency coverage imbalance
ScalableCA Academic (ISSTA 2024) Scalable 3-wise CCAG 38.9% smaller arrays than SOTA; 1–2 OOM faster; open research artifact

Sources:

CI/CD Integration Pattern (2025 Best Practice)

PICT (CLI) and ACTS (CLI / API) integrate directly into GitHub Actions / CI pipelines:

# Example: PICT in GitHub Actions
- name: Generate pairwise test matrix
  run: pict model.txt /o:3 > test-cases.txt
- name: Run test cases
  run: ./run-tests.sh test-cases.txt

Recommended CI gate: fail the build if 2-way coverage drops below 100% after constraint application. Use CODEX tool to verify coverage post-execution. Source: https://github.com/microsoft/pict

Source: SKILL.md on GitHub

1 warning13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The Matrix skill is a comprehensive tool for combinatorial testing design, providing robust frameworks for pairwise and high-strength interaction testing based on NIST and academic standards. It focuses on generating optimized execution plans and risk-weighted coverage sets without possessing any capabilities for code execution, network exfiltration, or unauthorized file access. No security risks were identified within the skill's instructions or reference materials.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    1/11 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c805268. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/matrix