simulation-failure-triage

simulation-failure-triage is a skill for Claude Code from HeshamFS/materials-simulation-skills. It costs 141 tokens per session (2,351 once invoked), scanned A, original, Apache-2.0.

A first-response guide for failures in LAMMPS, VASP, Quantum ESPRESSO, or MOOSE simulations. It classifies signs such as nonconvergence, invalid numbers, unstable time steps, missing model files, memory exhaustion, crashes, and incomplete output.

In plain words
What is it for?
Use it to record the simulation code, stage, symptoms, logs, and recent changes, then produce likely causes, immediate actions, a controlled retry sequence, stop conditions, and supporting evidence.
Why use it?
It separates setup mistakes, numerical instability, and physical-model problems so retries do not make the result meaningless. It also preserves the logs and inputs needed to understand what happened.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the reproducible-campaigns plugin — 8 skills shipped together , and of full

Good fit Use it to record the simulation code, stage, symptoms, logs, and recent changes, then produce likely causes, immediate actions, a controlled retry sequence, stop conditions, and supporting evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/heshamfs/materials-simulation-skills/simulation-failure-triage
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 HeshamFS/materials-simulation-skills --skill simulation-failure-triage
Clone the repo
git clone --depth 1 https://github.com/HeshamFS/materials-simulation-skills

Made for: Claude Code.

Or install reproducible-campaigns, the plugin that ships this one along with the rest of its 8 skills.

Its marketplace also offers this one on its own, as the plugin robustness/plugin install robustness after adding the marketplace above.

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 simulation-failure-triage

README.md
[![agentmods](https://agentmods.dev/badge/skills/heshamfs/materials-simulation-skills/simulation-failure-triage/github.svg)](https://agentmods.dev/skills/heshamfs/materials-simulation-skills/simulation-failure-triage)
Your own site
<a href="https://agentmods.dev/skills/heshamfs/materials-simulation-skills/simulation-failure-triage"><img src="https://agentmods.dev/badge/skills/heshamfs/materials-simulation-skills/simulation-failure-triage/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 simulation-failure-triage

Your own site · 80×15
<a href="https://agentmods.dev/skills/heshamfs/materials-simulation-skills/simulation-failure-triage"><img src="https://agentmods.dev/badge/skills/heshamfs/materials-simulation-skills/simulation-failure-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,351 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.00141 $0.02351
Opus 5 $0.00071 $0.01175
Sonnet 5 $0.00028 $0.00470
Haiku 4.5 $0.00014 $0.00235

Measured 9d ago against content hash 33940779e74c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

simulation-failure-triage 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/failure_triage.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/robustness/simulation-failure-triage/SKILL.md · 152 lines

How it starts

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

Simulation Failure Triage

Goal

Classify common simulation failure signatures and return immediate actions, retry ladders, and stop conditions.

Requirements

  • Python 3.10+
  • No external dependencies
  • Works on Linux, macOS, and Windows

Inputs to Gather

Input Description Example
Code Simulation code LAMMPS, VASP, MOOSE, QE
Stage Setup, runtime, postprocess runtime
Symptoms Failure signs nan,pressure-blowup
Log text or file Error evidence Lost atoms, ZBRENT
Recent change Last modified setting larger timestep

Decision Guidance

  • First preserve evidence: logs, inputs, executable version, and scheduler output.
  • Separate setup errors from numerical instability and physical model issues.
  • Retry with a single controlled change.
  • Stop retrying when the result becomes scientifically meaningless or a required model input is missing.

Script Outputs

scripts/failure_triage.py emits:

  • likely_causes
  • immediate_actions
  • retry_ladder
  • stop_conditions
  • evidence

Workflow

python3 skills/robustness/simulation-failure-triage/scripts/failure_triage.py \
  --code LAMMPS \
  --stage runtime \
  --symptoms nan,pressure-blowup \
  --recent-change "increased timestep" \
  --json

Error Handling

Invalid stages or oversized log files stop with exit code 2. Unknown symptoms are retained as custom evidence.

Limitations

This skill gives first-response triage. It does not guarantee that a failed simulation can be repaired.

Verification checklist

  • Recorded the preserved-evidence set BEFORE any rerun: copied logs, input decks, scheduler output, and the executable/version string (per the first immediate_actions item) so the original failure is reproducible.
  • Quoted the FIRST warning/error from the run, not just the final crash line, and confirmed evidence.log_excerpt (first 500 chars, original casing) captures it; re-run with --log-file/--log-text if the excerpt misses the root signature.
  • Logged every likely_causes entry with its symptom, category, and first_action, and verified no real signature landed in the category: custom bucket because its keyword was absent from LOG_HINTS/PATTERNS.
  • Confirmed the failure category is correct rather than mislabeled: a segfault/SIGSEGV/signal 11/core-dumped maps to crash (not corrupted-output), and an OOM/bad_alloc/oom-kill maps to out-of-memory (not incomplete-run).
  • Applied the retry_ladder strictly one change at a time, recording the single parameter changed and its effect at each rung (including the memory rung when memory-bound).
  • Checked every stop_conditions entry and halted the retry loop instead of stacking arbitrary stabilizing tweaks when any condition is met (e.g. unverifiable potential/pseudopotential, results dependent on arbitrary stabilizers).
  • After any numerical recovery, handed off to the simulation-validator skill for conservation / physical-bounds / "can I trust these results" checks rather than declaring success here.

Read the full file on GitHub · 152 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 152 lines · 141 tokens per session scan A 33940779e74c

Subscribe to this mod's changes

simulation-failure-triage is a skill published in the GitHub repository HeshamFS/materials-simulation-skills (66 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 141 tokens to every session and 2,351 once invoked, about $0.0007 per session on Opus 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-30.