Communitygithub.com

story-engine

Turn evidence about a product, repo, service, or idea into three distinct viral-story options, then a retention-aware vertical video script and timed storyboard. Use for hooks, narrative structure, storytelling, beat maps, proof sequencing, and scriptwriting before any HyperFrames composition.

What is story-engine?

story-engine is a Cursor agent skill that turn evidence about a product, repo, service, or idea into three distinct viral-story options, then a retention-aware vertical video script and timed storyboard. Use for hooks, narrative structure, storytelling, beat maps, proof sequencing, and scriptwriting before any HyperFrames composition.

Works with~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/nikolas-sapa/hyperstory/tree/HEAD/skills/story-engine

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Story Engine

Most AI videos fail before rendering: they are feature lists with motion. This skill creates a story a specific viewer can follow once, muted, at phone speed.

Inputs

Read BRIEF.md, EVIDENCE.md, CLAIMS.md, and optional AUTOPSY.md. If they do not exist, create the minimum versions before continuing.

Step 1: Lock the narrative atoms

Also write PAGE before ideation: Problem, Audience, Goal, Emotion. If the emotional change is empty, the film is decoration.

Every beat needs a belief sentence: “This beat buys the belief that …”. If it only buys “visual interest”, cut or replace it. Assign importance 1/2/3 and keep importance-3 beats scarce, roughly no more than a quarter of the film.

Write these before ideation:

  1. Viewer: one person, not a market segment.
  2. Before moment: what happens right before they need the subject.
  3. Pain cost: time, money, anxiety, embarrassment, complexity, missed opportunity.
  4. One promise: what changes, in viewer language.
  5. Proof object: the real thing that proves it (repo, UI, command, output, file, before/after).
  6. One remembered line: the sentence they could repeat later.
  7. Desired action: one action only.

If the subject has several strong benefits, choose one. The rest become support or future episodes.

Step 2: Write three different films

Create STORYLINES.md. Each option must differ in device and form, not just title.

Useful hook types: question, bold-but-truthful claim, number, before/after, gentle correction, curiosity gap, visual pattern break. Frame 0 should align image, line, and sound decision. A number must say what it counts, use the biggest true relevant scope, round down with + when volatile, and match the visual scope.

Useful devices:

  • result first, then rewind;
  • old way fails visibly;
  • one object travels through the system;
  • a single number becomes physical;
  • a question with the user's real input inside it;
  • before/after split collapsing into one;
  • a cursor or command becomes the protagonist;
  • the product is revealed through evidence fragments;
  • objection-first (“this sounds fake, so we checked”);
  • myth correction (“the viral claim is wrong; here's the real version”).

Useful forms:

  • continuous take through connected worlds;
  • object-to-object chain;
  • match cuts;
  • one frame rebuilding itself;
  • evidence cards assembling into a verdict;
  • terminal-to-product-to-outcome chain;
  • zoom into one artifact;
  • split screen collapsing to one.

For each storyline include:

## Option A: name
Device/form:
First two seconds:
Viewer sees:
Beats: hook → tension → mechanism → proof → payoff → CTA
Proof objects:
Why a stranger follows it:
Risk:
Recommended? yes/no, one clause

Make one option bolder than the obvious product-demo ordering. Recommend the one a stranger can follow and remember, not merely the prettiest.

Step 3: Retention beat math

For a 45–60 second vertical reel, default shape:

beatsharejob
hook0–3screate tension or promise visually
context3–8sestablish viewer/problem
mechanism8–18sshow how it works
proof run18–38s3–5 evidence moments, each distinct
objection turn38–46sanswer the doubt the viewer already has
payoff46–54sresult arrives in the biggest visual moment
CTAfinal 4–7sone action, held long enough to read

These are proportions, not rails. The evidence decides. A new informational or visual beat should arrive about every 1–3 seconds in fast social formats. The payoff belongs before the viewer would swipe, not after the logo.

Step 4: Script voice and screen separately

Write two layers:

  • VO/spoken layer: conversational, causal, specific;
  • screen layer: compressed fragments the eye can read instantly.

Never paste the same sentence into both unless the line is the climax. The screen should still make sense muted; the voice should still make sense eyes-closed.

Rules:

  • first line cannot be “Introducing”, “Meet”, or a logo;
  • no “unlock”, “seamless”, “supercharge”, “game-changing”, “revolutionary”;
  • no unsupported absolute (“never”, “100%”, “guaranteed”, “every”);
  • one idea per sentence;
  • use the viewer's verbs, not internal product nouns;
  • claims must match CLAIMS.md.

Step 5: Write STORYBOARD.md

Use the template at templates/docs/STORYBOARD.md. Each beat needs:

  • start/end;
  • VO or silence;
  • exact screen copy;
  • evidence/proof object;
  • hero visual;
  • motion/carrier;
  • sound;
  • retention job;
  • claim IDs.

Then run:

python3 <skill-dir>/scripts/storyboard_lint.py STORYBOARD.md

Fix structural failures before composition. If a warning is intentional, write the reason in the storyboard.

Step 6: Creative world

Choose a world, not decorations: evidence desk, audit room, terminal causality, release pipeline, machine room, document assembly line. Layout, captions, motion, sound, and CTA should obey that world. For the default evidence-reel, the world is forensic: proof objects enter, connect, are audited, and assemble into a verdict.

Step 7: Anti-generic pass

Reject the storyboard if it contains:

  • three interchangeable feature cards;
  • a black void with floating UI;
  • everything fading/sliding in the same way;
  • a logo opener;
  • proof claims without visible proof;
  • a payoff after the end card;
  • copy that could apply to any AI tool unchanged.

The replacement must come from the subject's own evidence, vocabulary, interface, or user moment.

Output contract

At completion the project contains:

  • STORYLINES.md with three options and one recommendation;
  • SCRIPT.md with VO and screen layers separated;
  • STORYBOARD.md validated by storyboard_lint.py;
  • claim IDs mapped into beats;
  • explicit assumptions and open questions.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

Related Skills