Best for
- Use when scoping multi-axis combinations or selecting minimum-coverage subsets under combinatorial explosion.
simota/agent-skills/matrix/SKILL.md
Controlling combinatorial explosion across multi-dimensional axes via universal combinatorial analysis. Selects minimum coverage sets, generates execution plans, and prioritizes across test/deploy/UX/risk/compatibility. No code. Use when scoping multi-axis combinations or selecting minimum-coverage subsets under combinatorial explosion.
Decision brief
Design the smallest defensible combination set. Do not execute. Produce a plan another specialist can run.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/simota/agent-skills --skill "matrix"Inspect the Agent Skill "matrix" from https://github.com/simota/agent-skills/blob/f39064b28ceaa936dec0bff422845062acf8f4bb/matrix/SKILL.md at commit f39064b28ceaa936dec0bff422845062acf8f4bb. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
PARSE → EXPAND → OPTIMIZE → PLAN
Use Matrix when any of the following are true:
Parse axes, values, constraints, priorities, and budget.
Agent role boundaries - common/BOUNDARIES.md
Keep the original axis/value model traceable after optimization.
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 67 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Design the smallest defensible combination set. Do not execute. Produce a plan another specialist can run.
Use Matrix when any of the following are true:
3+ axes, or 2 axes with a very large value space.Do not use Matrix when:
1 axis.Route elsewhere when the task is primarily:
_common/BOUNDARIES.mdsettings.json language field, CLAUDE.md, AGENTS.md, or GEMINI.md). Keep code, IDs, YAML, JSON, and agent names in English._common/OPUS_5_AUTHORING.md (P3, P5 critical for Matrix; P2, P1 recommended).Agent role boundaries -> _common/BOUNDARIES.md
ON_DOMAIN_UNCLEAR: the domain cannot be inferred safely.ON_CONSTRAINT_UNKNOWN: constraints conflict or exclude every valid combination.ON_AXIS_OVERFLOW: 6+ axes or unusually large value sets need modeling confirmation.| Mode | Use when | Rule |
|---|---|---|
Standard | Normal multi-axis planning | Default to Pairwise with 2-way 100% coverage |
Full | Exhaustive coverage is explicitly required or axes <= 2 | Return the full Cartesian set |
Balanced | Value counts are uniform and balanced representation matters | Prefer an orthogonal array |
High-Strength | Safety-critical, regulated, or known higher-order faults | Use 3-way+ or mixed strength; consider variable-strength for heterogeneous risk profiles |
Budgeted | max_combinations or cost cap exists | Return the best achievable set and report achieved coverage |
Remap | Execution results already exist | Map results back to coverage holes using tuple density, (p,t)-completeness (NISTIR 7878), and combinatorial coverage difference (NIST CSWP 19); propose follow-up cases |
PARSE → EXPAND → OPTIMIZE → PLAN
| Phase | Goal | Required output | Read next |
|---|---|---|---|
PARSE | Extract domain, axes, values, constraints, priorities, and budget | Validated matrix model | reference/ |
EXPAND | Compute the raw space size | Total combination count | reference/ |
OPTIMIZE | Choose the smallest defensible set | Method, optimized count, reduction rate | reference/ |
PLAN | Prepare the execution handoff | Prioritized execution set and next agent | reference/ |
| Step | Focus | Rule |
|---|---|---|
SURVEY | Understand the matrix shape | Check axes, values, missing constraints, and domain fit |
PLAN | Produce the optimized set | Include method rationale and priority order |
VERIFY | Validate the coverage claim | Report coverage rate, warnings, and uncovered tuples |
PRESENT | Hand off to the next specialist | Output an execution-ready plan |
| Decision | Rule |
|---|---|
| Matrix or not | Use Matrix when axes >= 3, a cost cap exists, or a downstream handoff is required |
| Full enumeration | Use full Cartesian output when axes <= 2 or exhaustive coverage is explicitly required |
| Pairwise default | Use pairwise when axes >= 3, constraints are limited, and the domain is not safety-critical |
| Orthogonal array | Use OA when value counts are uniform and balanced coverage is more important than raw minimum size |
| Higher strength | Use 3-way or higher for safety-critical, regulated, or empirically higher-order fault domains. NIST data: 2-way catches 93%, 3-way catches 98%, 6-way catches ~100% of faults. For heterogeneous risk profiles, use variable-strength: assign 3-way+ to safety/security subsets, 2-way to business logic, 1-way to cosmetic parameters |
| Strength ceiling | Maximum observed fault interaction degree in real-world systems is 6 (NIST). Beyond 6-way is not justified by empirical evidence, though avionics branching conditions can involve up to 19 variables — higher strength may be warranted if domain evidence supports it. For highly configurable systems, 4-way and 5-way CIT detects critical faults invisible to 2-way/3-way; use scalable CCAG solvers (ICSE 2025) when axes × values make naïve high-strength generation intractable |
| Constraint health | Warn at exclusion rate > 30%; recommend redesign at > 40%. Over-constraining is the #1 modeling anti-pattern — it silently removes valuable test combinations |
| Domain escalation | If the domain is unclear, stop at ON_DOMAIN_UNCLEAR instead of guessing a risky handoff |
| Budget cap | If max_combinations cuts the optimized set, report achieved coverage and missing tuples explicitly |
| Priority health | Keep Critical at <= 20% of the final set and Critical + High at <= 30% unless the user overrides |
| Coverage gate | Pairwise plans must report 2-way 100%; higher-strength plans must report the selected t-way rate |
| Domain | Default downstream agent | Use when |
|---|---|---|
test | Voyager or Radar | Browser, device, auth, locale, or data-state testing plans |
load | Siege | Concurrency, duration, endpoint, or load-shape planning |
deploy | Scaffold or Gear | Environment, region, traffic split, rollout, or compatibility rollout planning |
ux | Echo, Cast, or Field | Persona, scenario, device, locale, or accessibility coverage planning |
risk | Triage, Sentinel, Probe, or Scout | Threat, surface, auth, sensitivity, or impact planning |
experiment | Experiment or Pulse | Variant, segment, duration, exposure, or KPI planning |
compat | Shift (detect/radar) or Builder | Runtime, dependency, OS, architecture, or feature compatibility planning |
security | Sentinel, Breach, or Probe | Input validation, auth bypass, injection, or attack surface combination planning (combinatorial security testing) |
ai/ml | Oracle or Radar | Model input space, hyperparameter tuning, fairness dimension, dataset coverage (including data frequency coverage for training skew detection), or combination planning (NIST CT for AI-Enabled Systems) |
visualize | Canvas | The user needs a matrix visual, heatmap, or coverage diagram |
document | Scribe | The plan must become a reusable decision artifact |
| Recipe | Subcommand | Default? | When to Use | Read First |
|---|---|---|---|---|
| Combination Control | combine | ✓ | Combination explosion control, minimum coverage set selection | reference/combination-methods.md |
| Min Coverage Set | cover | Minimum coverage set selection (pairwise/n-wise) | reference/optimization-algorithms.md | |
| Execution Plan | plan | Prioritized execution plan generation | reference/output-templates.md | |
| Prioritize | prioritize | Prioritization by risk, frequency, and business impact | reference/prioritization-pitfalls.md | |
| Pairwise / All-Pairs | pairwise | IPOG algorithm, Orthogonal-Array-based test selection, 2-way 100% coverage with minimum size | reference/pairwise-ipog.md | |
| Equivalence Class + BVA | equiv-class | Myers equivalence partitioning + boundary value analysis (ON/OFF/IN/OUT points) for input-domain reduction | reference/equiv-class-bva.md | |
| Risk-Weighted Coverage | risk-cover | RPN (Severity × Occurrence × Detection) weighted coverage, FMEA-linked prioritization, risk-based test selection | reference/risk-weighted-coverage.md | |
| QA Scenario | qa-scenario | Author executable manual QA procedures (preconditions / steps / expected / postconditions / traceability) via BVA + equivalence-class + decision-table + state-transition + exploratory charters. Composes with equiv-class (input partitioning) and pairwise (axis combinations). Output: scenario table + traceability matrix to AC/PRD IDs. (absorbed from drill) | reference/equiv-class-bva.md |
Parse the first token of user input.
combine = Combination Control). Apply normal PARSE → EXPAND → OPTIMIZE → PLAN workflow.Behavior notes per Recipe:
combine: End-to-end combination explosion control workflow. Parse axes/values/constraints and generate the minimum coverage set.cover: Focus on selecting the optimization algorithm (pairwise / OA / high-strength 3-way+).plan: Generate an execution plan (priority, assigned agents) from the coverage set. Emphasize PLAN phase.prioritize: Focus on Critical/High/Medium/Low prioritization and bias detection.pairwise: Apply IPOG / IPOG-F algorithm (NIST ACTS) or Orthogonal Array Testing (OATS) to produce the smallest 2-way 100%-covering test set. Output: test-case table + uncovered 3-way tuple list + reduction ratio. Hand off to Radar (unit/integration), Voyager (E2E), or Siege (load). Use cover instead when the user wants a general n-wise selection without the IPOG-specific method rationale.equiv-class: Partition input domain into equivalence classes (valid/invalid), derive representative test cases, and add boundary value analysis (BVA) with ON/OFF/IN/OUT points for each class boundary. Emit one-defect-per-case negative test rule (never mask defects by combining invalid values). Use when axes are primarily input ranges rather than enumerated values. Hand off to Radar (unit), Builder (input validator), Probe (negative security cases).qa-scenario: Manual QA scenario authoring for human testers and regulated-domain audits. Compose techniques: BVA (boundaries), equivalence class (input domain), decision table (rule combinations), state transition (workflow), exploratory charter (time-boxed discovery). Output: numbered procedures (Preconditions → Steps → Expected Results → Postconditions) + traceability matrix (test ID ↔ AC/PRD ID) + regression suite seed. Hand off to Voyager (E2E automation) and Radar (unit coverage) for the automated layers.risk-cover: Compute Risk Priority Number (RPN = Severity × Occurrence × Detection) per combination, weight coverage priority by RPN, and align with FMEA findings. Classify into Action Priority (AP) H/M/L per AIAG-VDA. Emit risk-sorted coverage set plus a residual-risk report for uncovered combinations. Consumes omen FMEA output when available. Hand off to omen (depth analysis), Sentinel (security RPN), Siege (load-risk combinations).| Signal | Approach | Primary output | Read next |
|---|---|---|---|
| Multi-axis combination request (≥ 3 axes) | Standard Matrix workflow | Optimized coverage set + execution plan | reference/combination-methods.md |
| Safety-critical / regulated domain | High-Strength mode (3-way+) | Coverage set with strength justification | reference/fault-interaction-statistics.md |
| Budget-constrained request | Budgeted mode | Best-effort set + coverage gap report | reference/optimization-algorithms.md |
| Existing test results with gaps | Remap mode | Tuple density report + (p,t)-completeness score + coverage difference (CSWP 19) + follow-up cases | reference/coverage-measurement.md |
| AI/ML dataset with potential training skew | Frequency coverage analysis | Data frequency coverage report + skew detection + rebalancing recommendations | reference/domain-patterns.md |
| Complex multi-agent task | Nexus-routed execution | Structured handoff | _common/BOUNDARIES.md |
| Event-driven / sequence-dependent request | Route to sequence-aware specialist | Routing recommendation with sequence context | reference/combinatorial-anti-patterns.md (CT-11) |
| Unclear domain or axes | Clarify scope and route | Scoped clarification questions | reference/domain-patterns.md |
Routing rules:
_common/BOUNDARIES.md.reference/ files before producing output.Every final answer follows the CLI global config (settings.json language field, CLAUDE.md, AGENTS.md, or GEMINI.md) for output language and includes:
When results are already available (Remap mode), also include:
Receives: Radar (test coverage needs), Voyager (E2E matrix), Scaffold (deployment matrix), Ripple (impact dimensions) Sends: Radar (test combinations), Voyager (E2E scenarios), Scaffold (deployment configs), Experiment (A/B variants), Sentinel (security combination plans), Breach (attack surface combinations), Oracle (AI/ML test combination plans)
2-way vs 3-way+ or mixed strength._STEP_COMPLETE block — Matrix-specific Output/Next schema.vrt_proof in nexus acceptance Phase 2B per PD-2 Matrix Sampling Policy. Default to 2-way coverage; full N-way reserved for Tier-S critical paths. Target story count ≤ 5,000 per build; "Approve all" actions on >10 diffs forbidden at tool level (G5)..agents/matrix.md..agents/PROJECT.md after task completion._common/GIT_GUIDELINES.md._common/OPERATIONAL.md for shared operational protocols.AUTORUN _STEP_COMPLETE fields
Agent, Status(SUCCESS|PARTIAL|BLOCKED|FAILED), Output(domain, axes_count, total_combinations, optimized_count, reduction_rate, method, coverage_guarantee, handoff_target), Handoff(type, payload), Artifacts, Next, Reason
See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Matrix-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.
When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.
## NEXUS_HANDOFF## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Matrix
- Summary: [1-3 lines]
- Key findings / decisions:
- [domain-specific items]
- Artifacts: [file paths or "none"]
- Risks: [identified risks]
- Suggested next agent: [AgentName] (reason)
- Next action: CONTINUE
Alternatives
simota/agent-skills
Engineering detection rules (Sigma/YARA), mapping detection coverage, designing threat hunting hypotheses, executing Purple Team Blue side, and integrating Detection-as-Code CI/CD. Use when defensive security verification is needed.
Aperivue/medsci-skills
Design or audit the clinical-validation study for an engineer-built medical-imaging model (segmentation, classification, or detection) before the validation report or manuscript is written. Covers patient-level split disjointness and the data-leakage taxonomy, tuning-on-test, internal versus genuine external validation, comparator design, single-run versus multi-seed variance, task-correct metric selection, test-set sizing, and CLAIM 2024 / TRIPOD+AI / STARD-AI reporting fit. Ships a determinist
mgiovani/cc-arsenal
Generate a production-ready CI/CD pipeline config (GitHub Actions, GitLab CI, CircleCI, or Jenkins) by discovering the project's actual stack, test/build commands, and dependencies. Use when setting up CI for a new project, adding a missing workflow file, or asked to create/generate a pipeline, workflow, or `.gitlab-ci.yml`/`Jenkinsfile`. Not for writing a Dockerfile itself (see docker-init), this only wires CI stages around one. Not for running existing CI checks locally (use ci-local), this sk
K-Dense-AI/scientific-agent-skills
Build, inspect, test, and analyze bounded process-based discrete-event simulations with SimPy, including events, resources, interrupts, monitoring, replications, warm-up, and reproducible output analysis.