# Starling Marsh

> A murmuration of about three thousand starlings on a uniform-grid neighbourhood — two attractor lobes, a stooping falcon, an agitation wave and a pointer raptor.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Interactive 3D](https://www.sandbase.ai/skills/interactive-3d)
- Version: 0.2.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/interactive-3d/starling-marsh

## What you get

Bring a flock and the raptor that hunts it. The Skill returns a downloadable Skill and a runnable murmuration.

## Install

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

```text
/starling-marsh fly <your murmuration> around <your raptor>
```

## How it works

1. **Build the dusk marsh page** Starling Marsh builds with npm run build into dist/index.html for the English brief, or npm run build:zh for the reed-zh Chinese brief. The scene is fully procedural, with no assets and no network, so the one file opens offline. It shows about 3,000 starlings streaming as a ribbon over a reed bed at dusk.
2. **Steer the flock with grid boids** Each bird reads its own grid cell and the 8 neighbours for alignment, cohesion and separation, and a crowd term above 2.2 pushes over-dense patches apart. Birds home to the nearer of two orbiting attractor lobes, a scare spreads as a travelling agitation wave, and the falcon stoop splits the flock left and right of its dive line.
3. **Call the roost and shoot checks** Use bring them in or send them up, release the falcon, or new evening to reseed, and move the pointer to steer a hunting raptor. npm run shoot builds, serves the page in headless Chrome with zero network and asserts the mechanism: grid occupancy, pulsing lobe separation, wave spread, raptor scares, falcon peak scare and landing. All 16 checks passed.

## FAQ

### What does Starling Marsh show?

Starling Marsh shows an interactive murmuration of about 3,000 starlings over a reed bed at dusk. The flock folds around two slowly orbiting lobes, panics in a travelling wave, scatters when a falcon stoops through and pours down into the reeds when you call it. A pointer-led raptor unsettles whatever it crosses, and a press makes a stoop ripple.

### Is the Starling Marsh flock a real boid simulation?

Yes. Starling Marsh steers each starling by its neighbourhood on a uniform grid, using alignment, cohesion with a crowd term and separation from up to 7 sampled neighbours. Birds beyond the frame fly alone without a cell.

### Does Starling Marsh need a key or any downloads?

No. Starling Marsh is fully procedural and offline, with no assets, no network and no model calls. The whole scene ships as one dist/index.html, so watching or building it is not billed.

### What happens when the Starling Marsh birds roost?

Starling Marsh's call-down moves both lobes to the roost, flips birds in range to a landing state, pours them down a neck that fans out to individual landing heights and then puts them asleep. Send them up, or flush, relaunches the whole flock aloft.

### Why does a Starling Marsh test read zero scared birds?

Starling Marsh's scare wave only exists while a scare's age is between 4 and 8.5 frames, and it clears after about 52. A test that steps past that window sees nothing, so measure the peak during the window. Likewise the lobe pulse reads 0 until T reaches about 8, so preset T to 9 first.

## Examples

- Starling Marsh (scene)
- Dusk Murmuration (video)
