LumericalFDTD SKILL.md skillA

LumericalFDTD from lex669/lumericalfdtd-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add lex669/lumericalfdtd-skill/LumericalFDTD@git:20260907.8d67aa1

Pins git:20260907.8d67aa1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
lex669/lumericalfdtd-skill
Path
skills/LumericalFDTD/SKILL.md
Versions recorded
4
Latest version
git:20260907.8d67aa1, committed Sep 7, 2026
First version recorded
May 29, 2026
Size
13,931 bytes
Repository stars
44
License
MIT

端到端 Ansys Lumerical FDTD 仿真自动化 — 从零构建模型、运行仿真、自动debug、数据分析与可视化全流程。当你需要完整的光学仿真项目(建模→仿真→分析→验收)时使用此skill。 End-to-end Ansys Lumerical FDTD simulation automation — full pipeline from modeling through simulation to analysis and verification. Use when you need a complete photonics simulation project. 子技能(单独使用某个阶段):建模用 LumericalFDTD-modeling / 仿真执行用 LumericalFDTD-simulation / 数据分析用 LumericalFDTD-analysis.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Lumerical FDTD 全流程仿真

## 核心工作流(必须严格按顺序执行,不可跳过)

每次处理完整 FDTD 任务时严格遵循以下三阶段流水线。**创建文件只是准备阶段,运行仿真才是核心工作。**

### 阶段 A:准备与建模

1. **理解需求** — 确认器件结构(几何参数、材料)、光源(波长范围、偏振)、监视器要求、验收条件
2. **环境探测**(本会话首次时)— 定位 Lumerical Python 解释器路径
3. **编写 `*_sim.py`** — 生成仿真脚本,包含结构构建、光源、监视器、`fdtd.run()`、数据保存

> 仅需建模不跑仿真 → 改用 `LumericalFDTD-modeling` skill

### 阶段 B:执行仿真(不可跳过,不可省略)

4. **运行仿真脚本** — 用 Bash 工具调用 Lumerical Python 解释器执行 `*_sim.py`
5. **检查输出** — 确认 `.fsp` 和 `.npz` 文件已生成,检查日志无致命错误
6. **如遇错误** — 读取 `references/common-errors.md`,修复脚本,回到步骤 4。**最多重试 5 次**,超过则向用户报告所有尝试过的修复及错误,请求人工介入
7. **编写并运行 `*_analysis.py`** — 读取 `.npz` 数据,计算指标,绘图保存 `.png` 到**新建的 `pic/<label>_run_<NN>/` 子目录**(归档约定见「文件管理规则」;辅助函数 `new_run_dir` 见 `LumericalFDTD-analysis` skill 模板,只写入 `*_analysis.py`,不写入 `*_sim.py`)

> 仅需分析已有数据 → 改用 `LumericalFDTD-analysis` skill

### 阶段 C:验收

8. **验证结果** — 进入**最新 run 子目录**(`NN` 最大者)检查其中的 `.png` 图表是否满足验收条件(透射率、模式分布、衍射环等),不满足则调整 `*_sim.py` 参数回到步骤 4
9. **更新 REPORT.md** — 记录仿真参数、结果摘要、图表说明,并注明本次图表的 run 目录路径(如 `pic/glass_gaussian_run_02/`)

### 错误处理循环(含最大重试上限)

```
重试次数 = 0
最大重试 = 5

while 仿真未成功 and 重试次数 < 最大重试:
    运行 sim.py
    if 报错:
        读取 references/common-errors.md
        根据错误类型定位解决方案
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add lex669/lumericalfdtd-skill/LumericalFDTD@sha256:ed42bf1ff9c5c16a

The line at the top of this page pins the label git:20260907.8d67aa1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_qy4tmj5j7laj5drd.svg)](https://markdownregistry.com/a/art_qy4tmj5j7laj5drd)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between May 29, 2026 and Sep 7, 2026, about one every 34 days.

versioncommittedcommitsizeaudit
git:20260907.8d67aa1 latest2026-09-07 8d67aa1 13,931 BA view · diff
git:20260617.d0084c22026-06-17 d0084c2 12,486 BA view · diff
git:20260617.2161c012026-06-17 2161c01 11,371 BA view · diff
git:20260529.30bd36a2026-05-29 30bd36a 11,755 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (13931 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

lex669/lumericalfdtd-skill · 44 stars · license MIT · pushed 2026-10-27 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_qy4tmj5j7laj5drd
GET https://markdownregistry.com/api/v1/resolve?ref=lex669/lumericalfdtd-skill/LumericalFDTD
GET https://markdownregistry.com/api/v1/blob/ed42bf1ff9c5c16a504f5d4718979bf851f5882f78ce5dbd2500578b560d39e2

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from lex669/lumericalfdtd-skill

CLAUDE.md CLAUDE.md file
lex669/lumericalfdtd-skill · CLAUDE.md
git:20260907.8d67aa1 · audit A · 44 stars
LumericalFDTD-analysis SKILL.md skill
lex669/lumericalfdtd-skill · skills/LumericalFDTD-analysis/SKILL.md · 分析 Ansys Lumerical FDTD 仿真结果 — 读取.npz数据、计算光学指标、生成发表级图表。当你需要分析FDTD结果、绘制场分布图、计算透射率/衍射效率时使用此skill。 Analyze Ansys Lumerical…
git:20260907.8d67aa1 · audit A · 44 stars
LumericalFDTD-modeling SKILL.md skill
lex669/lumericalfdtd-skill · skills/LumericalFDTD-modeling/SKILL.md · 为 Ansys Lumerical FDTD 构建光学仿真模型(几何结构、材料、光源、监视器)。当你需要创建FDTD几何模型、设置材料属性、配置光源和监视器、定义网格覆盖时使用此skill。 Build optical…
git:20260617.d0084c2 · audit A · 44 stars
LumericalFDTD-simulation SKILL.md skill
lex669/lumericalfdtd-skill · skills/LumericalFDTD-simulation/SKILL.md · 执行 Ansys Lumerical FDTD 仿真脚本、自动迭代 debug、提取结果数据。当你需要运行FDTD仿真、调试仿真错误、提取.npz结果时使用此skill。 Execute Ansys Lumerical FDTD…
git:20260617.2161c01 · audit A · 44 stars
paper-summarizer SKILL.md skill
lex669/lumericalfdtd-skill · skills/paper-summarizer/SKILL.md · 当用户提供PDF格式的学术论文并希望理解内容时使用此技能。触发场景:用户说"总结这篇论文"、"帮我读这篇paper"、"分析这个PDF"、"解释论文图表"、"这篇论文讲了什么"、提供论文PDF路径或URL、上传PDF文件。即使用户没有明确说…
git:20260617.2161c01 · audit A · 44 stars

Every file in lex669/lumericalfdtd-skill

Browse by kind, by grade A, or by owner.