# AI & LLM docs

> Everything on this site is also published as plain Markdown, with an `llms.txt` index, a single-file `llms-full.txt`, a JSON Schema and a drop-in agent skill.

vidmake is built for AI agents, and so are its docs. Every page you can read here has a Markdown twin
that a model can fetch, quote and reason about without parsing HTML, and the CLI ships the same reference
offline with `vidmake docs`.

## What's published

| URL | what it is | use it for |
|---|---|---|
| [`/llms.txt`](https://vidmake.app/llms.txt) | An index of every page with one-line summaries, following the [llms.txt convention](https://llmstxt.org) | Letting an agent pick the pages it needs |
| [`/llms-full.txt`](https://vidmake.app/llms-full.txt) | All docs pages and blog posts concatenated into one Markdown file | Pasting the whole manual into a context window |
| `/docs/<page>.md` | Each docs page as Markdown, e.g. [`/docs/text.md`](https://vidmake.app/docs/text.md) | Fetching exactly one topic |
| [`/docs/reference.md`](https://vidmake.app/docs/reference.md) | The complete format reference, byte-for-byte what `vidmake docs` prints | The single most useful page for writing projects |
| [`/schema.json`](https://vidmake.app/schema.json) | The JSON Schema from `vidmake schema` | Structured output, editor validation |
| [`/ai/SKILL.md`](https://vidmake.app/ai/SKILL.md) | A ready-made agent skill: when to use vidmake and the loop to follow | Claude Code and other skill-aware agents |
| [`/ai/AGENTS.md`](https://vidmake.app/ai/AGENTS.md) | vidmake's `AGENTS.md`: the loop and the rules, for agents that make videos | Dropping into a project that makes videos |
| `/demos/<id>.json` | The exact project behind every demo video on the site | Few-shot examples |

In the Markdown versions, every rendered demo becomes its full JSON in a code block plus a link to the
video, every CLI capture becomes a console block with the real output, and every link points at another
`.md` file, so an agent can crawl the docs without ever touching HTML.

Each HTML page also advertises its Markdown twin with `<link rel="alternate" type="text/markdown">`
and has **Copy as Markdown**, **View .md**, **Ask Claude** and **Ask ChatGPT** buttons under its title.

## Offline: `vidmake docs`

The binary carries the full reference, so an agent never needs network access to learn the format:

```console
$ vidmake docs presets
## Presets: enter and exit

A layer *enters from* a state and *exits to* one; vidmake animates between that state and the layer as written:
```json
"enter": { "from": { "opacity": 0, "y": "0.3em", "blur": "0.15em" }, "motion": "snap", "delay": "@title" }
"exit":  { "to": { "opacity": 0, "scale": 0.96 } }
```
State properties: `opacity` (0..1), `x`, `y` (offsets: px, `"%"` of the parent, `"em"` of the font size), `scale`,
`scaleX`, `scaleY`, `rotate` (degrees), `blur` (px or em). Each may carry its own motion, so opacity can finish before
the move settles: `"from": { "opacity": 0, "y": { "value": 40, "motion": "bouncy" } }`.

| field | default | notes |
|---|---|---|
| `type` | | a preset (below); `from`/`to` adjust it: `{ "type": "fadeUp", "from": { "blur": 8 } }` |
| `from` / `to` | | the state (`from` for enter, `to` for exit) |
| `motion` | enter `smooth`, exit easeInCubic 0.4s | a motion token (see **Motion**); a bare easing keeps the default duration |
| `delay` | 0 | enter only: time after the layer starts (markers work) |
| `duration`, `ease` | from `motion` | override the motion's duration or curve |
| `distance` | | px, for the presets that move |
| `clip` | | `"line"` (text `enter` only): each line shows only inside its own box, so glyphs rise from behind it |
| `feather`, `edge` | | wipes: soft edge (px) and a band of color riding it: `"#2563eb"` or `{ "color", "width" }` |

**Presets** are named states: `fade`, `fadeUp|Down|Left|Right` (fade + a short move: 0.3em for text, 32px otherwise),
`slideUp|Down|Left|Right` (from off the parent), `rise` (text: up from behind its line, motion `snap`), `scale`, `pop`
(from 0, motion `bouncy`), `zoom` (from 1.2 and transparent), `blur`, `rotate`, `wipeLeft|Right|Up|Down` (reveal mask),
`typewriter` (text). `"enter": "fadeUp"` is `{ "from": { "opacity": 0, "y": "0.3em" } }`. Enter and exit combine
with your own animations.
```

`vidmake docs` with no topic prints everything; `vidmake docs <topic>` matches a section heading
(`animation`, `expressions`, `captions`, `presets`, `rendering`, ...). An unknown topic lists the
available ones.

## Give an agent the right context

For a one-off task, the shortest reliable prompt is:

```text
Use vidmake to make the video. First run `vidmake docs` and read it. Give every layer an id.
Validate, then render a storyboard and look at it before the final render.
```

For a project where an agent will make many videos, add the skill or `AGENTS.md`:

**Claude Code**

```bash
mkdir -p .claude/skills/vidmake
curl -fsSL https://vidmake.app/ai/SKILL.md -o .claude/skills/vidmake/SKILL.md
```
The skill's description tells Claude when to use it; the body is the validate → storyboard → inspect → render loop.

**AGENTS.md**

```bash
curl -fsSL https://vidmake.app/ai/AGENTS.md -o AGENTS.md
```
Codex, Cursor, Aider and most other coding agents read `AGENTS.md` from the repository root.

**Any chat model**

Paste the contents of [`/llms-full.txt`](https://vidmake.app/llms-full.txt), or just [`/docs/reference.md`](https://vidmake.app/docs/reference.md) for a smaller context, then describe the video.

## Structured output

`vidmake schema` prints a JSON Schema for project files (also at [`/schema.json`](https://vidmake.app/schema.json)). It is
useful as a response format or tool schema, but it is deliberately permissive about animated values
(any numeric field can be a number, a percentage, keyframes, a tween, a spring or an expression).
`vidmake validate` is the real check: it compiles the project, resolves assets and fonts, evaluates
expressions and lints the layout. See [JSON Schema](https://vidmake.app/docs/schema.md) for editor setup.

## Why the CLI is agent-friendly

The docs only get an agent halfway; the other half is feedback. Every vidmake command that reports on a
project accepts `--json`, errors name the composition, layer id and field, and unknown fields come with
suggestions. The [agent workflow](https://vidmake.app/docs/agents.md) page walks through the loop, and
[Inspect & debug](https://vidmake.app/docs/inspecting.md) covers each command in detail.

> [!AGENT]
> If you are an AI agent reading this page: fetch `/docs/reference.md` (or run `vidmake docs`), write
> the project with an `id` on every layer, run `vidmake validate`, then `vidmake storyboard -o sb.png`
> and look at the image before you call `vidmake render`.
