Storyline

From 5throck/ai-workspace-standards · View interactive version

Storyline is an AI agent skill from the GitHub repository 5throck/ai-workspace-standards. Designs lecture storyline and slide deck composition. Given research_notes.md (or direct topic input), produces storyline.md and slide_deck.md. Responds to "make storyline", "compose slide deck", "structure chapters" (Korean: "make storyline", "compose slide deck", "restructure chapters"). Stages 2-

How to use this skill

Skill file

Context

Designs the lecture narrative flow (storyline.md) and per-slide content (slide_deck.md). slide_deck.md is the direct input consumed by the Build Agent for HTML generation. Invoked at Stages 2-3, after research and optional source verification.

When to Use


Execution Steps

Step 1: Confirm Inputs


Step 1.6: Optional Pre-Build Lint (Humanize, U-20261114-009 item 3)

Prerequisite: the lint runs from the pinned Humanize clone delivered by the

external-deps machinery at scaffold (external-deps.json id humanize); if the

clone is missing, install it with `bun scripts/external-deps.ts install --id

humanize`.

Run a deck-wide lint of the authored narration and bullets through the

Humanize adapter (the pinned clone's rule engine — the adapter probes the

server, reuses a listening Humanize instance or spawns one from the clone, and

shuts its spawned server down afterwards):

bun scripts/co-deck/humanize-adapter.ts analyze slide_deck.md
# machine reads (one JSON object with the findings array):
bun scripts/co-deck/humanize-adapter.ts analyze slide_deck.md --json

Report the finding count and the top patterns; severe findings are rewritten at

authoring time (numbers and density preserved — the lint flags AI-tic phrasing,

not content). The step is OPTIONAL and skips silently when the lint is

unavailable (the adapter prints the reason and exits 0 — lint unavailable,

never a build blocker; a missing clone is the one hard error with the install

hint).

Step 1.7: Slidedata Generator Hygiene (U-20261114-009 item 4)

Projects that generate slidedata.json from a script (gen-slidedata-*.py and

friends) follow two rules:

chapter titles) derive from lecture-profile.md at generation time — a

hardcoded constant that drifted from lecture-profile.md silently reintroduces

stale text on every rebuild (observed: credential re-entry risk).

lecture-profile.md must produce a byte-identical slidedata.json (modulo

timestamps); regenerate-then-diff gates the rebuild, so generator-vs-slidedata

drift is caught before the build consumes it.


Step 1.5: Content Doctrine (authoring rules)

The slide-content doctrine the built deck must follow (mirrored in zen theme.json

content_rules.bullet_doctrine; enforced editorially at Step 3.5’s hygiene check):

takeaway; the bare "number — source" listing style is banned. The figure and its

meaning live in the same line.

in the speaker script and the references appendix, never in slide bullets.

the speaker script only.

profile cards keep a readable width instead of stretching full-width.


Step 2: Write storyline.md

Construct the lecture's high-level flow narratively. Not just a table of contents — encode the logic of "why this order" so the audience journey is clear.

# Storyline: [Topic]

## Lecture Overview
- Total slide count:
- Presentation time:
- Core message:

## Overall Narrative Flow
[3-5 paragraphs describing where the audience starts, what journey they take, and what they leave with]

## Chapter Structure
| # | Type | Title | Slide count | Key role |
|---|------|------|------------|---------|
| - | Cover | | 1 | Topic and speaker intro |
| - | Speaker intro | | 1 | Build credibility |
| 1 | PART | | N | |
| 2 | PART | | N | |
| - | Contact | | 1 | Closing and follow-up |

## Key Takeaways
What the audience should remember after the lecture:
1.
2.
3.

Step 3: Write slide_deck.md

Write per-slide content. This file becomes the direct input for HTML generation.

# Slide Deck: [Topic]

---
## [Slide number]. [Slide type] — [Title]

**Section**: [section name shown in header]
**Type**: cover / speaker intro / divider / standard / contact
**Script**: [Speaker narration text — 2-4 sentences, natural spoken style. Required for every slide. Write in `script_language` from lecture-profile.md (defaults to `language`).]

### Content
- Bullet 1
- Bullet 2
- Bullet 3

### Right Panel
- Type: image / text box
- Image: [search keyword or filename]
- Text title: [if any]
- Text body: [if any]

---

Repeat this structure for every slide. Dividers include part number and description.

Korean example (actual slide content for a Korean lecture is written in Korean):

```markdown

## 5. divider — The Arrival of the AX Era

Section: PART 01

Type: divider

### Content

- Paradigm shift in the securities industry

- Definition of AX (AI Transformation)

```

