LumericalFDTD-analysis SKILL.md skillA
LumericalFDTD-analysis 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-analysis@git:20260907.8d67aa1Pins 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-analysis/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260907.8d67aa1, committed Sep 7, 2026
- First version recorded
- Jun 17, 2026
- Size
- 6,378 bytes
- Repository stars
- 44
- License
- MIT
分析 Ansys Lumerical FDTD 仿真结果 — 读取.npz数据、计算光学指标、生成发表级图表。当你需要分析FDTD结果、绘制场分布图、计算透射率/衍射效率时使用此skill。 Analyze Ansys Lumerical FDTD simulation results — load .npz data, compute optical metrics, generate publication-quality figures. Use when analyzing FDTD results, plotting field distributions, computing transmission/diffraction efficiency.
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 **仅负责**数据分析与可视化阶段:读取 `.npz` 数据、计算光学指标、绘制图表、验证验收条件。输出 `.png` 图表文件。
**不负责**:结构建模(→ `LumericalFDTD-modeling`)、仿真执行(→ `LumericalFDTD-simulation`)、端到端全流程(→ `LumericalFDTD`)。
## 前置条件
`.npz` 数据文件必须已存在于 `data/` 目录。若不存在,先运行仿真。
## 工作流
### 1. 确认数据可用
```bash
ls path/to/project/data/
# 确认 results.npz 等文件存在
```
### 2. 编写分析脚本
按模板生成 `*_analysis.py`(纯数据分析,不调 `lumapi.FDTD`)。
> **每次运行分析脚本必须新建独立的 run 子目录保存图表(`pic/<label>_run_<NN>/`),禁止直接写入 `pic/` 根目录**。下方模板内嵌的 `new_run_dir()` 辅助函数及调用**必须完整保留**,不得删除或改写;`label` 需按本次仿真内容填写(规则见「图表归档约定」)。
```python
import os
import glob
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
def new_run_dir(pic_dir, label):
"""本次运行的图表目录 pic/<label>_run_<NN>(NN 自动递增,从 01 起补零)"""
n = 0
for d in glob.glob(os.path.join(pic_dir, label + "_run_*")):
suffix = os.path.basename(d)[len(label) + 5:] # 去掉 "<label>_run_" 前缀
if suffix.isdigit():
n = max(n, int(suffix))
run_dir = os.path.join(pic_dir, f"{label}_run_{n + 1:02d}")
os.makedirs(run_dir, exist_ok=True)
return run_dir
# label = 本次仿真内容的 1-3 个区分关键词(snake_case,如 glass_gaussian / si_planewave_1550nm)
…Read the whole file at its exact version.
How to install
mdr add lex669/lumericalfdtd-skill/LumericalFDTD-analysis@sha256:0f82c0e7f9fbc68aThe 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.
[](https://markdownregistry.com/a/art_2opxbdnzgbqm5ulb)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Jun 17, 2026 and Sep 7, 2026, about one every 82 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260907.8d67aa1 latest | 2026-09-07 | 8d67aa1 | 6,378 B | A | view · diff |
| git:20260617.2161c01 | 2026-06-17 | 2161c01 | 3,601 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 (6378 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_2opxbdnzgbqm5ulb GET https://markdownregistry.com/api/v1/resolve?ref=lex669/lumericalfdtd-skill/LumericalFDTD-analysis GET https://markdownregistry.com/api/v1/blob/0f82c0e7f9fbc68a052927cfa47835aca3684918a98930abd0a76d88cac440ff
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.