LumericalFDTD-modeling SKILL.md skillA
LumericalFDTD-modeling from lex669/lumericalfdtd-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add lex669/lumericalfdtd-skill/LumericalFDTD-modeling@git:20260617.d0084c2Pins git:20260617.d0084c2 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-modeling/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260617.d0084c2, committed Jun 17, 2026
- First version recorded
- Jun 17, 2026
- Size
- 4,373 bytes
- Repository stars
- 44
- License
- MIT
为 Ansys Lumerical FDTD 构建光学仿真模型(几何结构、材料、光源、监视器)。当你需要创建FDTD几何模型、设置材料属性、配置光源和监视器、定义网格覆盖时使用此skill。 Build optical simulation models for Ansys Lumerical FDTD (geometry, materials, sources, monitors). Use when creating FDTD geometry, setting material properties, configuring sources and monitors, defining mesh overrides.
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
# FDTD 结构建模器
## 职责范围
本 skill **仅负责**结构建模阶段:构建几何、设置材料、配置光源和监视器、定义网格覆盖。输出纯建模脚本(不含 `fdtd.run()`),供后续仿真 skill 使用。
**不负责**:运行仿真(→ `LumericalFDTD-simulation`)、数据分析(→ `LumericalFDTD-analysis`)、端到端全流程(→ `LumericalFDTD`)。
## 工作流
### 1. 理解需求
确认以下信息后开始编写脚本。若用户未明确提供,主动询问:
| 类别 | 需确认的参数 |
|------|-------------|
| **器件结构** | 几何形状、尺寸、(x/y/z span / radius / thickness)、排列方式(单孔/阵列/周期) |
| **材料** | 衬底材料、金属层材料、蚀刻区域 |
| **光源** | 波长范围(start/stop)、偏振方向、入射方向、光束类型(平面波/高斯/偶极子) |
| **监视器** | 类型(功率/场分布/折射率)、位置、覆盖范围 |
| **仿真域** | x/y/z span、边界条件、网格精度 |
### 2. 构建脚本
按以下结构生成 `*_model.py`:
```python
# 1. 导入
import sys; sys.path.append("{API_PATH}")
import lumapi; import numpy as np
import matplotlib; matplotlib.use('Agg'); import matplotlib.pyplot as plt
# 2. 参数定义(集中管理)
wavelength = 100e-6
x_span = 200e-6; y_span = 200e-6; z_span = 100e-6
# ... 结构参数 ...
# 3. 仿真会话 — 仅构建,不运行
with lumapi.FDTD(hide=True) as fdtd:
# 3a. 仿真区域
fdtd.addfdtd()
# ...
# 3b. 材料 / 衬底
# ...
# 3c. 几何结构(从底到顶)
# ...
# 3d. 网格覆盖(可选,精细结构才加)
# ...
# 3e. 光源
# ...
# 3f. 监视器
# ...
# 3g. 保存模型(不运行)
fdtd.save(os.path.join(fsp_dir, "model.fsp"))
```
### 3. 输出
…Read the whole file at its exact version.
How to install
mdr add lex669/lumericalfdtd-skill/LumericalFDTD-modeling@sha256:5aca0269d1fe42deThe line at the top of this page pins the label git:20260617.d0084c2, 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.
[](https://markdownregistry.com/a/art_63kj6mkpzdbviz4k)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, all committed on Jun 17, 2026.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260617.d0084c2 latest | 2026-06-17 | d0084c2 | 4,373 B | A | view · diff |
| git:20260617.2161c01 | 2026-06-17 | 2161c01 | 3,578 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4373 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
lex669/lumericalfdtd-skill · 44 stars · license MIT · pushed 2026-10-27 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_63kj6mkpzdbviz4k GET https://markdownregistry.com/api/v1/resolve?ref=lex669/lumericalfdtd-skill/LumericalFDTD-modeling GET https://markdownregistry.com/api/v1/blob/5aca0269d1fe42de28b007d6cee72595e594e9a599c0a12ff17f2d3e4c2e07b3
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.