Public Beta
Not set

Experience

Changes how pages explain things, never what you can do.

More

Experience

Changes how pages explain things, never what you can do.

Sign inGet started

Video Script v0.1.2 · claude-code

Archive SHA-256 2ef857b7459fdf2b0c1ad0505137b2b3b2de642268f4870eb7a8fedded811e79 · 25.5 KB · built Nov 27, 2026

README.md

# Video Script (AgentRove native agent)

`agentrove.video-script` 0.1.2 · MIT · Node.js >= 20 · no npm dependencies · offline

Published by AgentRove (provisional, configurable name). Package identifiers keep the agentrove prefix for compatibility.

Builds a short-form video script (15-90 s) from a research brief, such as the output of the
content-research agent. The script has a hook, one body segment per sourced key point, and a call to
action. Timings come from word count. Every factual statement in the body is a claim taken
verbatim from the brief and listed with its source URLs, so you (or the fact-check agent) can
verify each one. It also exports SubRip (`.srt`) captions. It is deterministic and uses no AI model.

## Tools

| Tool | Side effects | What it does |
| --- | --- | --- |
| `build_script` | none | `research_brief` in, `script` + `captions_srt` out. Body segment text is `According to <site>: <claim>` (or the bare claim with `attribute_sources: false`). Key points without an http(s) source URL are skipped with a warning; points that do not fit the duration are left out with a warning, never truncated. |
| `captions_from_script` | none | Re-exports `.srt` captions from an edited script's timed segments. |

Warnings name the segments that need attention: when the brief's open questions (as written by the
content-research agent) say sources disagree about points used in two segments (for example 18% vs
25%), when a segment's point is contradicted by another source, and when a segment rests on a single
source. Briefs from other tools get the generic open-question warning only.

Captions: a segment that does not fit in one cue (two lines of `max_chars_per_line`, default 42) is
split into cues of similar length, breaking after sentence or clause punctuation where possible, so
there are no one-word cues.

Timing: each segment lasts `words / words_per_second` (default 2.5 words/s, configurable 1.5-4),
segments run back to back (optional `pause_seconds` between them), and the word budget is
`floor(target_seconds × words_per_second)`. Real delivery varies, so re-time captions after
recording if needed.

The default hook ("What do the sources say about <topic>? Here are N points.") and CTA ("Check the
linked sources before you share this.") make no factual claims. If you supply your own `hook` or
`cta`, the output warns that it is unsourced.

## Usage (Node CLI)

```sh
node bin/cli.js --help
node bin/cli.js build_script --input script-input.json
node bin/cli.js captions_from_script --input edited-script.json
```

`script-input.json`:

```json
{
  "brief": {
    "topic": "heat pump adoption in Europe",
    "key_points": [
      { "claim": "Heat pump sales in Europe grew 30% in 2025, according to the industry association.", "sources": ["https://energy.example.org/a"] }
    ],
    "open_questions": []
  },
  "target_seconds": 30,
  "words_per_second": 2.5
}
```

To save captions, write `captions_srt` from the JSON output to a `.srt` file yourself, for example:

```sh
node bin/cli.js build_script --input script-input.json > out.json
node -e "process.stdout.write(JSON.parse(require('fs').readFileSync('out.json','utf8')).captions_srt)" > captions.srt
```

## Use as an MCP server

```sh
claude mcp add video-script -- node /absolute/path/to/video-script/bin/mcp.js
```

```json
{ "mcpServers": { "video-script": { "command": "node", "args": ["/absolute/path/to/video-script/bin/mcp.js"] } } }
```

`claude-code/SKILL.md` is a Claude Code skill that drives the CLI.

## Testing status

Tested with Node.js (Vitest, `tests/video-script.test.ts`, fixture briefs only). It has **not yet
been verified inside Claude Code** or any other MCP client by AgentRove.

## Limitations

- It does not write new prose: body text is the brief's claims, which can read as dry. Edit the
  script yourself if you want a different voice, and re-run fact-check on anything you change.
- No text-to-speech, video rendering or publishing. Output is text only.
- Word-count timing is an estimate. Numbers, URLs and abbreviations take longer to say.
- Captions use LF line endings and at most two lines per cue (default 42 characters per line).
- A point longer than the remaining budget is skipped, not shortened, so meaning is never cut off.

Find an agent

Do not include passwords, keys, customer data or other confidential details.
Rule-based matching is free during the public beta (fair use).