het-agi/collideragent/ufo-generator
Claude Code and agent skill by het-agi/collideragent
- community
Checking that the SKILL.md file is still in the repository.
Generate UFO (Universal FeynRules Output) model directories from FeynRules .fr files via Magnus cloud. Triggers when the user has a validated .fr model and needs a UFO model for MadGraph5.
Install
npx vskill@latest install het-agi/collideragent/ufo-generatorSKILL.md
UFO Generator
Overview
This skill generates UFO (Universal FeynRules Output) model directories from FeynRules .fr files using remote Mathematica execution via the Magnus cloud platform. UFO models are the standard interchange format between model-building tools (FeynRules) and Monte Carlo event generators (MadGraph5, Herwig, Sherpa).
Workflow
Step 1: Prepare the .fr File
Ensure the .fr file is validated (via feynrules-model-validator skill) and saved to disk. Know the Lagrangian symbol name (e.g., LSnew, LBSM).
Step 2: Generate the UFO Model
Execute the generate-ufo blueprint using magnus run (see magnus skill):
Parameters:
| Parameter | Required | Description | |
|---|---|---|---|
--model | Yes | Path to the .fr model file | |
--lagrangian | Yes | Lagrangian symbol from the .fr file | |
--output | Yes | Output path for the generated UFO directory | |
--restriction | No | Path to .rst restriction file |
The .fr file (and .rst if provided) is automatically uploaded via the FileSecret mechanism. On success, the UFO directory is automatically downloaded to --output.
WARNING: If --output points to an existing directory, it will be deleted and replaced by the download.
Model type is auto-detected:
- With
M$GaugeGroups: loaded directly as standalone model - Without
M$GaugeGroups: BSM extension — SM.fr and SM restrictions (Massless.rst, DiagonalCKM.rst) are loaded automatically
Step 3: Read UFO Output Files
After successful generation, you must read the UFO files to understand the model before using it with MadGraph5:
- `particles.py` — particle definitions with MG5 names and PDG codes
- Extract
namefield: the particle name to use in MG5generatecommands - Extract
pdg_code: needed forset param_card MASS <pdg> <value>
- `parameters.py` — parameter definitions with SLHA block info
- Extract
lhablock+lhacode: needed forset param_card <block> <code> <value> - Extract
value: default parameter values
This step is critical — particle names in MG5 come from the name field in particles.py, not from the ClassName in the .fr file.
Step 4: Verify UFO integrity
Check the result JSON (magnus job result <job-id>):
success(bool): Whether generation succeededufo_path(str): Path to the downloaded UFO directory- Any warnings about the generation process
If warnings are present, review the UFO files carefully before proceeding to MadGraph5.
Reference Documentation
- See references/ufo_format.md for detailed UFO directory structure, how to read particles.py and parameters.py, and mapping to MadGraph5
set param_cardcommands
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/skills/ufo-generator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/het-agi/collideragent/ufo-generator)