parameter-optimization

A workflow for choosing simulation parameters through designed experiments, sensitivity analysis, and optimization. Designed experiments are planned runs that test parameter effects efficiently.

In plain words
What is it for?
It creates factorial, quasi-random, or Latin Hypercube sample plans, ranks parameter influence, and recommends an optimization method based on dimensions, noise, constraints, and budget.
Why use it?
It reduces guesswork when calibrating a simulation and helps spend a limited number of runs on the most informative tests.

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/parameter-optimization
Any agent
npx skills add HeshamFS/materials-simulation-skills --skill parameter-optimization
Clone the repo
git clone --depth 1 https://github.com/HeshamFS/materials-simulation-skills

Made for: Claude Code, Codex.

Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,333 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.00127 $0.03333
Opus 5 $0.00063 $0.01666
Sonnet 5 $0.00025 $0.00667
Haiku 4.5 $0.00013 $0.00333

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

Security

Grade A, and why

parameter-optimization 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 3d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/doe_generator.py, scripts/optimizer_selector.py, scripts/sensitivity_summary.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/parameter-optimization/SKILL.md · 231 lines

How it starts

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

Parameter Optimization

Goal

Provide a workflow to design experiments, rank parameter influence, and select optimization strategies for materials simulation calibration.

Requirements

  • Python 3.10+
  • No external dependencies (uses Python standard library only)

Inputs to Gather

Before running any scripts, collect from the user:

Input Description Example
Parameter bounds Min/max for each parameter with units kappa: [0.1, 10.0] W/mK
Evaluation budget Max number of simulations allowed 50 runs
Noise level Stochasticity of simulation outputs low, medium, high
Constraints Feasibility rules or forbidden regions kappa + mobility < 5

Decision Guidance

Choosing a DOE Method

Is dimension <= 3 AND full coverage needed?
├── YES → Use factorial
└── NO → Is sensitivity analysis the goal?
    ├── YES → Use quasi-random (preferred; "sobol" is accepted but deprecated)
    └── NO → Use lhs (Latin Hypercube)
Method Best For Avoid When
lhs General exploration, moderate dimensions (3-20) Need exact grid coverage
quasi-random Sensitivity analysis, uniform coverage (preferred) Very high dimensions (>20)
sobol Deprecated alias of quasi-random (emits a warning) New code (use quasi-random)
factorial Low dimension (<4), need all corners High dimension (exponential growth)

Factorial sizing: the factorial grid is levels evenly spaced values per parameter, producing exactly levels ** params samples. Set the resolution explicitly with --levels (e.g. --params 2 --levels 4 -> 16 samples). If you use --budget instead, the script back-computes levels = round(budget ** (1/params)) and warns whenever the realized sample count differs from the requested budget (e.g. --budget 20 --params 2 realizes 16 samples). For an exact design, pass a perfect power (--budget 16) or, preferably, --levels.

Read the full file on GitHub · 231 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. 3d ago First seen · 231 lines · 127 tokens per session scan A c3441ef9657c

Subscribe to this mod's changes

parameter-optimization is a skill published in the GitHub repository HeshamFS/materials-simulation-skills (65 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 127 tokens to every session and 3,333 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.

Related

Other skills, from other repositories

audit-training-experiment

Audits an ML training experiment for reproducibility, evidence integrity, leakage, checkpoint identity, evaluation validity, and overclaimed conclusions. Use before accepting results, spending on a longer run, publishing artifacts, or handing work to another agent.

bastos/skills · 52 tokens

close-out-ml-experiment

Preserves positive or negative ML experiment evidence, reconciles report discrepancies, records the canonical decision and limitations, and prepares a concise handoff. Use when stopping an experiment, rejecting a prompt/model, or freezing a result before the next iteration.

bastos/skills · 55 tokens

using-geoscience-skills

Foundation skill for the geoscience skills library. Routes user intent to the correct domain skills, slash commands, and workflow skills. Loaded automatically at session start via SessionStart hook.

SteadfastAsArt/geoscience-skills · 44 tokens

using-opentikz

Use when a user wants a TikZ figure for a paper — an icon, an editable architecture/pipeline/flow template, or an example — and wants you to find, edit, and verify it. The single repo-wide skill for working with the OpenTikZ library.

opentikz/opentikz · 61 tokens

paper-mcp

Use the Paper MCP server to fetch paper metadata, sections, figures, citations, and full-text context, then translate that context into structured outputs such as summaries, extraction tables, and implementation-ready notes. Trigger when a task involves paper links/DOIs/arXiv IDs, literature review, citation…

artivilla/agents-config · 72 tokens

memprocfs-assistant-zh

使用 MemProcFS 辅助进行内存分析和取证。当需要分析内存转储、调查系统活动或执行取证检查时使用。.

Tokeii0/memprocfs-skill · 41 tokens