# River Era: Valley Years

> Scrub an authored river settlement timeline from camp and farms to town, workshops and speculative towers. Actual seeded geometry changes reversibly; boats and vehicles follow the same river and bank equations. This is an illustrative sequence rather than predictive history.

- 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/river-era

## What you get

Bring a valley, six illustrative eras and optional palette. The Skill returns a downloadable Skill, interactive demos and example videos.

## Install

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

```text
/river-era create <your valley and illustrative eras> with actual reversible geometry and shared river traffic paths
```

## How it works

1. **Describe the valley and its eras** River Era starts from prompt slots for the valley, its eras and palette. The sample command node scripts/fill-prompt.mjs --slots assets/prompts/examples/valley-years.json --out prompt.md renders the prompt for Valley Years, an authored six-era diorama that runs from an early camp and first farms through a river town, steam workshops and a modern center to a speculative harbor.
2. **Edit validated valley data offline** new-project generates the project, and npm ci installs pinned public build dependencies under Node 22.14.0. Edit src/valley.json for bilingual names of up to 40 characters, an integer seed from 1 to 999999, a duration of 15 to 30 seconds, three river layouts and three palettes. Each layout's bend runs from 1 to 2.8 and phase from -1 to 1. Invalid JSON returns a valley_ validation code.
3. **Scrub time and verify the geometry** npm run build:single writes dist-single/index.html, which runs offline with no external assets or storage, and npm run shoot verifies it. Check that dragging the timeline backward removes buildings exactly, that boats follow the river and vehicles the bank roads, and that Space, R, V and the arrow keys respond. Deliver the editable source, the HTML and the actual verification report.

## FAQ

### What does River Era show?

River Era shows a 3D river settlement that grows through authored eras as you scrub a timeline. Building groups, heights, roofs, towers and routes come from the timeline position, while boats travel the winding river and vehicles drive the bank roads. You can orbit, zoom, pick an era, change the valley or palette and toggle synthesized tones.

### Is River Era a history or economy simulation?

No. River Era is an illustrative visual sequence, not a predictive history or economy model. The six eras and building schedule are authored by hand, and the roads, bridges, farms and towers are visual geometry. It calculates no population, construction cost, historical accuracy or economic outcome, and traffic does no collision planning.

### Does River Era cost anything to run?

River Era has no key and makes no runtime model call. Your agent edits the generated project offline, and npm ci only installs pinned public build dependencies, so the scene and its rebuilds carry no SandBase charge. The built page needs no network and keeps all state in memory.

### Can River Era run time backward?

Yes. River Era derives the scene from timeline progress rather than accumulating construction actions, so dragging backward removes buildings and routes exactly as they appeared. Reset clears the timeline, and changing the valley keeps the chosen palette. With reduced motion the scene starts still and decorative travel stops, while explicit play stays available.

### Where can I embed River Era?

River Era's single HTML file works offline or inside a sandbox that allows only scripts, carrying its dependency notices. Compact touch controls sit outside the stage and were verified under browser touch emulation, which does not prove performance on physical devices.

### What can I change in River Era without new geometry?

River Era lets you change bilingual names, the seed, the duration and three bounded river layouts and palettes in valley.json. Heights, plot count and map dimensions are authored in city.mjs and world.ts, so changing them means updating geometry and tests together. The Skill asks you to validate an alternate bounded configuration too.

## Examples

- River Era interactive settlement timeline (scene)
- River Era: Valley Years (video)
