Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

openstory

БесплатноЗапускает вложенные скриптыНе проверен

Work with OpenStory (github.com/openstory-so/openstory), the open-source AI script-to-video sequence platform built on Bun + TanStack Start + Cloudflare…

akillnessот akillness★ 63 звезды на GitHub

Об этом скилле

OpenStory — AI script-to-video sequence platform

OpenStory turns a written script into a styled video sequence: it splits the script into scenes, casts characters and locations from reusable team libraries, builds visual/motion/music prompts, renders frames through Fal.ai, animates them into motion clips, scores them, and merges the result. The whole app is a single Cloudflare Worker (src/server.ts) — D1 for data, R2 for media, 33 named Cloudflare Workflows for durable generation, and a Durable Object for SSE progress. Local dev runs that same Workerd runtime through Miniflare, so there is no "works locally, breaks in prod" gap.

When to use this skill

  • Cloning, bootstrapping, or running OpenStory locally (bun dev), or wiring the FAL_KEY / OPENROUTER_KEY needed for generation
  • Tracing or debugging the storyboard pipeline: why a sequence is stuck, which phase failed, what a workflow step actually produced
  • Adding or changing a Cloudflare Workflow, or hitting the WorkflowScopedDb / mid-run-read / replay-idempotency rules
  • Adding, hiding, or repricing an image / image-to-video / audio / LLM model
  • Changing the Drizzle schema or shipping a D1 migration safely
  • Deploying: deploy button, Workers Builds, PR previews, manual prod deploy
  • Contributing a PR (branch naming, Lefthook gates, pre-push checks)
  • Diagnosing one of the documented traps (bun test vs bun run test, remote D1 binding leak, nested migration files, silent cron drift, empty pricing)

When not to use this skill

  • Generic "make me an AI video" requests with no OpenStory repo involved → use video-production, vox-director, or video-shotcraft
  • Local desktop/timeline video editing → opencut, palmier-pro
  • Generic Cloudflare Workers/D1/Wrangler questions unrelated to this codebase → use the Cloudflare docs directly; this skill only encodes OpenStory's own contracts
  • Generic TanStack Start / Drizzle / Better Auth tutorials → those belong to their own docs; here they only appear as OpenStory conventions

Instructions

Step 1: Pick exactly one mode before touching anything

Mode Use when Go to
run-local first run, env keys, "nothing generates" Step 2
pipeline-trace a sequence is stuck/wrong, you need phase-level truth Step 3
workflow-authoring adding or editing src/lib/workflows/*-workflow.ts Step 4
model-catalog add/hide/reprice an image, video, audio, or LLM model Step 5
schema-migration Drizzle schema change or a D1 migration Step 6
deploy deploy button, Workers Builds, PR preview, manual prod Step 7
contribute opening a PR against upstream Step 8

Do not blend modes. If two apply, do the read-only one first.

Step 2: run-local — get a working local stack

git clone https://github.com/openstory-so/openstory.git
cd openstory && bun install && bun dev     # http://localhost:3000

bun dev is self-bootstrapping: scripts/ensure-env.ts writes .env.local with generated BETTER_AUTH_SECRET / API_KEY_ENCRYPTION_KEY, then db:migrate:local → db:seed:local → vite dev. No Docker, no external DB, no Cloudflare account.

Generation stays dark until you add keys — bun setup (interactive) or paste into .env.local:

  • FAL_KEY — image, video, audio (and LLM via fal's OpenRouter endpoint)
  • OPENROUTER_KEY — LLM script analysis

Read the startup banner. bun dev prints its wrangler bindings. If DB shows REMOTE, kill the server immediately — that is the prod-D1 leak described in references/troubleshooting.md.

Full script/env tables: references/commands.md. Read-only host check: bash .agent-skills/openstory/scripts/openstory.sh doctor [repo_path].

Step 3: pipeline-trace — name the phase before guessing

Generation starts at src/functions/sequences.ts (createSequenceFn / updateSequenceFn / retryStoryboardFn) → triggerWorkflow('/storyboard', input) → STORYBOARD_WORKFLOW.

Phases, in order: Verify+Prepare → Poster (non-critical) → Scene Splitting → Casting (talent ∥ location) → References & Prompts (character sheets ∥ location sheets ∥ visual prompts) → Frame Images then Motion/Music prompts (sequential since #929) → Motion + Music → Complete.

Identify the failing phase from workflowRunId / sequence_events before changing code. Phase details and per-phase inputs/outputs are in references/architecture.md.

Step 4: workflow-authoring — obey the three-place wiring and scopedDb

A new workflow is not "added" until it exists in all three places, which src/lib/workflow/wiring-consistency.test.ts enforces:

  1. wrangler.jsonc → workflows[] (and the [env.production] / [env.test] blocks — workflow config is not inherited)
  2. a re-export of the class from src/server.ts
  3. an entry in TRIGGER_TO_BINDING (src/lib/workflow/trigger-bindings.ts)

Then: extend OpenStoryWorkflowEntrypoint, implement `runImpl(event, step

Полный SKILL.md на GitHub

Установить openstory в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write
Edit
Glob
Grep

Вложенные файлы

SKILL.toonreferences/architecture.mdreferences/commands.mdreferences/troubleshooting.mdscripts/openstory.sh

FAQ

Что делает скилл openstory?

Work with OpenStory (github.com/openstory-so/openstory), the open-source AI script-to-video sequence platform built on Bun + TanStack Start + Cloudflare Workers (D1, R2, Workflows, Durable Objects) with Drizzle, Better Auth, and Fal.ai/OpenRouter models. Routes one request to one mode: run it locally (`bun install && bun dev` on Miniflare, `FAL_KEY` / `OPENROUTER_KEY`), trace the storyboard pipeline (scene split, casting, prompts, frame images, motion, music), author a Cloudflare Workflow under the three-place wiring and no-mid-run-read `scopedDb` contract, add or update an image/video/audio/LLM model, ship a safe D1 + Drizzle migration, or deploy. Use when the user mentions OpenStory or is operating this codebase. Triggers on: openstory, openstory.so, script to video, AI video sequence platform, storyboard workflow, triggerWorkflow, OpenStoryWorkflowEntrypoint, WorkflowScopedDb, IMAGE_MODELS, fal.ai model registry, D1 CASCADE data loss, flatten-migrations, deploy Cloudflare Workers video app.

Как установить скилл openstory?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл openstory запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить openstory с