mastermind-test-impact

mastermind-test-impact is a skill for Codex from xcrft/mastermind. It costs 60 tokens per session (520 once invoked), scanned A, original, MIT.

A test-selection workflow that uses a code graph to suggest tests related to recent changes. A code graph maps relationships such as which functions call which other functions.

In plain words
What is it for?
Use it after changing code to find direct, indirect, or heuristic test candidates and decide the order for running focused tests before the full suite.
Why use it?
It focuses early feedback on likely affected tests while keeping the repository's complete test gate as the final check. It also distinguishes proven links from filename-based guesses.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it after changing code to find direct, indirect, or heuristic test candidates and decide the order for running focused tests before the full suite.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xcrft/mastermind/mastermind-test-impact
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xcrft/mastermind --skill mastermind-test-impact
Clone the repo
git clone --depth 1 https://github.com/xcrft/mastermind

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mastermind-test-impact

README.md
[![agentmods](https://agentmods.dev/badge/skills/xcrft/mastermind/mastermind-test-impact/github.svg)](https://agentmods.dev/skills/xcrft/mastermind/mastermind-test-impact)
Your own site
<a href="https://agentmods.dev/skills/xcrft/mastermind/mastermind-test-impact"><img src="https://agentmods.dev/badge/skills/xcrft/mastermind/mastermind-test-impact/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mastermind-test-impact

Your own site · 80×15
<a href="https://agentmods.dev/skills/xcrft/mastermind/mastermind-test-impact"><img src="https://agentmods.dev/badge/skills/xcrft/mastermind/mastermind-test-impact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 520 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.00520
Opus 5.5 $0.00024 $0.00208
Sonnet 5.5 $0.00012 $0.00104
Haiku 4.5 $0.00006 $0.00052

Measured 1mo ago against content hash 653732086d03, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mastermind-test-impact scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/workflow/mastermind-test-impact/SKILL.md · 48 lines

What it actually says

Mastermind Test Impact

Use deterministic candidates to prioritize feedback. Never treat them as proof that omitted tests are unnecessary.

Workflow

  1. Choose the same trusted baseline and fresh index used for change analysis. Run mastermind status first. Stop on index_stale unless re-indexing is authorized; never infer candidates from a stale graph.

  2. Run mastermind impact --since REF --format json, or call mmcg_test_impact for the exact test projection.

  3. Reject a response that omits either the focused_tests_do_not_replace_full_gate or test_candidates_are_static_and_do_not_prove_execution_or_assertion_coverage caveat.

  4. Group candidates in this order:

    • direct: a changed test symbol at depth 0 or a graph-linked test at depth 1;
    • transitive: a graph-linked test at greater depth;
    • heuristic: a same-component candidate identified by a test filename or explicit test attribute, without graph evidence linking it to the change in this response.
  5. For each test, retain file, symbol, line, depth, confidence, changed-symbol seeds, and structured evidence. Preserve same_component_test_attribute for inline attribute matches and same_component_test_filename for test-like paths. An attribute identifies a test candidate, not coverage of the change. Explain collisions or weak language edges.

  6. Run focused tests from high to low confidence for fast feedback, then run every project-required phase/final gate.

Do not invent framework commands. Discover them from repository configuration and the task spec. Do not call a heuristic candidate “covered”. If graph and heuristic work were skipped with work_limit, report that no classified candidates are available. A separately labeled fallback may widen by changed modules and repository-owned test commands, but it is not direct, transitive, or heuristic response evidence. Always retain the full gate.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +2 lines 653732086d03
  2. 1mo ago Changed · +5 lines 7bbf3b7313cc
  3. 2mo ago First seen · 41 lines · 60 tokens per session scan A 5981b4abf672

Subscribe to this mod's changes

mastermind-test-impact is a skill published in the GitHub repository xcrft/mastermind (13 stars, last pushed 2d ago), licensed MIT. It adds 60 tokens to every session and 520 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.