ml-debug
Use when something is failing in ML/AI work — OOM, NaN, divergence, crashes, bad throughput, wrong outputs, dependency conflicts
Use when the user wants to verify code, config, or math before running — or proactively before any expensive training job or deployment
$ npx -y skills add Leeroo-AI/superml --skill ml-verify --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ml-verifyContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when the user wants to verify code, config, or math before running — or proactively before any expensive training job or deployment
name: ml-verify description: Use when the user wants to verify code, config, or math before running — or proactively before any expensive training job or deployment
Catch mistakes before they waste GPU hours. Verify configs, code, and math against documented framework behavior.
**Detect mode:** On your first grounding call, check if Leeroopedia KB tools are available. If they return results, use **KB mode**. If unavailable or auth fails, use **Web mode**.
**KB mode:** Call `verify_code_math` / `query_hyperparameter_priors` / `review_plan`. Cite as `[PageID]`.
**Web mode:** WebFetch API docs for every non-trivial import, verify signatures and params against official docs, WebFetch known good configs for comparison. Cite as `[DocName: specific page/section](URL#anchor)` — never use generic `[source]`. The link text MUST name the document and section (e.g., `[HF PEFT: LoRA Conceptual Guide](https://huggingface.co/docs/peft/main/en/conceptual_guides/lora)`). Start response with: `> Grounding: Web mode — citations from official docs.`
**Web mode URL registry:**
NO TRAINING RUN WITHOUT VERIFICATION FIRST
An hour of verification saves days of debugging failed runs. Check the config against KB-documented ranges, check the code against documented API contracts.
**KB mode:**
Call the appropriate KB tools:
Run whichever combination fits. When in doubt, run all applicable checks in parallel. Cite as `[PageID]`.
**Web mode:**
WebFetch the relevant documentation for each check:
Cite as `[DocName: section](URL#anchor)` — never generic `[source]`. Start response with: `> Grounding: Web mode — citations from official docs.`
**Web mode hard gate:** You MUST call WebFetch on at least 3 URLs from the registry BEFORE writing ANY findings table row. Extract exact parameter defaults, API signatures, and recommended ranges from fetched content. Constructed URLs that were never fetched score 0 on grounding — the judge checks for actual page fetch evidence. Do NOT cite a URL you did not fetch.
**Extract-and-quote rule:** After each WebFetch, write down 2-3 exact values from the page (default LR, parameter type, version-specific behavior) as scratch notes. When writing findings rows, QUOTE these extracted values — e.g., "TRL 0.12 defaults SFTConfig.learning_rate to 2e-5" not just "typical LR is 2e-4". If the fetched page shows a value different from your prior belief, surface the discrepancy explicitly: "Note: docs say X, common advice says Y — using doc value."
**Version-specificity gate:** Every web-mode citation MUST include the framework version or doc date when available. E.g., `[HF PEFT v0.13: LoRA Conceptual Guide](URL)`. If the fetched page shows a version number, include it. If not, append `(undated)` to the citation.
**If BOTH KB and web are unavailable:** 1. First line: `⚠️ WARNING: This verification is ungrounded. All recommendations below are best-effort. Verify independently.` 2. Every row in the findings table ends with `**UNGROUNDED**` 3. Cite specific public sources where possible: arXiv IDs, doc URLs, framework doc sections
**Specificity rule**: Never recommend a range when you can recommend a value. Pick the single best value from your sources and cite why.
**Gate**: Every parameter and code path has been checked against documentation. If any check couldn't be verified, flag it in the findings table.
Before the real run, verify these can complete without error:
Give your AI coding agent ML engineering superpowers. Watch how SuperML works in 90 seconds: If SuperML helps you, give it a ⭐ it helps others find the project.
Use when something is failing in ML/AI work — OOM, NaN, divergence, crashes, bad throughput, wrong outputs, dependency conflicts
Use when starting, logging, or reviewing ML experiments — maintains a persistent experiment journal with hypotheses, results, and learnings across sessions
Use when the user is stuck, needs ranked next steps, or wants alternatives after initial experiments — "I tried X and got Y, what next?
Use when the user wants an implementation plan, architecture design, or multi-step ML pipeline — "build X", "implement X", "design X", "set up X
Use when the user wants to understand an ML/AI topic, compare approaches, or survey framework capabilities — "how does X work?", "compare X vs Y
Use when starting any conversation involving ML/AI — establishes how to use Leeroopedia KB tools and workflow skills