Keynote Slides
Assets
assets/keynote-slides.html holds the single-file slide deck template.
references/brand-guidelines.md captures brand tokens, typography, and image style guidance.
references/gemini-media.md documents the Gemini nano banana and Veo media settings.
Workflow
Resolve entity + detect content-db. Read deck.json → entity field; fall back to <section data-entity="..."> on the active slide; then to brands.js default entity (the entity whose export key is "default", or the single entity in the file). Check whether content-db/<entity>/ exists alongside brands.js. If it does and is well-formed, content-db mode is active — load relevant atoms before generating any content. If it does not exist or is malformed, proceed normally with no message. See the Content Database section for the full protocol.
Run the deck bootstrap to create a deck folder:
scripts/new-deck.sh example-pitch --entity northwind --title "Example Pitch" --type pitch
- Update
decks/brands.js when brand tokens change.
- Edit
decks/<deck-id>/index.html and duplicate slides inside <main id="deck">, keeping each data-title unique.
- Use layout classes (
layout-title, layout-split, layout-grid, layout-metrics, layout-quote) to keep spacing consistent.
- Apply
reveal plus --reveal-index to stagger key elements.
Entities
- Use the generator panel to select the active entity profile.
- Add
data-entity="entity-id" on a slide to override the global profile for that slide.
- Add
?entity=entity-id to the URL for a quick switch.
- Use
mediaPromptPrefix in brandProfiles to keep Gemini media outputs on brand.
Deck storage
decks/<deck-id>/index.html is the editable deck file.
decks/<deck-id>/deck-config.js stores deck metadata (entity, title, resources).
decks/<deck-id>/deck.json stores the same metadata in JSON form.
decks/<deck-id>/slides.md is for draft copy and notes.
decks/<deck-id>/resources/assets/ holds logos, images, and media inputs.
decks/<deck-id>/resources/materials/ holds briefs, pricing docs, P&L inputs, and outlines.
PMF Panel Integration
Export PMF Panel findings as deck input materials:
# From pmf-panel directory
.claude/export-deck-brief.sh <scenario-id>
# Copy to deck materials
cp scenarios/<scenario-id>/deck-brief.md \
../keynote-slides-skill/decks/<deck-id>/resources/materials/pmf-brief.md
The brief includes diagnosis, scenarios, 30/60/90 plan, and specialist perspectives ready for narrative engine ingestion.
Collaboration
- Co-author the narrative: propose headlines, POV, and slide ordering based on
deckType and entity preferences.
- Keep the brief in
resources/materials/brief.md and capture evolving preferences in deck.json or decks/brands.js.
- Use concise headline options (3-5 variants) and confirm direction before building slides.
Review loop
- Use the Chrome Devtools MCP tools to capture a snapshot/screenshot and review layout.
- Check hierarchy, alignment, spacing rhythm, and contrast; then adjust copy and spacing.
- Use the generator panel for brand-aware media, then re-check balance and whitespace.
- Register new content-db atoms (if active). After review, write new atoms to
content-db/<entity>/ for any claims (cl###), copy strings (cp###), or assets (as###) introduced during the build. Run node content-db/validate.js (or equivalent). The output package is not complete until validation exits 0. Do not modify existing atoms — add a vl### validation record and mark the original status: disputed if wording conflicts.
Templates
- Copy markup from the
<template> blocks at the bottom of the file.
- Replace placeholders with branded copy, numbers, and visuals.
Media generation
- Add
data-gen and data-prompt to <img> or <video> elements.
- Open the generator panel with
g or the Gen button.
- Save the API key and model settings to localStorage (never commit keys).
- For image-to-image or image-to-video, load a base image in the panel.
- Run "Generate slide" or "Generate all" and review outputs.
Model-Mediated Image Acquisition
Use the /acquire-images skill (see skills/acquire-images.md) to populate slides with visuals.
Claude decides whether to generate (Gemini) or search (stock photos) for each slide:
| Content Type |
Decision |
Why |
| Diagrams, flowcharts |
GENERATE |
Custom layouts, brand colors |
| Data visualizations |
GENERATE |
Precise data representation |
| Real-world photos |
SEARCH |
Authentic people, places |
| Team/people shots |
SEARCH |
Realistic human photos |
| Abstract concepts |
GENERATE |
Metaphorical, brand-styled |
| Branded hero images |
HYBRID |
Search base + AI overlay |
Search sources: Unsplash, Pexels, Google Custom Search.
Attribution: Downloaded images tracked in resources/materials/image-credits.json.
See skills/acquire-images.md for the full workflow.
Preview
scripts/serve-decks.sh
Then open http://<tailscale-ip>:8921/decks/<deck-id>/index.html.
Speaker notes
Animation + SVG
Micro Animations
Micro animations are small decorative accent elements that add subtle motion to slides without distracting from content.
What micro animations ARE:
- Small accent lines that expand/draw next to headlines
- Subtle decorative strokes or shapes that pulse gently
- Tiny visual flourishes positioned near text (not on text)
- CSS-driven, lightweight, and unobtrusive
What micro animations are NOT:
- Large SVG graphics or overlays covering slide areas
- Animations applied directly to text (no flashing, glowing, or bouncing text)
- Complex particle systems or heavy motion graphics
- Anything that competes with or obscures content
Implementation:
<!-- Accent line after a headline -->
<h1 class="title">Your headline here</h1>
<span class="accent-line"></span>
Available classes:
.accent-line — 80px amber line that expands from left, then pulses
.accent-line.long — 120px version for major headlines
Behavior:
- Line draws in from left (0.8s ease-out) when slide becomes active
- Then gently pulses (opacity + slight scale) on a 4s cycle
- Respects
prefers-reduced-motion and ?motion=off
When to use:
- Title slides (layout-title) to add visual interest
- Key message slides where you want emphasis
- Sparingly — 3-4 slides per deck maximum
Copy editor
PDF export
Navigation
- Arrow keys, PageUp/PageDown, Space.
- Home/End for first or last slide.
- Use
#slide-title hash navigation for direct jumps.
Review Mode / Feedback System
Enable reviewers to leave comments on deck elements for collaborative feedback.
Entering Review Mode
- Click the "Review" button in the bottom toolbar (next to Gen)
- Press
r key to toggle review mode
- Add
?review=1 to the URL to start in review mode
Adding Comments
- In review mode, hover over elements to see them highlighted
- Click any commentable element (titles, text, cards, metrics, media frames)
- Or select text within an element to comment on specific wording/typos
- First-time commenters enter name and email (stored in session)
- Type feedback in the popover and click "Add Comment"
- A numbered badge (①②③) appears on commented elements for easy reference
Viewing Comments
- Press
c or click the sidebar toggle to open the comment sidebar
- Comments are grouped by slide
- Click "Go to slide" to navigate to the commented element
- Mark comments as resolved or delete them
Exporting Feedback
From the comment sidebar:
- Export JSON - Downloads
comments-<deck-id>.json for backup or import
- Export MD - Downloads markdown summary for sharing or Claude iteration
Feedback Viewer Page
Use assets/feedback-viewer.html to review all feedback outside the deck:
- Open
feedback-viewer.html in a browser
- Load a
comments.json file or enter a URL
- Filter by open/resolved status
- Mark comments as resolved
- Export updated JSON or markdown
Add ?url=<path-to-json> to auto-load comments.
Comment Data Structure
Comments are stored in localStorage keyed by deck ID. Export structure:
{
"deckId": "example-pitch",
"nextNumber": 4,
"comments": [
{
"id": "c_1706123456789_abc123",
"number": 1,
"slideIndex": 2,
"slideTitle": "Our Solution",
"elementSelector": "[data-comment-target='headline']",
"elementText": "First 50 chars of element...",
"selectedText": "specific phrase",
"comment": "This needs more specificity",
"author": {
"name": "Sarah Chen",
"email": "sarah@example.com"
},
"createdAt": "2024-01-24T10:30:00Z",
"resolved": false
}
]
}
number: Sequential comment number (①②③) for easy reference in feedback
selectedText: If reviewer selected specific text, captures that selection (null otherwise)
Element Targeting
For precise comment targeting, add data-comment-target attributes:
<h2 data-comment-target="solution-headline">Our Solution</h2>
<p data-comment-target="value-prop-1">We reduce costs by 40%...</p>
Elements without explicit targets use a generated CSS selector path.
Narrative Engine Integration
For content-driven deck creation, use the Narrative Engine workflow that matches your material to proven storytelling frameworks.
Reference Files
references/narrative-engine/narrative-arcs.md — Beat-by-beat structures for 10 narrative arcs
references/narrative-engine/framework-selection.md — Selection matrix by audience/purpose/content
references/narrative-engine/framework_selection_guide.md — Deep pairing guidance for arcs + frameworks
references/narrative-engine/communication-frameworks.md — 7 efficiency-optimized frameworks
references/narrative-engine/checklists.md — Quality gates for narrative + copy review
references/narrative-engine/agent-reference-*.md — Agent-specific frameworks for review
Workflow: Narrative Build
- Ingest resources: Run
node scripts/ingest-resources.js decks/<deck-id> to read all materials
- Or use
node scripts/narrative-build.js decks/<deck-id> to prepare model-mediated prompts
1a. Load content-db atoms (if active). If content-db mode is active, pull copy.md and claims.md atoms for the resolved entity. Filter atoms by audience tag if present. Surface any atom with a non-null gate value before proceeding — do not include gated content without user confirmation. If content-db is not active, skip this step.
- Focal discovery + discovery: Align on the one point, then answer 5 questions (audience, purpose, content type, tone, reveal)
- Density + framework match: Choose density mode, then get 2-3 recommendations with content mapped to structure
- Deck generation: Build slides with source attribution tags. If content-db is active: use each claim's exact approved text — do not paraphrase. For any claim or copy string not found in the db, pause and ask: "That claim isn't in
content-db/<entity>/claims.md — want me to register it as unverified, or use the closest approved atom?" Do not silently include or skip unapproved content.
- Review panel: 5 agents + Director synthesize feedback
Discovery Questions
| Question |
Options |
| Audience |
Executive, Technical, Investors, Skeptics, General, Mixed |
| Purpose |
Persuade, Inform, Inspire, Align, Report, Defend, Entertain |
| Content type |
Research, Strategy, Origin story, Post-mortem, Pattern insight, etc. |
| Tone |
Authoritative, Provocative, Warm, Urgent, Balanced, Visionary |
| Reveal potential |
Yes (has surprise), No (straightforward), Help me find one |
Framework Selection Quick Reference
| If your content has... |
Consider... |
| A genuine surprise |
The Prestige or Mystery Box |
| Multiple stakeholder views |
Rashomon |
| A transformation story |
Hero's Journey |
| Future vision |
Time Machine |
| Root cause analysis |
Columbo |
| Strategy/roadmap |
The Heist |
| Paradigm shift |
Trojan Horse |
5-Agent Review Panel
| Agent |
Lens |
Key Question |
| Audience Advocate |
Target audience persona |
"Does this land for [audience]?" |
| Comms Specialist |
Messaging, emotion, PR risk |
"Is this tight and bulletproof?" |
| Visual Designer |
Metaphor coherence, S.T.A.R. moments |
"What visual makes this unforgettable?" |
| Critic |
Pacing, weak links, efficacy |
"What's the weakest link?" |
| Content Expert |
Accuracy, logic, sources |
"Can every claim be defended?" |
Stress Test Panel (Optional)
After the 5-agent review, optionally stress-test with stakeholder personas auto-selected by content type:
| Persona |
Questions |
Best For |
| Engineer |
"How does this actually work?" |
Technical proposals, product launches |
| Skeptic |
"Why should I believe this?" |
Bold claims, paradigm shifts |
| Risk Officer |
"What could go wrong?" |
Strategy, transformation, investment |
| CFO |
"What are the numbers?" |
Pitches, business cases, ROI claims |
| Lawyer |
"What's the exposure?" |
Policy, compliance, external-facing |
| Conservative |
"Why change what's working?" |
Change management |
| COO |
"Would this actually work?" |
Execution plans, go-to-market |
The Director triages findings into Must Fix, Should Fix, and Could Fix categories.
Source Attribution Tags
| Tag |
Meaning |
[DIRECT] |
Verbatim from source material |
[PARAPHRASE] |
Restated ideas |
[ELABORATED] |
Expanded concept |
[SYNTHESIZED] |
Combined multiple sources |
[GENERATED] |
New content for flow |
Headline Rules
- Image & Action: Concrete nouns + strong transitive verbs; avoid "is/are"
- Tension & Turn: Because/Therefore, Not/But, Before/After
- Cadence: 8-14 words; two-beat rhythm
- Specific Anchors: Time/place/actor/number in every third headline
- Power verbs: tilts, unseats, ignites, drains, compounds, unlocks, anchors, accelerates
- Metaphor family: One per deck (journey OR ecology OR weather, etc.)
See /docs/integrated-architecture.md for full technical details.
Content Database
A modular, approved-content management layer for any project using keynote-slides. When a content-db/<entity>/ directory exists alongside brands.js, agents automatically load and enforce approved atoms. When it does not exist, the skill runs exactly as before — no config, no warnings.
Directory Structure
<deck-repo>/
├── brands.js ← entity source of truth (unchanged)
├── content-db/
│ └── <entity>/ ← one directory per entity
│ ├── README.md ← schema reference + agent protocol
│ ├── claims.md ← cl### atoms — stats, benchmarks, data points
│ ├── validation.md ← vl### atoms — experimental evidence blocks
│ ├── assets.md ← as### atoms — images, video, SVG with provenance
│ ├── copy.md ← cp### atoms — approved text passages
│ ├── brand.md ← br### atoms — color tokens, typography
│ └── layouts.md ← ly### atoms — approved slide structures
└── <deck-id>/ ← decks alongside (unchanged)
content-db/ always lives next to brands.js. Multi-entity repos have one subdirectory per entity.
Entity Resolution
Resolve the active entity in this order:
deck.json → entity field
<section data-entity="..."> on the active slide
brands.js → the entity whose export key is "default", or the single entity in the file. If multiple entities exist without a "default" key, surface the ambiguity — do not guess.
Detection
resolve entity
→ content-db/<entity>/ exists and is well-formed?
→ YES: load relevant atom files, activate compliance
→ MALFORMED: log warning, proceed without compliance
→ NO: proceed as normal, no message
| Operation |
Atom files loaded |
| Narrative planning |
copy.md, claims.md |
| Full build |
all six files |
| Targeted edit |
only types relevant to the change |
Compliance Rules
- Read before write. Load relevant atoms before generating content. Never re-derive brand colors or claim text if an atom already exists.
- Surface unapproved content (Build and Edit only — not planning). If a claim or copy string is not in the db (different number, source, or framing = new claim; minor rewording = same), pause: "That claim isn't in
content-db/<entity>/claims.md — want me to register it as unverified, or use the closest approved atom?"
- Register new atoms. After any build or edit, write atoms for all claims (
cl###), copy strings (cp###), and assets (as###) introduced. Run node content-db/validate.js. Output is not complete until exit 0.
- Never modify existing atoms. If content conflicts with an existing atom, add a
vl### validation record and update status: disputed in the original. Surface the conflict to the user.
Atom Prefixes
All new atoms use a two-letter prefix + zero-padded three-digit number. Existing atoms with single-letter prefixes are grandfathered.
| File |
Prefix |
Contents |
claims.md |
cl### |
Stats, benchmarks — status: validated | disputed | unverified |
validation.md |
vl### |
Experimental evidence — experiment_type, result, institution |
assets.md |
as### |
Images, video, SVG — file, deck, type, used_in |
copy.md |
cp### |
Approved text passages — concept, audience_level, tone, variants |
brand.md |
br### |
Color tokens, typography — element, css_var, value, usage_rules |
layouts.md |
ly### |
Slide structures — slide_type, css_classes, js_required, data_density |
Each atom is a ## <id> heading with bullet-field body. Full schema in content-db/<entity>/README.md.
Bootstrap
The skill does not scaffold a content-db unprompted. If a user asks why content-db is not active, explain the directory is absent and offer to create it. Only scaffold if the user says yes.
Bootstrap steps (when approved):
- Create
content-db/<entity>/ directory
- Create six empty atom files with schema header comments
- Create
README.md with schema reference and compliance rules
- Offer (separately) to extract initial atoms from existing deck HTML
If the user declines, proceed in no-compliance mode and do not raise the topic again in the same session.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: keynote-slides3description: Build Keynote-style single-file HTML slide decks with brand-ready templates, minimal navigation, and Gemini nano banana media generation. Includes Narrative Engine integration for framework-driven deck creation with 17 proven storytelling structures and 5-agent review panel. Use when creating or editing slide decks, transforming content into presentations, or generating slide visuals. Use when this capability is needed.4---5<!-- ABOUTME: Skill guide for building Keynote-style HTML decks with brand tokens and Gemini media hooks. -->6<!-- ABOUTME: Points to the single-file template, templates, and media generation workflow. -->7# Keynote Slides89## Assets1011- `assets/keynote-slides.html` holds the single-file slide deck template.12- `references/brand-guidelines.md` captures brand tokens, typography, and image style guidance.13- `references/gemini-media.md` documents the Gemini nano banana and Veo media settings.1415## Workflow16170. **Resolve entity + detect content-db.** Read `deck.json` → `entity` field; fall back to `<section data-entity="...">` on the active slide; then to `brands.js` default entity (the entity whose export key is `"default"`, or the single entity in the file). Check whether `content-db/<entity>/` exists alongside `brands.js`. If it does and is well-formed, content-db mode is active — load relevant atoms before generating any content. If it does not exist or is malformed, proceed normally with no message. See the [Content Database](#content-database) section for the full protocol.18191. Run the deck bootstrap to create a deck folder:20```bash21scripts/new-deck.sh example-pitch --entity northwind --title "Example Pitch" --type pitch22```232. Update `decks/brands.js` when brand tokens change.243. Edit `decks/<deck-id>/index.html` and duplicate slides inside `<main id="deck">`, keeping each `data-title` unique.254. Use layout classes (`layout-title`, `layout-split`, `layout-grid`, `layout-metrics`, `layout-quote`) to keep spacing consistent.265. Apply `reveal` plus `--reveal-index` to stagger key elements.2728## Entities2930- Use the generator panel to select the active entity profile.31- Add `data-entity="entity-id"` on a slide to override the global profile for that slide.32- Add `?entity=entity-id` to the URL for a quick switch.33- Use `mediaPromptPrefix` in `brandProfiles` to keep Gemini media outputs on brand.3435## Deck storage3637- `decks/<deck-id>/index.html` is the editable deck file.38- `decks/<deck-id>/deck-config.js` stores deck metadata (entity, title, resources).39- `decks/<deck-id>/deck.json` stores the same metadata in JSON form.40- `decks/<deck-id>/slides.md` is for draft copy and notes.41- `decks/<deck-id>/resources/assets/` holds logos, images, and media inputs.42- `decks/<deck-id>/resources/materials/` holds briefs, pricing docs, P&L inputs, and outlines.4344### PMF Panel Integration4546Export PMF Panel findings as deck input materials:4748```bash49# From pmf-panel directory50.claude/export-deck-brief.sh <scenario-id>5152# Copy to deck materials53cp scenarios/<scenario-id>/deck-brief.md \54 ../keynote-slides-skill/decks/<deck-id>/resources/materials/pmf-brief.md55```5657The brief includes diagnosis, scenarios, 30/60/90 plan, and specialist perspectives ready for narrative engine ingestion.5859## Collaboration6061- Co-author the narrative: propose headlines, POV, and slide ordering based on `deckType` and entity preferences.62- Keep the brief in `resources/materials/brief.md` and capture evolving preferences in `deck.json` or `decks/brands.js`.63- Use concise headline options (3-5 variants) and confirm direction before building slides.6465## Review loop6667- Use the Chrome Devtools MCP tools to capture a snapshot/screenshot and review layout.68- Check hierarchy, alignment, spacing rhythm, and contrast; then adjust copy and spacing.69- Use the generator panel for brand-aware media, then re-check balance and whitespace.70- **Register new content-db atoms (if active).** After review, write new atoms to `content-db/<entity>/` for any claims (`cl###`), copy strings (`cp###`), or assets (`as###`) introduced during the build. Run `node content-db/validate.js` (or equivalent). The output package is not complete until validation exits 0. Do not modify existing atoms — add a `vl###` validation record and mark the original `status: disputed` if wording conflicts.7172## Templates7374- Copy markup from the `<template>` blocks at the bottom of the file.75- Replace placeholders with branded copy, numbers, and visuals.7677## Media generation78791. Add `data-gen` and `data-prompt` to `<img>` or `<video>` elements.802. Open the generator panel with `g` or the `Gen` button.813. Save the API key and model settings to localStorage (never commit keys).824. For image-to-image or image-to-video, load a base image in the panel.835. Run "Generate slide" or "Generate all" and review outputs.8485### Model-Mediated Image Acquisition8687Use the `/acquire-images` skill (see `skills/acquire-images.md`) to populate slides with visuals.8889Claude decides whether to **generate** (Gemini) or **search** (stock photos) for each slide:9091| Content Type | Decision | Why |92|--------------|----------|-----|93| Diagrams, flowcharts | GENERATE | Custom layouts, brand colors |94| Data visualizations | GENERATE | Precise data representation |95| Real-world photos | SEARCH | Authentic people, places |96| Team/people shots | SEARCH | Realistic human photos |97| Abstract concepts | GENERATE | Metaphorical, brand-styled |98| Branded hero images | HYBRID | Search base + AI overlay |99100**Search sources:** Unsplash, Pexels, Google Custom Search.101102**Attribution:** Downloaded images tracked in `resources/materials/image-credits.json`.103104See `skills/acquire-images.md` for the full workflow.105106## Preview107108```bash109scripts/serve-decks.sh110```111Then open `http://<tailscale-ip>:8921/decks/<deck-id>/index.html`.112113## Speaker notes114115- Add per-slide notes with a hidden block:116 ```html117 <aside class="slide-notes">Speaker notes here.</aside>118 ```119- Toggle the notes panel with the "Notes" button or press `n`.120- Append `?notes=1` to open notes by default.121- Use "Export notes" to download a markdown file.122123## Animation + SVG124125- Use `data-anim` for lightweight entrance animations (fade, slide-up, slide-left, slide-right, scale-in).126- Set `--anim-delay` to stagger; avoid mixing with `reveal` on the same element.127- Disable animation with `?motion=off` or rely on `prefers-reduced-motion`.128- Inline SVG diagrams use `.diagram` and `data-media="svg"`:129 ```html130 <svg class="diagram" data-media="svg" viewBox="0 0 800 450" role="img" aria-label="Diagram"></svg>131 ```132- Keep media lanes explicit:133 - `data-gen` = Gemini only (optional `data-media="gemini"`).134 - Inline SVG = no `data-gen`.135 - Static images/videos = no `data-gen`.136137### Micro Animations138139Micro animations are **small decorative accent elements** that add subtle motion to slides without distracting from content.140141**What micro animations ARE:**142- Small accent lines that expand/draw next to headlines143- Subtle decorative strokes or shapes that pulse gently144- Tiny visual flourishes positioned near text (not on text)145- CSS-driven, lightweight, and unobtrusive146147**What micro animations are NOT:**148- Large SVG graphics or overlays covering slide areas149- Animations applied directly to text (no flashing, glowing, or bouncing text)150- Complex particle systems or heavy motion graphics151- Anything that competes with or obscures content152153**Implementation:**154```html155<!-- Accent line after a headline -->156<h1 class="title">Your headline here</h1>157<span class="accent-line"></span>158```159160**Available classes:**161- `.accent-line` — 80px amber line that expands from left, then pulses162- `.accent-line.long` — 120px version for major headlines163164**Behavior:**165- Line draws in from left (0.8s ease-out) when slide becomes active166- Then gently pulses (opacity + slight scale) on a 4s cycle167- Respects `prefers-reduced-motion` and `?motion=off`168169**When to use:**170- Title slides (layout-title) to add visual interest171- Key message slides where you want emphasis172- Sparingly — 3-4 slides per deck maximum173174## Copy editor175176- Open `decks/<deck-id>/editor.html` in a second window to edit copy without touching HTML.177- Use the editor "Open deck" button to connect and update the live preview.178- For existing decks, copy the template first:179 ```bash180 cp skills/keynote-slides/assets/keynote-editor.html decks/<deck-id>/editor.html181 ```182- Edits are stored in localStorage; export JSON from the editor for handoff.183184## PDF export185186- Use the browser print dialog and "Save as PDF".187- Enable background graphics for gradients and color fills.188- The template includes print styles to paginate each slide.189- CLI option:190 ```bash191 node scripts/export-pdf.js decks/<deck-id> --out /tmp/<deck-id>.pdf192 ```193194## Navigation195196- Arrow keys, PageUp/PageDown, Space.197- Home/End for first or last slide.198- Use `#slide-title` hash navigation for direct jumps.199200## Review Mode / Feedback System201202Enable reviewers to leave comments on deck elements for collaborative feedback.203204### Entering Review Mode205206- Click the "Review" button in the bottom toolbar (next to Gen)207- Press `r` key to toggle review mode208- Add `?review=1` to the URL to start in review mode209210### Adding Comments2112121. In review mode, hover over elements to see them highlighted2132. **Click** any commentable element (titles, text, cards, metrics, media frames)2143. **Or select text** within an element to comment on specific wording/typos2154. First-time commenters enter name and email (stored in session)2165. Type feedback in the popover and click "Add Comment"2176. A numbered badge (①②③) appears on commented elements for easy reference218219### Viewing Comments220221- Press `c` or click the sidebar toggle to open the comment sidebar222- Comments are grouped by slide223- Click "Go to slide" to navigate to the commented element224- Mark comments as resolved or delete them225226### Exporting Feedback227228From the comment sidebar:229- **Export JSON** - Downloads `comments-<deck-id>.json` for backup or import230- **Export MD** - Downloads markdown summary for sharing or Claude iteration231232### Feedback Viewer Page233234Use `assets/feedback-viewer.html` to review all feedback outside the deck:2352361. Open `feedback-viewer.html` in a browser2372. Load a `comments.json` file or enter a URL2383. Filter by open/resolved status2394. Mark comments as resolved2405. Export updated JSON or markdown241242Add `?url=<path-to-json>` to auto-load comments.243244### Comment Data Structure245246Comments are stored in localStorage keyed by deck ID. Export structure:247248```json249{250 "deckId": "example-pitch",251 "nextNumber": 4,252 "comments": [253 {254 "id": "c_1706123456789_abc123",255 "number": 1,256 "slideIndex": 2,257 "slideTitle": "Our Solution",258 "elementSelector": "[data-comment-target='headline']",259 "elementText": "First 50 chars of element...",260 "selectedText": "specific phrase",261 "comment": "This needs more specificity",262 "author": {263 "name": "Sarah Chen",264 "email": "sarah@example.com"265 },266 "createdAt": "2024-01-24T10:30:00Z",267 "resolved": false268 }269 ]270}271```272273- `number`: Sequential comment number (①②③) for easy reference in feedback274- `selectedText`: If reviewer selected specific text, captures that selection (null otherwise)275276### Element Targeting277278For precise comment targeting, add `data-comment-target` attributes:279280```html281<h2 data-comment-target="solution-headline">Our Solution</h2>282<p data-comment-target="value-prop-1">We reduce costs by 40%...</p>283```284285Elements without explicit targets use a generated CSS selector path.286287---288289## Narrative Engine Integration290291For content-driven deck creation, use the Narrative Engine workflow that matches your material to proven storytelling frameworks.292293### Reference Files294295- `references/narrative-engine/narrative-arcs.md` — Beat-by-beat structures for 10 narrative arcs296- `references/narrative-engine/framework-selection.md` — Selection matrix by audience/purpose/content297- `references/narrative-engine/framework_selection_guide.md` — Deep pairing guidance for arcs + frameworks298- `references/narrative-engine/communication-frameworks.md` — 7 efficiency-optimized frameworks299- `references/narrative-engine/checklists.md` — Quality gates for narrative + copy review300- `references/narrative-engine/agent-reference-*.md` — Agent-specific frameworks for review301302### Workflow: Narrative Build3033041. **Ingest resources:** Run `node scripts/ingest-resources.js decks/<deck-id>` to read all materials305 - Or use `node scripts/narrative-build.js decks/<deck-id>` to prepare model-mediated prompts3061a. **Load content-db atoms (if active).** If content-db mode is active, pull `copy.md` and `claims.md` atoms for the resolved entity. Filter atoms by `audience` tag if present. Surface any atom with a non-null `gate` value before proceeding — do not include gated content without user confirmation. If content-db is not active, skip this step.3072. **Focal discovery + discovery:** Align on the one point, then answer 5 questions (audience, purpose, content type, tone, reveal)3083. **Density + framework match:** Choose density mode, then get 2-3 recommendations with content mapped to structure3094. **Deck generation:** Build slides with source attribution tags. If content-db is active: use each claim's exact approved text — do not paraphrase. For any claim or copy string not found in the db, pause and ask: *"That claim isn't in `content-db/<entity>/claims.md` — want me to register it as unverified, or use the closest approved atom?"* Do not silently include or skip unapproved content.3105. **Review panel:** 5 agents + Director synthesize feedback311312### Discovery Questions313314| Question | Options |315|----------|---------|316| **Audience** | Executive, Technical, Investors, Skeptics, General, Mixed |317| **Purpose** | Persuade, Inform, Inspire, Align, Report, Defend, Entertain |318| **Content type** | Research, Strategy, Origin story, Post-mortem, Pattern insight, etc. |319| **Tone** | Authoritative, Provocative, Warm, Urgent, Balanced, Visionary |320| **Reveal potential** | Yes (has surprise), No (straightforward), Help me find one |321322### Framework Selection Quick Reference323324| If your content has... | Consider... |325|------------------------|-------------|326| A genuine surprise | The Prestige or Mystery Box |327| Multiple stakeholder views | Rashomon |328| A transformation story | Hero's Journey |329| Future vision | Time Machine |330| Root cause analysis | Columbo |331| Strategy/roadmap | The Heist |332| Paradigm shift | Trojan Horse |333334### 5-Agent Review Panel335336| Agent | Lens | Key Question |337|-------|------|--------------|338| **Audience Advocate** | Target audience persona | "Does this land for [audience]?" |339| **Comms Specialist** | Messaging, emotion, PR risk | "Is this tight and bulletproof?" |340| **Visual Designer** | Metaphor coherence, S.T.A.R. moments | "What visual makes this unforgettable?" |341| **Critic** | Pacing, weak links, efficacy | "What's the weakest link?" |342| **Content Expert** | Accuracy, logic, sources | "Can every claim be defended?" |343344### Stress Test Panel (Optional)345346After the 5-agent review, optionally stress-test with stakeholder personas auto-selected by content type:347348| Persona | Questions | Best For |349|---------|-----------|----------|350| **Engineer** | "How does this actually work?" | Technical proposals, product launches |351| **Skeptic** | "Why should I believe this?" | Bold claims, paradigm shifts |352| **Risk Officer** | "What could go wrong?" | Strategy, transformation, investment |353| **CFO** | "What are the numbers?" | Pitches, business cases, ROI claims |354| **Lawyer** | "What's the exposure?" | Policy, compliance, external-facing |355| **Conservative** | "Why change what's working?" | Change management |356| **COO** | "Would this actually work?" | Execution plans, go-to-market |357358The Director triages findings into **Must Fix**, **Should Fix**, and **Could Fix** categories.359360### Source Attribution Tags361362| Tag | Meaning |363|-----|---------|364| `[DIRECT]` | Verbatim from source material |365| `[PARAPHRASE]` | Restated ideas |366| `[ELABORATED]` | Expanded concept |367| `[SYNTHESIZED]` | Combined multiple sources |368| `[GENERATED]` | New content for flow |369370### Headline Rules371372- **Image & Action:** Concrete nouns + strong transitive verbs; avoid "is/are"373- **Tension & Turn:** Because/Therefore, Not/But, Before/After374- **Cadence:** 8-14 words; two-beat rhythm375- **Specific Anchors:** Time/place/actor/number in every third headline376- **Power verbs:** tilts, unseats, ignites, drains, compounds, unlocks, anchors, accelerates377- **Metaphor family:** One per deck (journey OR ecology OR weather, etc.)378379See `/docs/integrated-architecture.md` for full technical details.380381---382383## Content Database384385A modular, approved-content management layer for any project using keynote-slides. When a `content-db/<entity>/` directory exists alongside `brands.js`, agents automatically load and enforce approved atoms. When it does not exist, the skill runs exactly as before — no config, no warnings.386387### Directory Structure388389```390<deck-repo>/391├── brands.js ← entity source of truth (unchanged)392├── content-db/393│ └── <entity>/ ← one directory per entity394│ ├── README.md ← schema reference + agent protocol395│ ├── claims.md ← cl### atoms — stats, benchmarks, data points396│ ├── validation.md ← vl### atoms — experimental evidence blocks397│ ├── assets.md ← as### atoms — images, video, SVG with provenance398│ ├── copy.md ← cp### atoms — approved text passages399│ ├── brand.md ← br### atoms — color tokens, typography400│ └── layouts.md ← ly### atoms — approved slide structures401└── <deck-id>/ ← decks alongside (unchanged)402```403404`content-db/` always lives next to `brands.js`. Multi-entity repos have one subdirectory per entity.405406### Entity Resolution407408Resolve the active entity in this order:4094101. `deck.json` → `entity` field4112. `<section data-entity="...">` on the active slide4123. `brands.js` → the entity whose export key is `"default"`, or the single entity in the file. If multiple entities exist without a `"default"` key, surface the ambiguity — do not guess.413414### Detection415416```417resolve entity418→ content-db/<entity>/ exists and is well-formed?419 → YES: load relevant atom files, activate compliance420 → MALFORMED: log warning, proceed without compliance421 → NO: proceed as normal, no message422```423424| Operation | Atom files loaded |425|-----------|------------------|426| Narrative planning | `copy.md`, `claims.md` |427| Full build | all six files |428| Targeted edit | only types relevant to the change |429430### Compliance Rules4314321. **Read before write.** Load relevant atoms before generating content. Never re-derive brand colors or claim text if an atom already exists.4332. **Surface unapproved content (Build and Edit only — not planning).** If a claim or copy string is not in the db (different number, source, or framing = new claim; minor rewording = same), pause: *"That claim isn't in `content-db/<entity>/claims.md` — want me to register it as unverified, or use the closest approved atom?"*4343. **Register new atoms.** After any build or edit, write atoms for all claims (`cl###`), copy strings (`cp###`), and assets (`as###`) introduced. Run `node content-db/validate.js`. Output is not complete until exit 0.4354. **Never modify existing atoms.** If content conflicts with an existing atom, add a `vl###` validation record and update `status: disputed` in the original. Surface the conflict to the user.436437### Atom Prefixes438439All new atoms use a two-letter prefix + zero-padded three-digit number. Existing atoms with single-letter prefixes are grandfathered.440441| File | Prefix | Contents |442|------|--------|----------|443| `claims.md` | `cl###` | Stats, benchmarks — `status: validated \| disputed \| unverified` |444| `validation.md` | `vl###` | Experimental evidence — `experiment_type`, `result`, `institution` |445| `assets.md` | `as###` | Images, video, SVG — `file`, `deck`, `type`, `used_in` |446| `copy.md` | `cp###` | Approved text passages — `concept`, `audience_level`, `tone`, `variants` |447| `brand.md` | `br###` | Color tokens, typography — `element`, `css_var`, `value`, `usage_rules` |448| `layouts.md` | `ly###` | Slide structures — `slide_type`, `css_classes`, `js_required`, `data_density` |449450Each atom is a `## <id>` heading with bullet-field body. Full schema in `content-db/<entity>/README.md`.451452### Bootstrap453454The skill does not scaffold a content-db unprompted. If a user asks why content-db is not active, explain the directory is absent and offer to create it. Only scaffold if the user says yes.455456Bootstrap steps (when approved):4571. Create `content-db/<entity>/` directory4582. Create six empty atom files with schema header comments4593. Create `README.md` with schema reference and compliance rules4604. Offer (separately) to extract initial atoms from existing deck HTML461462If the user declines, proceed in no-compliance mode and do not raise the topic again in the same session.463464---465> Converted and distributed by [TomeVault](https://tomevault.io/claim/dbmcco) — claim your Tome and manage your conversions.466<!-- tomevault:4.0:skill_md:2026-04-11 -->