Mxl Singlemode

This skill should be used when users need the MaxwellLink single-mode cavity solver for fast prototyping and regression, in either socket or embedded mode.

9 stars 5 forksOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add TaoELi/MaxwellLink --skill mxl-singlemode
Manual install
git clone --depth 1 https://github.com/TaoELi/MaxwellLink.git /tmp/MaxwellLink
mkdir -p ~/.claude/skills
cp -r /tmp/MaxwellLink/skills/mxl-singlemode ~/.claude/skills/mxl-singlemode

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Single-mode cavity workflows (MaxwellLink)

## Use for fast prototyping
- Use `mxl.SingleModeSimulation` when a 1-mode cavity surrogate is sufficient and Meep is too heavy.

## Configure
- Set `dt_au`, `frequency_au`, `damping_au`, `coupling_strength`, and `coupling_axis`.
- Optional physics knobs used in strong-coupling workflows: `include_dse`.
- Drive routing knobs: `excite_ph` (default `True`) sends the `drive` term to the cavity EOM; `excite_mol` (default `False`) adds the `drive` term to the effective electric field acting on the molecules along `coupling_axis`. Enabling both at once is allowed but emits a warning.
- Thermal knobs: `temperature_au` (a.u., default `0.0`) sets the thermal scale. Add `initializer="maxwell_boltzmann"` to seed initial `qc`/`pc` from a Maxwell-Boltzmann distribution, overriding any user-provided `qc_initial`/`pc_initial`. Add `langevin_tau_au` (Langevin relaxation time, a.u.) to thermostat the cavity momentum every step; leave `langevin_tau_au=None` for NVE dynamics. Use `random_seed` for reproducible sampling/kicks.
- Attach molecules in embedded or socket mode (same `Molecule` interface as elsewhere).

## Prefer templates
- Template: `skills/mxl-project-scaffold/assets/templates/singlemode-tls-socket-tcp`

## References
- Recipes: `skills/mxl-singlemode/references/singlemode_run_recipes.md`
- Docs: `docs/source/em_solvers/single_mode_cavity.rst`
Read the full skill on GitHub

Details

Skill name
mxl-singlemode
Path
skills/mxl-singlemode/SKILL.md
License
GPL-2.0
Repo updated
17 November 2026

FAQ

What does the Mxl Singlemode skill do?

This skill should be used when users need the MaxwellLink single-mode cavity solver for fast prototyping and regression, in either socket or embedded mode.

How do I install the Mxl Singlemode skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add TaoELi/MaxwellLink --skill mxl-singlemode. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Mxl Singlemode popular?

It lives in TaoELi/MaxwellLink, which has 9 GitHub stars and 5 forks.

Related skills

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.