# Field Lines: Charge Bench

> Drag point charges and watch Coulomb field lines, voltage contours and a test charge's force recompute live.

- 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/field-lines

## What you get

Bring charge layouts, the lesson or challenges and an optional palette. The Skill returns a downloadable Skill, an interactive demo and an example video.

## Install

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

```text
/field-lines build an interactive electric field bench with <your charge layouts>, guided challenges about <your lesson>, live Coulomb field lines, equipotentials and a test charge, in English and Chinese
```

## How it works

1. **Fill the charge bench** Field Lines fills its prompt with node scripts/fill-prompt.mjs --slots assets/prompts/examples/charge-bench.json --out prompt.md, then sets up a project with node scripts/new-project.mjs --out my-field and npm ci. Charges, layouts, voltage levels, palette, challenge text and the cover sequence live in src/lab.json. The physics sits in src/field.mjs, shared by the page and its tests.
2. **Drag charges and test** Drag a charge with mouse or touch, or focus it and use the arrow keys, + and - to resize and Delete to remove. Coulomb field lines run from positive to negative at 8 lines per unit of charge and never cross; dashed equipotentials meet them at right angles. A test charge shows its force and, once released, the path it takes. Five layouts and three challenges ship.
3. **Build and check the physics** npm run build:single writes one offline HTML file with English and Simplified Chinese, and npm run shoot -- --file dist-single/index.html runs the checks in references/verification.md. The release verified line counts, zero crossings, orthogonal contours, symmetry, determinism and a 345 by 345 embed. Node 22.4 builds it and Chrome verifies it. Invalid lab data fails with a stable lab_ error code.

## FAQ

### Is Field Lines an animation?

No. Field Lines computes lines, contours, forces and paths in the browser from the charges you place. Moving a charge redraws the whole field. Because the same module drives the page and its tests, the checks on line count, crossings and right-angle contours test the code the page actually runs.

### Why does the Field Lines test charge leave the field line?

Field Lines moves a released test charge by its actual motion, and a particle keeps its momentum. Where the lines curve, the path drifts outside them instead of tracing a line exactly.

### Is Field Lines accessible?

Field Lines is designed toward WCAG 2.2 AA, with labelled controls, visible focus, keyboard movement and a live text description of the field. Full conformance still needs testing with assistive technologies and expert review, so treat it as a design goal rather than a certified result.

### Does Field Lines need a key or model?

No. Field Lines needs no key, model call, external asset or storage, so building, embedding or playing it is not billed. The maintainer publisher builds first-party source in an isolated copy with no credentials.

### What are the Field Lines challenges?

Field Lines ships three guided challenges in the Charge Bench example, each with predict, try and explain steps and a live checklist. The four field-line rules are drawn on the field itself.

## Examples

- Field Lines interactive electric field bench (scene)
- Charge Bench (video)
