# Optical bench diagram

> Turn a verified optical setup into a 16:9 bench diagram: components in strict left-to-right order, one clear beam path, a title and three to five exact labels.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Education](https://www.sandbase.ai/skills/education)
- Version: 0.1.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/education/optical-bench

## What you get

Bring a title, the setup and three to five component labels in order. The Skill returns one 16:9 bench diagram and a bilingual run report.

## Install

Download the Skill package from https://www.sandbase.ai/skills/education/optical-bench (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/optical-bench Draw a bench diagram: laser, beam expander, convex lens, screen, with one beam path
```

## How it works

1. **Describe the verified optical setup** Optical Bench Diagram reads a title of up to 60 characters, a setup description of up to 800 characters and three to five labels, one per line, each up to 32 characters. The bundled brief, Focusing a Laser Beam, lists a laser, a beam expander, a convex lens and a screen on one rail, left to right. Labels must follow bench order, because they are drawn exactly as supplied.
2. **Render the bench diagram** The Skill runs on Node.js 18 or later in SandBase Sandbox and needs SANDBASE_API_KEY in the environment. Try node scripts/generate.mjs plan --brief assets/sample-brief.en.json --out /tmp/optical-plan first, which stays offline. The run step then asks openai/gpt-image-2.5-flare for one 16:9 PNG at high quality and 2k, with a strict left-to-right component order and a single clear beam path.
3. **Verify labels and beam order** The output is bench-diagram.png with report.json, report.en.html and report.zh-CN.html. Compare the title and each label character by character with the brief; only those strings may appear, and anything else is a defect. Inspect composition and contrast at full resolution and at 320 by 180. validation.ok covers the file contract, while text accuracy stays a human review.

## FAQ

### What does Optical Bench Diagram produce?

Optical Bench Diagram produces one presentation-ready 16:9 PNG of an optical setup, with components in strict left-to-right order, one clear beam path, a title and three to five exact labels. It suits a lecture slide, a paper figure draft or a lab handout where a researcher or educator already knows the component order.

### Can Optical Bench Diagram simulate how light behaves?

No. Optical Bench Diagram draws an illustration of a setup you have already verified. The Skill declines optical simulations, assembly drawings and values that have not been verified.

### Is Optical Bench Diagram free to run?

No. Optical Bench Diagram generates its figure with openai/gpt-image-2.5-flare, and each approved brief is billed to your SandBase account as one image. The plan command shows what will be sent without a network call, and run stops before submitting if the inspected estimate is above --budget. The report records the cost afterwards, and rates are at https://www.sandbase.ai/pricing.

### How many components can Optical Bench Diagram label?

Optical Bench Diagram labels three to five components, one label per line in the labels field. Each label can be up to 32 characters in English, or up to 20 characters when language is zh-CN. The title is limited to 60 characters in English and 16 in Chinese, and it is drawn once as the heading.

### Why might Optical Bench Diagram show a wrong label?

Optical Bench Diagram relies on the image model to letter the title and labels, and model lettering can fail. The report therefore keeps text_accuracy at needs_review, and you should compare every label against the brief. If the image is wrong, keep the state; another attempt needs a fresh approved brief, never an automatic replacement.

## Examples

- Optical bench diagram (image)
