fdtd-simulate

fdtd-simulate is a command for coding agents from Lex669/LumericalFDTD-skill. It costs 36 tokens per session (207 once invoked), scanned A, original, MIT.

A command for running an Ansys Lumerical FDTD simulation, which models how light behaves in a device over time. It executes an existing Python simulation script and extracts numerical results.

In plain words
What is it for?
Use it when a `*_sim.py` script already exists and you need to produce the `.fsp` simulation project file and `.npz` result data.
Why use it?
It removes the manual work of finding the correct Lumerical Python interpreter, checking output files, and repeatedly fixing common errors.

Command

Part of the LumericalFDTD plugin — 5 skills, 4 commands shipped together

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 commands/lex669/lumericalfdtd-skill/fdtd-simulate
Clone the repo
git clone --depth 1 https://github.com/Lex669/LumericalFDTD-skill

Or install LumericalFDTD, the plugin that ships this one along with the rest of its 5 skills, 4 commands.

Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 207 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.00036 $0.00207
Opus 5 $0.00018 $0.00103
Sonnet 5 $0.00007 $0.00041
Haiku 4.5 $0.00004 $0.00021

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

Security

Grade A, and why

fdtd-simulate 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.

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.

commands/fdtd-simulate.md · 16 lines

What it actually says

FDTD 仿真执行

使用 LumericalFDTD-simulation skill 完成以下工作:

  1. 环境探测(本会话首次)— 定位 Lumerical Python 解释器
  2. 运行仿真脚本 — 调用 Lumerical Python 解释器执行 *_sim.py
  3. 错误处理循环(最多 5 次)— 按 common-errors.md 排查修复,自动重试
  4. 确认输出 — 验证 .fsp.npz 文件已正确生成

需要先有仿真脚本。如尚未建模,请先使用 /fdtd-model。如需完整流程,请使用 /fdtd-full

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 · 16 lines · 36 tokens per session scan A 9827eeef0077

Subscribe to this mod's changes

fdtd-simulate is a command published in the GitHub repository Lex669/LumericalFDTD-skill (23 stars, last pushed 13d ago), licensed MIT. It adds 36 tokens to every session and 207 once invoked, about $0.0002 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.