simulation-validator

simulation-validator is a skill for Claude Code, Codex from HeshamFS/materials-simulation-skills. It costs 123 tokens per session (3,919 once invoked), scanned A, original, Apache-2.0.

A three-stage checker for materials simulations: before they start, while they run, and after they finish.

In plain words
What is it for?
It checks configuration files, monitors logs for residual growth, invalid numbers, and shrinking time steps, and tests final bounds, conservation, and convergence.
Why use it?
It finds invalid settings, runtime instability, and physically implausible or non-converging results before they are mistaken for valid output.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/heshamfs/materials-simulation-skills/simulation-validator
Any agent
npx skills add HeshamFS/materials-simulation-skills --skill simulation-validator
Clone the repo
git clone --depth 1 https://github.com/HeshamFS/materials-simulation-skills

Made for: Claude Code, Codex.

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-validator

README.md
[![agentmods](https://agentmods.dev/badge/skills/heshamfs/materials-simulation-skills/simulation-validator.svg)](https://agentmods.dev/skills/heshamfs/materials-simulation-skills/simulation-validator)
Your own site
<a href="https://agentmods.dev/skills/heshamfs/materials-simulation-skills/simulation-validator"><img src="https://agentmods.dev/badge/skills/heshamfs/materials-simulation-skills/simulation-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,919 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00123 $0.03919
Opus 5 $0.00062 $0.01959
Sonnet 5 $0.00025 $0.00784
Haiku 4.5 $0.00012 $0.00392

Measured 4d ago against content hash f866886694da, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

simulation-validator 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 4d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/failure_diagnoser.py, scripts/preflight_checker.py, scripts/result_validator.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/simulation-workflow/simulation-validator/SKILL.md · 298 lines

How it starts

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

Simulation Validator

Goal

Provide a three-stage validation protocol: pre-flight checks, runtime monitoring, and post-flight validation for materials simulations.

Requirements

  • Python 3.10+
  • No external dependencies (uses Python standard library only)
  • Works on Linux, macOS, and Windows

Inputs to Gather

Before running validation scripts, collect from the user:

Input Description Example
Config file Simulation configuration (JSON/YAML) simulation.json
Log file Runtime output log simulation.log
Metrics file Post-run metrics (JSON) results.json
Required params Parameters that must exist dt,dx,kappa
Valid ranges Parameter bounds dt:1e-6:1e-2

Decision Guidance

When to Run Each Stage

Is simulation about to start?
├── YES → Run Stage 1: preflight_checker.py
│         └── BLOCK status? → Fix issues, do NOT run simulation
│         └── WARN status? → Review warnings, document if accepted
│         └── PASS status? → Proceed to run simulation
│
Is simulation running?
├── YES → Run Stage 2: runtime_monitor.py (periodically)
│         └── Alerts? → Consider stopping, check parameters
│
Has simulation finished?
├── YES → Run Stage 3: result_validator.py
│         └── Failed checks? → Do NOT use results
│                            → Run failure_diagnoser.py
│         └── All passed? → Results are valid

Choosing Validation Thresholds

Metric Conservative Standard Relaxed
Mass tolerance 1e-6 1e-3 1e-2
Residual growth 2x 10x 100x
dt reduction 10x 100x 1000x

Script Outputs (JSON Fields)

Script Output Fields
scripts/preflight_checker.py report.status, report.blockers, report.warnings
scripts/runtime_monitor.py alerts, residual_stats, dt_stats (alerts include NaN/Inf/overflow detection, residual growth, and dt collapse)
scripts/result_validator.py checks, confidence_score, failed_checks, status (PASS / FAIL / INSUFFICIENT_DATA); confidence_score is null when no check ran
scripts/failure_diagnoser.py probable_causes, recommended_fixes

Read the full file on GitHub · 298 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. 4d ago First seen · 298 lines · 123 tokens per session scan A f866886694da

Subscribe to this mod's changes

simulation-validator is a skill published in the GitHub repository HeshamFS/materials-simulation-skills (65 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 123 tokens to every session and 3,919 once invoked, about $0.0006 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.