mg-probe

mg-probe is a skill for Claude Code from MadGraphTeam/MadAgents. It costs 118 tokens per session (1,083 once invoked), scanned A, original, MIT.

A runtime-testing skill for checking a proposed MadGraph setup by running it against explicit expectations. It includes both expectations derived from the setup and expectations derived independently from the physics question.

In plain words
What is it for?
Use it before or after running MadGraph to test event generation, diagram expectations, non-zero results, and other runtime behavior.
Why use it?
It can reveal setups that parse or run successfully but produce the wrong process, diagram count, or physical result.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it before or after running MadGraph to test event generation, diagram expectations, non-zero results, and other runtime behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/madgraphteam/madagents/mg-probe
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 MadGraphTeam/MadAgents --skill mg-probe
Clone the repo
git clone --depth 1 https://github.com/MadGraphTeam/MadAgents

Made for: Claude Code.

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 mg-probe

README.md
[![agentmods](https://agentmods.dev/badge/skills/madgraphteam/madagents/mg-probe/github.svg)](https://agentmods.dev/skills/madgraphteam/madagents/mg-probe)
Your own site
<a href="https://agentmods.dev/skills/madgraphteam/madagents/mg-probe"><img src="https://agentmods.dev/badge/skills/madgraphteam/madagents/mg-probe/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 mg-probe

Your own site · 80×15
<a href="https://agentmods.dev/skills/madgraphteam/madagents/mg-probe"><img src="https://agentmods.dev/badge/skills/madgraphteam/madagents/mg-probe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,083 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.00118 $0.01083
Opus 5.5 $0.00047 $0.00433
Sonnet 5.5 $0.00024 $0.00217
Haiku 4.5 $0.00012 $0.00108

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

Security

Grade A, and why

mg-probe 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.

madagents/.claude/skills/mg-probe/SKILL.md · 45 lines

How it starts

The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/mg-probe

Source-walking by consultants is the load-bearing verification. The probe is the runtime check, dispatched adversarially: given a target state of what should be true if the spec is correct, the probe finds where running MadGraph deviates from it.

Frame the dispatch as "find what's wrong with running this," not "confirm the consultant claims." Adversarial framing produces different probes — they try to break expectations, including ones the dispatch did not name.

Writing well-formed expectations

Expectations come in two kinds, and the list must carry at least one of the second:

  • Spec-derived — what the assembled spec implies should happen ("this generate line implies N diagrams"). A spec-derived match only confirms the spec is internally what it claims; a spec that parses and runs but computes the wrong observable still matches its own spec-derived expectations.
  • Target-derived — what a correct setup for the question produces, computed from the physics of the request independently of the assembled spec: the expected signal topology / diagram count for the requested process, the order-of-magnitude σ for the requested observable, non-zero-ness in the kinematically allowed region. The physics regime classification is the natural source. A target-derived expectation is what makes a wrong-but-runnable spec deviate — a contaminated form whose σ is orders of magnitude off the physics target contradicts the anchor even though it matches its own spec.

Label each expectation spec-derived or target-derived; a list with only spec-derived expectations tests nothing a wrong spec would fail.

Plain-prose claims about what MadGraph should do, observable by running, file inspection, grep, or launch:

  • "generate p p > h j j QCD=0, (h > w+ w-, w+ > ta+ vt, w- > ta- vt~) should produce 87 diagrams, NEXTERNAL=8, IDUP showing tau+ nu_tau tau- nu_tau~, and gForceBW=1 for both W± propagators in decayBW.inc."
  • "No 'decay discarded' or 'no phase space' warnings in stdout."
  • "matrix1_orig.f contains zero Yukawa-Hττ vertex calls (no FFS4.*GC_99.*MDL_MH hits) — Yukawa channels excluded by chain syntax."
  • "At bwcutoff=50 with MH=100, σ is non-zero — the BW window covers the W* phase space."
  • "The integrator survives launch with block smeft 35 1.0 and -massless restriction defaults — no multi-channel crash."

Read the full file on GitHub · 45 lines

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 First seen · 45 lines · 118 tokens per session scan A 42dd635a9bd8

Subscribe to this mod's changes

mg-probe is a skill published in the GitHub repository MadGraphTeam/MadAgents (14 stars, last pushed 2mo ago), licensed MIT. It adds 118 tokens to every session and 1,083 once invoked, about $0.0005 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-09-03.