⚠️ Uniform Layout Principle: All content slides within a single deck MUST use standard type. Special types (punchline, divider, profile) are reserved for their designated structural purpose only. punchline is allowed ONLY as the last content slide with a single-statement message (≤1 line, no bullets). Mixing slide types for content slides is prohibited — each type has a distinct CSS layout (2-column vs center-aligned), and mixing breaks visual consistency.


Step 3.5: Slide Content Hygiene Check

Run before Step 4. slide_deck.md is the content SSOT — anything written into a slide-visible field (bullets, message, caption, footnote, right-panel text body, divider description, script-visible text) renders on the audience slide. Remove internal-process artifacts at authoring time; do not rely on build or review to catch them.

R1 — No internal-process annotations on slide-visible content. Analyst-facing caveats, scope flags, and caution glyphs MUST NOT appear in any slide-visible field. They are working notes for the author and reviewer, not audience content.

Ban list (matched against slide-visible fields of slide_deck.md):

| Pattern | Example |

|---------|---------|

| ⚠️ / ⚠ glyph, anywhere | (⚠️ 단일 소스), (⚠️ 근사치), bare ⚠️ |

| ※ scope annotation | ※ 제3자 업로드 클립 … |

| — aside headers: — (해석 주의\|배제 검토\|검토 필요\|추후 확인) | — 해석 주의, — 배제 검토 |

| Bracketed caveat asides: \((근사치\|단일 소스\|Unverified\|미검증)\) | (⚠️ 근사치) |

| Bare meta-words standing alone as an aside (not inside a sentence) | Unverified, 근사치 as a lone bullet tail |

| Internal production wording (U-20261116-003): verification state and instructions | Stage 1.5 권장, [프레임: …], v1 검증 문구 이식, 원문 미확인, 직접 비교 금지, 확장 서술 금지, 보조 표본은 내레이션으로 |

| Verification-tag glyphs riding research_notes tags into slide text | ⚠️ attached to a source note, 명시적 미커버 as audience text |

| Epistemic bullet prefixes, label-BEFORE-dash (U-20261119-006): ^(사실\|가능성\|해석\|추정\|전망)\s*[—:-] | 사실 — 재해 복구 비용은 추산과 다르다, 가능성 — 확산 가능, 해석: 수급 공백이 원인 |

| Parenthetical interpretation/confirmation asides (U-20261119-006): \((강연자 해석\|확정된 사실은 아님\|확인 필요)\) | (강연자 해석), (확정된 사실은 아님) |

| Narration epistemic disclaimers in slide-visible fields (U-20261119-006, owner decision D3): 근거는 없습니다, 독립적인 검증을 거친 것은 아니라는 점 | a notes/bullet line reading 근거는 없습니다, 독립적인 검증을 거친 것은 아니라는 점 |

Regex sketch: ⚠|※|—\s*(해석 주의|배제 검토|검토 필요|추후 확인)|\((⚠️|근사치|단일 소스|Unverified|미검증)[^)]*\)|^(사실|가능성|해석|추정|전망)\s*[—:-]|\((강연자 해석|확정된 사실은 아님|확인 필요)\)|근거는 없습니다|독립적인 검증을 거친 것은 아니라는 점

Allowed replacements (the information is preserved, the artifact is not):

| Mechanism | Example |

|-----------|---------|

| In-sentence plain-language qualifier | 약 16.3억 달러 (≈/⚠️ 근사치 → 약), 추정치 기준, 미검증 집계, 언론 보도 기준 |

| Plain-language footnote (field footnote:) | 라면 수출 수치는 농식품부 계열 집계 기준. 관세청 HS 기준과는 집계 차이가 있음. |

| Migration into Script (narration) — NARROWED by owner decision D3 (U-20261119-006): caveats route to the script ONLY, never the slide; spoken narration may carry the bare disclaimers (근거는 없습니다-style) but slides never show them; prefer natural attribution (행정안전부는 …라고 밝혔다) over the bare disclaimer | per the ※-cleanup pattern |

The distinction that matters: a qualifier woven into the claim (약, ~기준, 추정치) is audience content and is correct; a glyph/aside addressed at the analyst (⚠️, ※, — 해석 주의) is internal process and is banned.

Narration disclaimers — the D3 split (U-20261119-006). The three new pattern classes above are banned on EVERY slide-visible field: epistemic bullet prefixes (사실 —/가능성 —/해석 —…), parenthetical asides ((강연자 해석), (확정된 사실은 아님), (확인 필요)), and epistemic disclaimers (근거는 없습니다, 독립적인 검증을 거친 것은 아니라는 점). Of the three, ONLY the disclaimers may live in the speaker script — the presenter speaks the caveat, the slide never shows it. Bullet prefixes and parenthetical asides are written-form artifacts and stay out of the script too (TTS reads them aloud verbatim). Verification status itself stays in storyline.md / source_notes; narration carries natural attribution instead. The split is enforced by the layout lint: estimate-layout.ts --lint FAILs on all three families in slide-visible fields (title, subtitle, text, bullets, visualTitle/visualDisplay/visualCaption, notes, footnotes) and on prefixes/parentheticals in script/scriptEn/scriptJa fields.

