Logo van Scene Splitter

Scene Splitter

Community
hassancs91
scene-splitter

Deelt een verhaal in eenvoudig Engels op in een genummerde lijst met SCÈNES. Elke scène is één moment dat in de volgende stappen precies één illustratie én één vertelclip krijgt. Dit is de eerste stap van de AI Storybook-pipeline. Afgestemd op verhalen voor beginners (korte zinnen, ongeveer 8–12 scènes), met een maximale lengte per scène zodat alles op één telefoonscherm past zonder te scrollen. Gebruik deze skill wanneer de gebruiker een verhaal in scènes wil opdelen, het wil voorbereiden voor de storybook-pipeline, het wil verdelen over pagina's of panelen, of een scènestructuur wil maken voor de illustrator en verteller. Activeer deze skill bij verzoeken als "deel dit verhaal op in scènes", "verdeel dit in pagina's", "bereid dit verhaal voor op het storybook", "maak scènes voor illustraties" of wanneer de gebruiker een Engelstalig verhaal aanlevert dat voor een prentenboekpipeline in stukken moet worden verdeeld. Maakt een bestand {slug}_scenes.json dat wordt gebruikt door story-illustrator en story-narrator, zodat hun output op elkaar aansluit (1 afbeelding + 1 audiofragment per scène).

Add to TypingMind

Overzicht

Uitgeverhassancs91
Repositoryclaude-image-generation
Skillnaamscene-splitter
Sterren
110
Forks
64
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door hassancs91 op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Scene Splitter in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/hassancs91/claude-image-generation/tree/main/.claude/skills/scene-splitter
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hassancs91/claude-image-generation.git /tmp/claude-image-generation
mkdir -p .claude/skills
cp -r /tmp/claude-image-generation/.claude/skills/scene-splitter .claude/skills/scene-splitter
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Scene Splitter in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Scene Splitter automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Scene Splitter niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Scene Splitter

Takes a plain English story and produces a numbered list of scenes — each scene being one moment that gets exactly one illustration and one narration clip downstream.

This is the upstream spine of the AI Storybook pipeline. Splitting once here and feeding both the illustrator and the narrator from the same {slug}_scenes.json keeps everything in lockstep: image N pairs with audio N pairs with paragraph N. No drift, no negotiation between skills.

When this skill applies

The user has an English story and wants to prepare it for the illustration + narration pipeline. Common phrasings: "split this into scenes", "break this into pages", "prepare this story for the storybook", "make scenes for illustration".

The skill does NOT apply to:

  • Stories that need only narration OR only images standalone (the illustrator and narrator can split on their own when used independently)
  • Non-narrative content (essays, instructions, lists)

Architectural rule: one scene = one moment = one image = one narration clip

A scene is a single moment that fits one illustration. Operationally, a new scene starts at any of:

  • Action transition — a different action happens
  • Scene change — a different location or a significant time jump
  • Emotional turn — joy → fear, calm → urgency, doubt → resolve
  • Character entry/exit — someone new appears or leaves the moment
  • Dialogue beat — a meaningful line of speech that deserves its own picture

Scenes are deliberately short and many. The storybook player renders one scene at a time, and the text MUST fit on a phone screen without scrolling. That drives the hard length cap below.

Reading level + length cap (beginner default)

This pipeline targets beginner readers. The cap is screen-fit-driven, not API-driven:

LevelPer-scene hard capTarget scene count
beginner (default)240 characters8–12 scenes

The cap is the number of characters in a single scene's text. Keep most scenes well under it (~120–180 chars reads best on a phone). To scale this pipeline up for longer/harder stories, raise the cap and the target count here — nothing downstream needs to change.

Workflow — five stages with one hard gate

Stage 1: Story analysis

  1. Read the full story.
  2. Detect: total character count, named characters, distinct scenes/locations, rough emotional arc.
  3. Determine the slug from the title (line 1) or filename — lowercased, hyphenated, ASCII-safe (^[a-z0-9-]+$, max 60 chars). Examples: "The Little Cloud" → the-little-cloud; red_balloon.md → red-balloon.
  4. Estimate scene count (aim for the 8–12 beginner range; more for a longer story).
  5. Output a one-line summary: "Story is [N] chars, [X] characters, [Y] locations, ~[Z] scenes expected at beginner level. Slug: {slug}."

Stage 2: Scene identification

Walk the story in order. At each candidate boundary, decide: new scene or extend the current one? Use the boundary rules above. When unsure, prefer MORE scenes — it's easier to merge two at the gate than to retroactively split one.

For each scene, capture the exact text from the source. The splitter chooses BOUNDARIES, not content — do not reword, summarize, or rewrite the author's prose. (If a sentence must be trimmed to fit the cap, that's an author decision — surface it at the gate, don't silently edit.)

Stage 3: Per-scene metadata

