{"slug":"analyze-optical-designs","title":"analyze-optical-designs","summary":"Scalar wave-optics analysis with the pinned Chromatix/Prysm runtime, covering Fresnel/Fraunhofer/angular-spectrum propagation, pupil- or Zernike-based PSF/MTF/OTF, computational imaging, and differentiable inverse design. Not for sequential lens prescriptions (use design-optical-","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-04T19:25:25.88988Z","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: analyze-optical-designs\ndescription: Scalar wave-optics analysis with the pinned Chromatix/Prysm runtime, covering Fresnel/Fraunhofer/angular-spectrum propagation, pupil- or Zernike-based PSF/MTF/OTF, computational imaging, and differentiable inverse design. Not for sequential lens prescriptions (use design-optical-systems), ZMX cross-checks (cross-check-optical-designs), or OpticStudio (ai-zemax-optical-design).</h2>\n<h1>Analyze Optical Designs</h1>\n<p>Use a dedicated Python 3.12 environment installed from this skill's <code>requirements.txt</code> (see <code>references/runtime-lock.md</code>). Below, <code>&lt;python&gt;</code> is that environment's interpreter and <code>&lt;skill-dir&gt;</code> is this skill's folder.</p>\n<h2>Workflow</h2>\n<ol>\n<li>Read the optical prescription, pupil, sampling, wavelength, refractive index, focal length, detector pitch, units, and expected outputs.</li>\n<li>Preserve all source files. Write generated arrays, figures, and reports to a new output directory.</li>\n<li>Choose the numerical engine:\n<ul>\n<li>Use Chromatix for JAX-based differentiable wave optics, computational imaging, PSF engineering, and inverse design.</li>\n<li>Use Prysm for physical-optics propagation, pupil and aberration models, PSF/MTF/OTF, detectors, interferometry, and engineering metrics.</li>\n<li>Use both for cross-checks when their physical assumptions overlap.</li>\n</ul>\n</li>\n<li>Record sampling, normalization, propagation convention, boundary treatment, backend, package versions, and pinned Git commits.</li>\n<li>Qualify the runtime with <code>scripts/optics_regression.py --self-test</code> before its first numerical use, after dependency or regression-code changes, or when numerical failures cast doubt on it. Reuse a passing result only while <code>requirements.txt</code> and <code>scripts/optics_regression.py</code> are unchanged; task-specific physical checks still apply.</li>\n<li>Validate conservation or normalization where physically applicable and report numerical tolerances.</li>\n<li>Mark comparisons to Zemax, CODE V, measured hardware, or published data as unverified unless the corresponding source is supplied.</li>\n</ol>\n<h2>Safety And Reproducibility</h2>\n<ul>\n<li>Do not control cameras, SLMs, stages, lasers, or other instruments from this skill.</li>\n<li>Use a new path for <code>optics_regression.py --output</code>: the script creates missing parent directories and overwrites an existing file at that path without a prompt. Omit <code>--output</code> to read the JSON on stdout.</li>\n<li>Never invent material constants, coating data, tolerances, or detector parameters.</li>\n<li>Use SI units internally unless a library API explicitly requires another unit; label every conversion.</li>\n<li>Fix random seeds for stochastic optimization and save the seed with results.</li>\n<li>Use the JAX CPU backend. GPU is not qualified; enable it only after checking JAX and driver compatibility, and record the backend.</li>\n<li>Pin new dependencies or upstream revisions before adding them to the workflow.</li>\n</ul>\n<h2>Regression Command</h2>\n<pre><code>&lt;python&gt; -I &lt;skill-dir&gt;/scripts/optics_regression.py --self-test\n</code></pre>\n<p>The command must exit 0 with <code>passed: true</code>, which requires matching commit pins, an installed set identical to <code>requirements.txt</code> (pytest and its helpers are reported but ignored), and passing <code>chromatix</code>, <code>prysm</code>, <code>chromatix_gradient</code>, and <code>prysm_analytic_mtf</code> checks. Read <code>references/runtime-lock.md</code> when recreating, auditing, or updating the runtime.</p>\n<h2>Reporting</h2>\n<p>Report inputs, units, assumptions, backend, package/commit provenance, commands, numerical checks, output paths, and unresolved physical uncertainties. Separate simulated results from measured or externally validated results.</p>\n","files":[{"path":"agents/openai.yaml","sizeBytes":256,"isText":true},{"path":"references/runtime-lock.md","sizeBytes":2569,"isText":true},{"path":"requirements.txt","sizeBytes":532,"isText":true},{"path":"scripts/optics_regression.py","sizeBytes":8227,"isText":true},{"path":"SKILL.md","sizeBytes":3513,"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:40.300878Z","sha256":"FCF97708CA3D534F271C1E07E3E866D1DF04A5D3E372ADDC35CBC80E68FBA705","sizeBytes":6903},"review":null,"source":{"repositoryUrl":"https://github.com/laweit-lxy/optics-agent-skills","path":"skills/analyze-optical-designs","license":"MIT","commit":"4feb791a7b9ba8ec7cfbc84a9f7a20bacbd9a73d","subtreeSha":"17FE846D3CF5AF9A18B182DAC8FBDDF0D9AFC6C84AE6625498EA0D9F2BF778F7","lastSyncedAt":"2026-12-04T19:25:25.886171Z"},"reviewedAt":"2026-12-04T19:28:54.748438Z","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/analyze-optical-designs"},{"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"}]}