# Koi Basin

> Twelve koi in a basin under noon light. Towed-chain spines with wander, soft walls and pursuit steering; tap scatters them, hold scatters pellets.

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

## What you get

Bring a basin and the koi to swim in it. The Skill returns a downloadable Skill and a runnable koi basin.

## Install

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

```text
/koi-basin build a schooling-fish pond on <your basin theme>
```

## How it works

1. **Pick a pond theme** Koi Basin is a top-down noon pond with twelve koi in kohaku, showa, ogon and tancho patterns cruising between two stones and a lily pad. An English brief and the lantern-zh Chinese brief set the copy. A prompt such as 'Use koi-basin to build a schooling-fish pond on a temple courtyard theme' tells your agent what to restyle.
2. **Steer the towed-chain fish** Each fish is a head towing a 14-node chain, every node held one segment behind its predecessor, with a 12-knot width profile and a lateral swimming wave. Steering sums Ornstein-Uhlenbeck wander, soft walls, stone and neighbour repulsion, pellet pursuit with swirl and pointer following. Tap scatters the school, holding drops food, and dragging lures the nearest fish.
3. **Build and check the mechanism** npm run build writes one offline dist/index.html and npm run build:zh the Chinese version, with no assets or network. npm run shoot asserts the mechanism rather than pixels: the width profile at all 12 knots, spine spacing within 1e-5, a tap scattering fish and opening ripples, a pellet eaten and a follower picked. Version 0.1.1 passed 12 of 12.

## FAQ

### What can I do in Koi Basin?

Koi Basin lets you tap the water to send a ripple and scatter the fish, hold to scatter food pellets they chase with a swirl, and drag so the nearest koi follows your pointer. Idle fish also gulp at the surface every so often. Touch uses the same gestures on a phone.

### How does Koi Basin make the fish swim?

Koi Basin drags each of 14 spine nodes to sit exactly one segment behind the one before, so the body trails the head like a chain with no joint physics. A sine wave across the width adds the swimming motion, and a speed envelope ramps thrust in fast modes and kicks again when cruising slows.

### Are the Koi Basin caustics animated by a shader?

No. Koi Basin bakes its caustics under the noon light, so the surface shimmers without running a shader loop. Everything else, including fish patterns, stones and the lily pad, is drawn procedurally with no image files.

### Does Koi Basin need a model or network access?

No. Koi Basin sends all randomness through one seeded generator per pond and runs from a single local HTML file, so it never reaches a model and nothing is billed. The headless check runs in Chrome with zero network requests.

### Can I change the number of koi in Koi Basin?

Koi Basin ships with twelve fish and fourteen spine segments each, as recorded in the release facts. Changing the count is a source edit, and the verification asserts that all twelve settle inside the basin, so that check would need updating too.

## Examples

- Koi Basin noon pond (scene)
- The Noon Basin (video)
