edit-docs

edit-docs is a skill for Claude Code from MadGraphTeam/MadAgents. It costs 31 tokens per session (975 once invoked), scanned A, original, MIT.

A guided workflow for editing MadGraph documentation, which explains how to use the MadGraph physics software.

In plain words
What is it for?
Use it to create or reuse a writable documentation draft, review changes in parallel, verify factual claims, and revise the draft through multiple rounds.
Why use it?
It combines editing with style, structure, quality, and factual reviews, helping catch problems before the documentation is finalized.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to create or reuse a writable documentation draft, review changes in parallel, verify factual claims, and revise the draft through multiple rounds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/madgraphteam/madagents/edit-docs
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 edit-docs
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 edit-docs

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/madgraphteam/madagents/edit-docs"><img src="https://agentmods.dev/badge/skills/madgraphteam/madagents/edit-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 975 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.00031 $0.00975
Opus 5.5 $0.00012 $0.00390
Sonnet 5.5 $0.00006 $0.00195
Haiku 4.5 $0.00003 $0.00097

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

Security

Grade A, and why

edit-docs 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 3mo 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.

legacy/madagents_v2/claude_code/.claude/skills/edit-docs/SKILL.md · 108 lines

How it starts

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

Edit MadGraph Documentation

Guided workflow for editing the MadGraph documentation with parallel review and revision.

Task

$ARGUMENTS

If no task was given, ask the user what they want to change.

Workspace Setup

If a draft already exists from a previous edit, skip setup — reuse it.

Otherwise, call the get_doc_draft MCP tool to create a writable copy:

get_doc_draft("/workspace/docs_draft")

Workflow

Round 1: Edit

Invoke the doc-editor agent with the task. It edits the draft files at /workspace/docs_draft.

After it finishes, generate a diff using the MCP tool (this correctly handles the overview file which lives outside /madgraph_docs/):

get_doc_diff("/workspace/docs_draft")

Save the diff output to /workspace/docs_changes.diff.

Round 1: Parallel Review

Invoke ALL THREE reviews simultaneously — do not run them sequentially:

  1. doc-style-reviewer agent — review the changed files for style and formatting

  2. doc-quality-reviewer agent — review the changed files for structure, placement, duplication

  3. verifier agent — extract and verify factual claims from the changed content. Dispatch with:

    Extract and verify all factual claims from the documentation changes.

    • Diff of changes: /workspace/docs_changes.diff
    • Updated docs: /workspace/docs_draft/

    Read the diff to understand what was changed, then read the relevant files for full context. Only extract claims from new or changed content — do not extract claims from unchanged parts of the documentation.

    Doc-specific extraction rules:

    • Extract both factual claims AND executable code blocks.
    • Any fenced code block tagged as mg5, madgraph, mg5_amc, bash, or python that involves MadGraph commands must be extracted. For each, include the source file and section for context, what the code block accomplishes, and the full code block content.

    Doc-specific verification rules:

    • MG5 code blocks must be executed to confirm they run without errors.
    • Default values must be verified by reading source code (e.g., banner.py, template card files) — not by trusting existing documentation.
    • Check that claims do not contradict each other within the document.
    • Do NOT verify: general physics concepts, high-level descriptions, cross-references, formatting, or style choices.
    • If you discover pre-existing errors in the existing documentation (under /madgraph_docs/) while verifying, report them separately as incidental errors.

    Write verdicts to /workspace/verify/verdicts.json.

Read the full file on GitHub · 108 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. 3mo ago First seen · 108 lines · 31 tokens per session scan A cb7360054773

Subscribe to this mod's changes

edit-docs is a skill published in the GitHub repository MadGraphTeam/MadAgents (15 stars, last pushed 3mo ago), licensed MIT. It adds 31 tokens to every session and 975 once invoked, about $0.0001 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-31.

Related

edit-docs compared with skills from other repositories

edit-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
edit-docsMadGraphTeam/MadAgentsSkill153mo agoMITA31Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code