Skip to main content
Glama
README.md
# storyboard

Storyboard an agentic product before you build it.

Directors draw a film before they shoot it. Each panel says where we are, who is
in frame, what they want, and what happens. With agents, building got cheap.
The board is where the design happens now.

storyboard is a skill and an MCP server for coding agents. It runs a design
session by asking, one question at a time: what primitives the product has,
who the characters are (engineers, leaders, executives, and the agent), what
each one wants, where they meet without talking, and what happens, beat by
beat. Then it draws the board.

![A storyboard for an agent that migrates services to a new auth client](docs/board.png)

## What you get

One HTML page you can open, share and print:

- **On the table.** Every primitive, scattered before any screen exists.
- **The cast.** Each person with four wants, a fear, and the signal that lets
  them stop checking. The agent with one goal.
- **Situations.** The moments that hold a choice.
- **Where they meet.** The places each character looks for the others, and
  what must be visible there.
- **The board.** Drawn panels with typed captions. Watch it as each character.
  Open any beat to reason with it: what it asks, its risk, what it decided.
- **Read it back.** The story told from each character and each situation.
- **What the board decided**, and **open questions** the checker found.

The example in [examples/](examples/) is a full board:
[auth-migration.storyboard.json](examples/auth-migration.storyboard.json)
renders to [auth-migration.html](examples/auth-migration.html).

## The method

Six movements, in order:

1. **Scatter the primitives.** The things, moves, signals and gates.
2. **Cast the characters.** Ask each what they want: to win, to get it right,
   to keep it interesting, to account for everything.
3. **Set the situations.** Moments with a real choice, not a toll.
4. **Find where they meet.** For each pair who never talk, the place both would
   look. Design the meeting there.
5. **Board the beats.** Shots are altitudes: wide for leaders, close for
   engineers, insert for executives.
6. **Read it back.** Where a character's story stalls, the design does too.

The method comes from the essay series
[Situations, not screens](https://chetanconikee.com/), and part 8,
[Storyboard the work before you build it](https://chetanconikee.com/posts/storyboard-the-work/).
The MCP server serves each essay as a lens, so the agent reads the source
before it leans on a principle.

## Connect it

Needs Node 18 or later. Nothing to install from npm.

### Claude Code

Paste this message into Claude Code. It sets everything up and checks that it
worked.

> Set up the storyboard skill and MCP server. Clone https://github.com/conikeec/storyboard
> into ~/.claude/skills/storyboard (pull if it's already there). Then run:
> `claude mcp add --scope user storyboard -- node ~/.claude/skills/storyboard/mcp/server.mjs`.
> If a storyboard server is already set up, replace it. Then call the design_lenses
> tool and tell me how many lenses it returned. If the tool only shows up in a new
> session, tell me. Last, ask me whether you should add this line to ~/.claude/CLAUDE.md,
> and add it only if I say yes:
> "For agentic product and interaction design, storyboard it first with the storyboard tools."

By hand:

```sh
git clone https://github.com/conikeec/storyboard ~/.claude/skills/storyboard
claude mcp add --scope user storyboard -- node ~/.claude/skills/storyboard/mcp/server.mjs
```

Start a new session, then say *storyboard this: an agent that ...*

### Codex

Clone the repo into `~/.agents/skills/storyboard`, then add to
`~/.codex/config.toml`:

```toml
[mcp_servers.storyboard]
command = "node"
args = ["/Users/you/.agents/skills/storyboard/mcp/server.mjs"]
```

### Cursor

Add to `~/.cursor/mcp.json`:

```json
{ "mcpServers": { "storyboard": { "command": "node", "args": ["/path/to/storyboard/mcp/server.mjs"] } } }
```

## The MCP server

| Tool | What it does |
| --- | --- |
| `storyboard_method` | The six movements, the shot grammar, the rules for asking |
| `question_bank` | Questions for one movement, and for one audience |
| `design_lenses` | The essays, each distilled into a principle and questions |
| `read_lens` | One essay in full, fetched live |
| `new_storyboard` | A blank spec with the usual cast |
| `check_storyboard` | Gaps as questions, the board map, the narratives |
| `render_storyboard` | The HTML board, written to a file |

It also serves the method, the spec format, the example and each essay as
resources, and a `storyboard` prompt that starts a session.

## The CLI

```sh
node bin/storyboard.mjs new "an on-call agent" --out storyboard.json
node bin/storyboard.mjs check storyboard.json    # gaps as questions, exits 1 if any
node bin/storyboard.mjs render storyboard.json   # storyboard.html
node bin/storyboard.mjs board storyboard.json --cols 2   # the board alone, to embed
node bin/storyboard.mjs read storyboard.json     # narratives as JSON
```

The spec format is in [references/spec.md](references/spec.md).

## Files

| Path | What |
| --- | --- |
| `SKILL.md` | The skill: how the agent runs a session |
| `references/` | Method, question bank, lenses, spec format |
| `lib/` | Drawing, panels, checker, renderer, method |
| `mcp/server.mjs` | The MCP server (stdio) |
| `bin/storyboard.mjs` | The CLI |
| `examples/` | A complete board |

## License

MIT