For each scene, populate:

  • index — 1-based
  • role — cover for scene 1, closing for the last scene, body for everything else
  • panel_type — one of establishing | action | reaction | detail (drives framing variety downstream):
    • establishing — wide, sets the place. Good for scene 1 and any location change.
    • action — something is happening; dynamic composition.
    • reaction — close on a character's face/feeling.
    • detail — tight on one object or element.
  • text — the exact story text for this scene (no title prefix on scene 1 — see below)
  • char_count — character count of text
  • scene — location/setting in 2–4 words (e.g. "sunny meadow", "cozy kitchen")
  • characters — array of named characters present in this moment
  • mood — emotional tone in 1–3 words (e.g. "warm, curious")
  • dominant_action — what happens in this moment, in one sentence (the illustrator turns this into the image prompt)

Title handling for the cover scene (LOCKED). The story's title (the # Heading on line 1) MUST NOT appear in scenes[0].text. The player shows the title in the header and builds a dedicated cover page from the first illustration (with the spoken title clip); scene 1's text then renders as its own story page. If the title were left in scenes[0].text it would show up twice (header + as scene 1's paragraph). Strip it from scene 1's text and store it at the top level instead:

json
{
  "story_slug": "the-little-cloud",
  "story_title": "The Little Cloud",
  "target_level": "beginner",
  "language": "en",
  "total_scenes": 9,
  "scenes": [
    {
      "index": 1,
      "role": "cover",
      "panel_type": "establishing",
      "text": "High in the sky lived a little cloud named Pip.",
      "char_count": 47,
      "scene": "wide blue sky",
      "characters": ["Pip"],
      "mood": "gentle, bright",
      "dominant_action": "A small white cloud drifts alone in a big blue sky."
    }
  ]
}

Stage 3.5: Validation (reconstruction + length cap)

Reconstruction check. Concatenate story_title + "\n\n" + scenes[*].text (single spaces between scenes) and verify it reconstructs the original story. The title goes at the front because it was stripped from scenes[0].text. If even one word is missing or duplicated, abort and report which boundary is broken — do NOT proceed to the gate with broken reconstruction.

Length-cap check. For every scene, verify char_count ≤ 240. If any scene is over cap:

  1. Do NOT show the gate yet.
  2. List the over-cap scenes (index, char_count, first ~80 chars).
  3. Re-enter Stage 2 for those scenes: find an internal boundary (action shift, emotional turn, dialogue handoff) and split. If a scene is one indivisible moment but still over cap, flag it OVERSIZED — needs author trim rather than force-splitting on a non-boundary.
  4. Re-run the reconstruction check, then proceed.

Stage 4 — HARD GATE: review scenes

Show the user the proposed scene list in a compact table (so 10+ scenes fit on screen). Columns: index · role · panel_type · mood · char_count · first ~60 chars + ellipsis · dominant_action.

Below the table, prompt:

Scene plan ready — review and approve before I write scenes.json. Reply:

  • go to commit
  • merge N M to combine two adjacent scenes
  • split N to split a scene further (I'll propose where)
  • edit N to fix one scene's metadata
  • fix N <reason> for free-form feedback (e.g. fix 7 too long, split before "but then")
  • redo to restart with a different approach

If the user issues a change, apply it, re-run Stage 3.5 validation, and re-show the gate. Loop until go.

This gate is where human taste enters: it costs nothing now, but a wrong boundary means a wrong image AND a wrong audio clip downstream.

Stage 5: Output

Write {slug}_scenes.json to the working directory stories/{slug}/. Confirm in one line: "Wrote {slug}_scenes.json — N scenes, ready for the illustrator and narrator."

What this skill does NOT do

  • Does not edit or rewrite story text — only chooses boundaries.
  • Does not generate audio or images — those are downstream skills.
  • Does not classify or tag the story (this beginner pipeline skips classification by design).
  • Does not write to any database or upload anything — local file output only.

Compatibility notes

  • Output is consumed by story-illustrator and story-narrator. Both accept {slug}_scenes.json and skip their own splitting, so the image for scene N and the audio for scene N stay aligned by index.
  • Image filenames downstream are {slug}_part_NN.png; audio filenames are {slug}_part_NN.mp3, where NN is the zero-padded scene index. The publisher pairs them by that index.
  • Be conservative: when in doubt, more scenes. The user can merge at the gate.

Veelgestelde vragen

Wat doet de AI-skill Scene Splitter?

Deelt een verhaal in eenvoudig Engels op in een genummerde lijst met SCÈNES. Elke scène is één moment dat in de volgende stappen precies één illustratie én één vertelclip krijgt. Dit is de eerste stap van de AI Storybook-pipeline. Afgestemd op verhalen voor beginners (korte zinnen, ongeveer 8–12 scènes), met een maximale lengte per scène zodat alles op één telefoonscherm past zonder te scrollen. Gebruik deze skill wanneer de gebruiker een verhaal in scènes wil opdelen, het wil voorbereiden voor de storybook-pipeline, het wil verdelen over pagina's of panelen, of een scènestructuur wil maken...

Waarom Scene Splitter gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Scene Splitter bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Scene Splitter in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/hassancs91/claude-image-generation/tree/main/.claude/skills/scene-splitter. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Scene Splitter gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Scene Splitter gebruiken?

Zoveel als je wilt. Je kunt Scene Splitter gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Scene Splitter gratis?

Ja. Deze skill is door hassancs91 op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