{"slug":"design-optical-systems","title":"design-optical-systems","summary":"Analyze a local sequential lens prescription (absolute-path .zmx) or the built-in Cooke/Double-Gauss/Hubble samples with the pinned Optiland 0.6.3 runtime, reporting EFL/F-number, spot, OPD and scalar FFT PSF/MTF, read-only. Use when an agent needs reproducible geometric/wavefron","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-04T19:25:26.797592Z","repo":{"url":"https://github.com/laweit-lxy/optics-agent-skills","stars":11,"forks":4,"license":"MIT","updatedAt":"2026-12-04T12:18:20Z"},"bodyHtml":"<hr>\n<h2>name: design-optical-systems\ndescription: Analyze a local sequential lens prescription (absolute-path .zmx) or the built-in Cooke/Double-Gauss/Hubble samples with the pinned Optiland 0.6.3 runtime, reporting EFL/F-number, spot, OPD and scalar FFT PSF/MTF, read-only. Use when an agent needs reproducible geometric/wavefront metrics or Optiland runtime qualification. Not for wave-optics propagation or inverse design (analyze-optical-designs), independent cross-software checks (cross-check-optical-designs), or editing/optimizing in OpticStudio (ai-zemax-optical-design).</h2>\n<h1>Design Optical Systems</h1>\n<h2>Purpose</h2>\n<p>Generate reproducible optical-design metrics while keeping prescription source files read-only and separating numerical self-consistency from cross-software validation.</p>\n<h2>Workflow</h2>\n<ol>\n<li>Read <code>references/runtime-lock.md</code> and use only the pinned environment.</li>\n<li>Preserve the source prescription, reject URLs and symlinks, and record its SHA-256 digest.</li>\n<li>Run <code>--self-test</code> only when you need environment qualification by itself. To analyze a ZMX, run <code>--input-zmx</code> directly: it includes the same qualification and skips user-data analysis if qualification fails, so do not also run a separate self-test. Keep the built-in acceptance gate intact.</li>\n<li>For a local absolute-path <code>.zmx</code>, run the script with <code>--input-zmx</code> and write to a new JSON output. UNC paths and any symlink/junction path component are rejected; the report can never replace the source, including with <code>--force</code>.</li>\n<li>Review every <code>checks</code> entry and the <code>limitations</code> section. Treat a failed or skipped metric as unresolved rather than filling it with an estimate.</li>\n</ol>\n<p>When choosing a classic lens starting point, use the <a href=\"../../lens-starting-points/README.md\">starting-point catalog</a> in the full repository checkout, then analyze the selected <code>.zmx</code> with <code>--input-zmx</code>. A skill-only installation does not include the catalog or prescriptions.</p>\n<h2>Adjacent Skills</h2>\n<ul>\n<li>This skill: geometric ray tracing of sequential prescriptions and the scalar FFT PSF/MTF derived from those traces.</li>\n<li><code>analyze-optical-designs</code>: wave-optics propagation defined on pupils or fields, and inverse design.</li>\n<li><code>cross-check-optical-designs</code>: the independent second opinion. This skill does not compare itself with other software; Optiland vs. OpticStudio discrepancies are judged there.</li>\n</ul>\n<h2>Commands</h2>\n<p>Install the pinned environment once from this skill's <code>requirements.txt</code> (see <code>references/runtime-lock.md</code>). <code>&lt;python&gt;</code> is that environment's interpreter and <code>&lt;skill-dir&gt;</code> is this skill's folder.</p>\n<pre><code>&lt;python&gt; &lt;skill-dir&gt;/scripts/optiland_regression.py --self-test --output /absolute/new-result.json\n&lt;python&gt; &lt;skill-dir&gt;/scripts/optiland_regression.py --input-zmx /absolute/source.zmx --output /absolute/new-result.json\n</code></pre>\n<p>The self-test uses Optiland's synthetic/reference Cooke triplet, Double-Gauss, and Hubble telescope. It also checks immutable Hubble constants measured independently in OpticStudio 2023 R1.02. It is software verification, not a measured optical-system acceptance test.</p>\n<h2>Required Interpretation</h2>\n<ul>\n<li>Prescription distances and radii are millimetres; wavelengths are micrometres; spatial frequency is cycles/mm; OPD RMS is waves at the stated wavelength.</li>\n<li>Spot metrics are geometric ray metrics. FFT PSF/MTF are scalar calculations in the pinned NumPy backend; every report records requested and actual pupil sampling, FFT grid, strategy, and tilt handling.</li>\n<li>The built-in Cooke qualification uses a three-point radius sweep and verifies that the nominal radius is restored. <code>--input-zmx</code> does not sweep the supplied prescription. The qualification is not a manufacturing Monte Carlo or a tolerance yield claim.</li>\n<li>JSON equality and ZMX import/export are self-round-trips. They do not demonstrate semantic equivalence in Ansys Zemax OpticStudio.</li>\n<li>The pinned writer preserves binary64 numeric precision and emits Nd/Vd so the reader can disambiguate duplicate glass names inside declared <code>GCAT</code> catalogs. The regression requires Cooke catalog identity, actual n(λ) at all system wavelengths, and EFL to survive the self-round-trip. This does not guarantee every third-party importer will select the same catalog.</li>\n<li>Independent Hubble values must never be regenerated from Optiland. If they fail, investigate the implementation, definition/convention, or external reference before changing a constant or tolerance.</li>\n<li>Hubble RMS wavefront reduction is still sampling-limited, and the tangential field-curvature comparison remains a strict upstream <code>xfail</code>. Both are accepted long-term as non-blocking findings: keep them visible, do not loosen their thresholds or drop them to obtain a green report, and re-evaluate them at the next Optiland upgrade.</li>\n<li><code>--input-zmx</code> results cover only the surfaces and keywords Optiland parses; unsupported features may be silently ignored. Compare the reported <code>surface_count</code>, radii, thicknesses and stop with the source file before relying on the metrics.</li>\n<li>External compatibility remains version-specific. The repository's sample references came from OpticStudio 22.2.2 and were reproduced in OpticStudio 2024 R1, while the immutable upstream Hubble constants came from OpticStudio 2023 R1.02.</li>\n<li>Stray light, ghost analysis, non-sequential propagation, optomechanical coupling, coating manufacturing data, and full commercial-file feature coverage are outside this regression.</li>\n</ul>\n<h2>Acceptance Gate</h2>\n<p>Accept the runtime baseline only when:</p>\n<ul>\n<li>the source commit, installed-code manifest hash/count, and Python platform are recorded and the installed manifest matches the frozen value;</li>\n<li>Cooke prescription, EFL, F/#, spot arrays, OPD RMS, PSF, and MTF checks pass;</li>\n<li>the tolerance sweep is finite and restores the nominal radius;</li>\n<li>Optiland JSON round-trip is identical;</li>\n<li>Hubble and Double-Gauss ZMX self-round-trips preserve paraxial quantities at <code>rtol=1e-12</code> and real-ray image intercepts at <code>atol=1e-9</code>;</li>\n<li>Cooke surface-group EFL/ABCD composition passes without treating isolated group powers as additive system power;</li>\n<li>Cooke glass identity, actual n(λ), and EFL survive ZMX round-trip, and the float formatter recovers hard binary64 values exactly;</li>\n<li>Hubble first-order quantities, six real-ray intercepts, and two-field spot radii agree with immutable OpticStudio 2023 R1.02 references at their stated tolerances;</li>\n<li>the unresolved Hubble wavefront-sampling and tangential-field-curvature findings remain present and non-blocking; if either unexpectedly passes, treat it as a behavior change and investigate before updating documentation;</li>\n<li>the report retains all compatibility limitations.</li>\n</ul>\n","files":[{"path":"agents/openai.yaml","sizeBytes":248,"isText":true},{"path":"references/runtime-lock.md","sizeBytes":3128,"isText":true},{"path":"requirements.txt","sizeBytes":452,"isText":true},{"path":"scripts/optiland_regression.py","sizeBytes":39998,"isText":true},{"path":"SKILL.md","sizeBytes":6618,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-04T19:26:42.71461Z","sha256":"327C37D08E5402CE4B5C753CEED64166FD3E8882BEE1034A8280C1A351439133","sizeBytes":17358},"review":null,"source":{"repositoryUrl":"https://github.com/laweit-lxy/optics-agent-skills","path":"skills/design-optical-systems","license":"MIT","commit":"4feb791a7b9ba8ec7cfbc84a9f7a20bacbd9a73d","subtreeSha":"CC383FDEAE2B0D16D2EDB5C429D8E1B96558D7B12B3A97C976B3E6FE9A777FCC","lastSyncedAt":"2026-12-04T19:25:25.886171Z"},"reviewedAt":"2026-12-04T19:28:55.129793Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/laweit-lxy/optics-agent-skills/tree/main/skills/design-optical-systems"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install laweit-lxy-optics-agent-skills@llmmart"},{"target":"git","command":"git clone https://github.com/laweit-lxy/optics-agent-skills.git"}]}