diagnose-docs
Find documentation problems that caused agent mistakes — gaps, inaccuracies, or ambiguities. Uses grade context to guide diagnosis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Find documentation problems that caused agent mistakes — gaps, inaccuracies, or ambiguities. Uses grade context to guide diagnosis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Install the MadAgents agent system into a folder on this machine, to be run without a container. Use when the user wants MadAgents outside Apptainer — in a project folder, on a login node, or anywhere they already have MadGraph — or wants to refresh an existing install.
Edit MadGraph documentation with parallel review: style, quality, and factual verification. Revises until all checks pass or max rounds reached.
Generate evaluation questions about MadGraph and related tools with verified reference answers, using web research for real-world use cases.
Get a writable copy of the MadGraph documentation.
Run one iteration of the doc improvement loop: generate or accept questions, answer them in parallel, verify, grade, diagnose, fix the docs, and re-evaluate until convergence.
Extract factual claims from text and verify each one using execution, source inspection, or physics reasoning.
| name | diagnose-docs |
| description | Find documentation problems that caused agent mistakes — gaps, inaccuracies, or ambiguities. Uses grade context to guide diagnosis. |
Find documentation issues that caused or contributed to problems. Your goal is to identify what needs to change in the docs to prevent similar issues.
$ARGUMENTS
If a description was given, use it as the problem to diagnose. If a file path was given (e.g. verdicts JSON), read it and extract entries where correct is false. If nothing was given, ask the user what went wrong.
If a grade file is available (e.g. /workspace/train/grade/grade.json), read it for context. When the inefficient tag is present, also look for unnecessary effort in the agent's workflow caused by doc gaps.
The docs at /madgraph_docs/ are operational reference for an expert LLM agent using MadGraph. They cover MadGraph-specific syntax, parameters, defaults, and behavior — not textbook physics. A topic is in scope if knowing it helps the agent correctly use MadGraph.
Some web search and code inspection is expected and healthy — looking up specifics about papers or model implementations is normal. Inefficiency means the agent had to search for basic operational information that the docs should provide (common commands, default values, parameter names, standard workflows).
Get the docs: Call get_doc_draft("/workspace/docs_check") to get a local copy you can read.
For each issue:
Write your findings to a file (e.g., /workspace/diagnoses.json):
{
"doc_gap": [
{
"problem": "What went wrong or what information was missing",
"correct_info": "The correct information",
"recommendation": "Specific documentation change to prevent this"
}
],
"doc_incorrect": [],
"doc_ambiguous": []
}
Include all categories. Empty lists are fine.
After writing results, verify:
problem, correct_info, and recommendation