madgraph

Run MG5_aMC LO/NLO workflows and produce cross-section summaries with reproducibility manifests.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/jinheungkim1216/madgraph-skill --skill madgraph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: madgraph
Source: https://github.com/jinheungkim1216/madgraph-skill/tree/main/skills/madgraph
Command: npx skills add https://github.com/jinheungkim1216/madgraph-skill --skill madgraph

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a safe, framework-agnostic bridge to MadGraph 5_aMC@NLO, letting an AI agent drive non-interactive MG5 runs while capturing a compact cross-section summary and a reproducible run archive on disk.

Core Features & Use Cases

  • Non-interactive MG driver: executes a single .mg5 script through a wrapper that logs stdout/stderr to a file and emits a concise structured summary.
  • Cross-section extraction and diagram handling: reads the run banner or summary.txt to report xsec and uncertainties, and can generate aggregated Feynman-diagram PDFs from completed runs.
  • Reproducibility and discovery: archives the exact script, stores a run_manifest.yaml with version, CLI args, and result, and supports per-run metadata for comparisons across runs.
  • MG discovery and safety: detects MG installations, validates required Python toolchain, and guards user input with a slot-check before running.

Quick Start

Write a minimal MadGraph 5 script, run it with the wrappers, and inspect the produced run banner for the cross-section.

Frequently Asked Questions about madgraph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate MadGraph 5_aMC cross-section calculations non-interactively?

You can automate MadGraph 5_aMC cross-section calculations by executing a single .mg5 script through a safe wrapper that logs output and emits a concise structured summary. This bypasses interactive prompts to produce reproducible run archives.

What is the best way to extract cross-sections and generate Feynman diagrams from MG5_aMC runs?

The best way to extract cross-sections and generate Feynman diagrams is by reading the run banner or summary.txt for xsec values and using a wrapper to aggregate diagram PDFs from completed runs.

Can I import UFO models and run NLO workflows with MadGraph automatically?

Yes, you can import UFO models and Standard Model definitions to run automated LO and NLO MadGraph workflows. The wrapper validates dependencies and executes the specified model imports non-interactively.

How do I ensure reproducibility when running MadGraph 5_aMC scripts?

To ensure reproducibility when running MadGraph 5_aMC scripts, the wrapper archives the exact script per run and stores a run_manifest.yaml containing version data, CLI arguments, and results for auditing and comparison.

Does the MG5_aMC wrapper validate Python toolchain dependencies before running?

Yes, the MG5_aMC wrapper validates the required Python toolchain and detects MadGraph installations prior to execution. It also guards user input with a slot-check to ensure a safe running environment.

Why do my non-interactive MadGraph runs fail to capture stdout and stderr logs?

Non-interactive MadGraph runs often fail to capture logs without a dedicated wrapper. This Skill uses a wrapper that logs stdout and stderr directly to a file and emits a structured summary for every run.