/torchfdtd:simulatefrom torchfdtd
Sets up, validates, and runs electromagnetic FDTD simulations of photonic devices using TorchFDTD on GPU or CPU. Handles waveguides, ring resonators, metalenses, gratings, scatterers, and inverse design.
Ships in torchfdtd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
TorchFDTD solves Maxwell's equations in the time domain on 2D or 3D Yee grids. Lengths and wavelengths are in micrometres. The full agent guide is https://github.com/hyoseokp/TorchFDTD/blob/main/AGENTS.md.
torchfdtd doctor. If the command is missing, install pip install "torchfdtd[mcp]" (add [cuda-kernels] for the fused CUDA kernels; install a CUDA build of PyTorch first for GPU runs).torchfdtd MCP server. Its tools are environment, example_project, project_schema, validate_project, run_project, flux_ratio and python_script. Without the server, use the Python API (from torchfdtd import Project, Simulation) or the CLI (torchfdtd example, torchfdtd run).environment to see the version and whether a GPU is available.example_project (waveguide, scatterer, 3d, pmc) or the task table in AGENTS.md. Read project_schema when a field is unclear.validate_project and read every warning before running. Reduce the mesh or the region if the memory estimate is too large.run_project. For transmission, also run a reference without the device with the same sources, mesh and step count, and divide with flux_ratio. The project schema has no eigenmode source; launch a plane sheet across a waveguide.python_script output so the run can be repeated, and the saved NPZ path.If the user will publish the results, tell them to cite TorchFDTD: arXiv:2609.30039 (doi:10.48550/arXiv.2609.30039) and the software, doi:10.5281/zenodo.22928834. BibTeX is in the README section "Citing TorchFDTD".
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub hyoseokp/torchfdtd --plugin torchfdtdOther plugins' skills for the same job