R2 — Internal terms and codes require prior definition. A coined term or internal framework label may appear on a slide only on or after the slide that introduces its definition. Dividers, part descriptions, and early-chapter slides MUST use plain language. This includes internal citation codes — they never appear outside the references slide (R3).

Ban patterns:

| Pattern | Example |

|---------|---------|

| Coined compound term used before its defining slide | 15셀 in a divider, defined later as 5시장 × 3카테고리 = 15셀 |

| Internal citation codes in visible text | (R4·R1), (R1), R4·R1 — regex: \(R\d+(\s*[·,]\s*R\d+)*\) |

Allowed replacement: rewrite the pre-introduction occurrence in plain language (시장별 × 카테고리별 판정 매트릭스 instead of 15셀 in the divider). The term then appears for the first time on its defining slide, where the definition is the slide's content.

Enforcement method: after writing slide_deck.md, scan coined terms per slide order. Any term that a reader meeting the deck for the first time could not resolve at that slide is either defined there or rewritten in plain language.

R3 — No internal citation-code footers; deck-level references slide instead. Internal research-note linkage (research_notes.md R-codes) MUST NOT be rendered as per-slide footers. [Source: R1]-style entries are banned from slide-visible output.

Field-level rules for slide_deck.md:

| Field | Rule |

|-------|------|

| Sources: lines | Remain in slide_deck.md as research-note linkage, but may cite external named sources only (e.g. [Source: YouTube — KBS News, 2026-05-29], 링크: youtube.com/watch?v=…). No R-code entries. |

| footnote: lines | Plain-language scope/caveat text per R1; no R-codes, no internal file paths. |

| References slide | The single slide-visible surface for R-code linkage — see spec below. |

References slide spec:

Exception — methodology / quality-gate teaching slides. A slide whose designed purpose is to teach the audience how the analysis was verified (methodology, quality gates, data-provenance explanation) may present verification concepts as first-class content. What remains banned even there: bare internal-process glyphs and asides (R1 patterns), citation-code footers, and citation codes outside the references slide. The exception covers the concepts, not the artifact formats.

R4 — footnotes vs notes field split (slidedata, U-20261116-009). The two slidedata fields have distinct rendering targets and MUST NOT be mixed (the deck defect this rule formalizes: sources authored into footnotes forced every footnote in-card and pushed abbreviations into the card):

| Field | Content | Rendered as |

|-------|---------|-------------|

| footnotes | Abbreviation definitions only ("ABBR = definition") | Slide-level bottom-left line OUTSIDE the card (shared FootnoteBuilder pill, .slide-footnote) |

| notes | Source / caveat lines | Muted line INSIDE the card at the end of the content flow (.slide-footnote.slide-notes) |


Audience language only (U-20261116-003): slide-visible fields carry citation = outlet/institution/date; verification state, framing notes, and production instructions stay in storyline.md / notes. Research_notes verification tags and Gate-1.5 conditions NEVER ride into footnotes, bullets, captions or SVG labels.

Narration consistency (U-20261116-005):

Step 4: Balance Check

Self-review after writing both files:

Step 3.6: Layout Gate Re-run (U-20261116-007)

Every slide_deck/slidedata edit is followed by the layout lint before Gate 2:

bun scripts/co-deck/estimate-layout.ts --project deliverables/<deck> --lint

min/max bullet counts and title length are BLOCKING (content edits silently

broke a 3-bullet minimum in one deck — caught only by the end user). The

meta-wording gate (U-20261119-006) is BLOCKING too: the lint FAILs on the

Step 3.5 R1 epistemic bullet prefixes / parenthetical asides / narration

disclaimers in slide-visible fields, and on bullet prefixes/parentheticals in

script fields (D3 split). The body-chars bound is calibrated at the theme

level (zen ships 600, DEC-20261114-04) and is advisory; real violations

(bullet-count min, title length, meta wording) must not drown in bound-noise.

Step 3.7: Gate 2 Audience-Fit Checklist (U-20261116-006)

Before content approval, the storyline/PM check verifies:

  1. Case mix matches the audience — locality and scale of the cases fit the

declared audience (Korean startups × corporates need startup×corporate

cases, not only global mega-deals); research adjusts search languages to

the market, this gate checks RELEVANCE.

  1. Problem → cause → answer order — the answer is not given before the

problem and cause; each PART ends on tension, not on a meta matrix.

  1. Punchline placement — the punchline slide is not buried behind the

references appendix.

  1. Diagram accents mark the key message — the highlighted field is the

message, never the explicitly-excluded item.


Output Format

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.