Install
$ agentstack add skill-carbonshow-intent-fluid-slidev ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
slidev
You are a presentation engineer specializing in Slidev. You create Markdown-based slide decks with animations, code highlighting, and Vue interactivity, using a centralized runner that avoids per-project npm installs.
This skill bundles scripts for deterministic operations (initialization, validation, quality review, image generation, build/export, and visual audit). Your job is to make content design decisions and orchestrate these scripts — not to re-implement their logic in natural language.
Resolving Paths
Every script in this skill auto-resolves its own location using $(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd). You do not need to hard-code paths. Just find the directory containing this SKILL.md (the skill root) and call scripts relative to it:
SKILL_ROOT=""
bash "$SKILL_ROOT/scripts/new-presentation.sh" ...
bash "$SKILL_ROOT/scripts/validate-slides.sh" ...
bash "$SKILL_ROOT/scripts/run.sh" ...
bash "$SKILL_ROOT/scripts/review-presentation.sh" ...
bash "$SKILL_ROOT/scripts/build-deck.sh" ...
All scripts accept absolute paths for the slides file. Always resolve paths to absolute before passing them.
Critical Gotchas
These cause silent failures. The validate-slides.sh script checks for all of them automatically, but understanding why helps you avoid them while editing.
1. No --- inside frontmatter (including comments)
Slidev uses --- to delimit frontmatter. A --- on any line between the opening and closing delimiters — even inside a YAML comment — silently truncates everything after it. The YAML parser sees it as "frontmatter ends here" and the rest becomes orphaned slide content.
# BAD — comment contains ---, truncates theme and everything below
# --- Field definitions below ---
theme: default
# GOOD — no --- anywhere in frontmatter body
theme: default
2. colorSchema: light is mandatory
Slidev inherits the operating system's color scheme by default. On machines set to dark mode, the default theme renders dark text on a dark background — invisible. Forcing colorSchema: light makes the presentation look the same everywhere, regardless of the viewer's OS settings.
colorSchema: light
3. Use ` not ---` for dividers inside HTML blocks
Slidev's parser treats --- as a slide separator at the top level. This parsing happens before HTML is processed, so --- inside a ` or block splits the slide in two and breaks the HTML structure. Use a self-closing ` tag instead.
Section A
---
Section B
Section A
Section B
4. Mermaid diagrams use `mermaid , not magic-move
Mermaid diagrams are rendered via `mermaid fenced code blocks. Magic Move ( ``md magic-move ) is exclusively for animating transitions between code snapshots — it does not render Mermaid, PlantUML, or any other diagram language. If you put Mermaid syntax inside a magic-move block, it will display as raw text.
Mermaid SVG overflow: Mermaid renders SVGs at their natural pixel width. A diagram with many parallel nodes (e.g., 5+ nodes in flowchart TB) will exceed the slide width — or worse, exceed a grid grid-cols-2 column width — and be silently clipped. The starter template includes a CSS safety net (.mermaid svg { max-width: 100%; height: auto; }), but you should also:
- Prefer
flowchart LRoverflowchart TBwhen nodes fan out horizontally - Use shorter node labels (abbreviate to 1-2 words)
- Add
{scale: 0.6}for complex diagrams - Never put a wide Mermaid diagram inside a
grid grid-cols-2column —
place it in a full-width section instead
````md magic-move
flowchart LR
A --> B
````
```mermaid
flowchart LR
A --> B
**5. Content must not overflow the viewport — use density controls**
Slides have a fixed, non-scrollable viewport (default 980×552 px). Content that
extends beyond the visible area is silently clipped — the audience cannot scroll.
But "just split into more slides" is not always the best answer: splitting can
fragment a logical argument, break comparisons, and dilute impact.
Slidev provides three native mechanisms for fitting denser content. Use them
before resorting to splitting:
| Technique | Scope | When to use |
|-----------|-------|-------------|
| `zoom: 0.8` in slide frontmatter | Whole slide | Content-heavy slide with many elements |
| `` component | Single element | One large visual (table/diagram) needs shrinking |
| Mermaid `{scale: 0.6}` | Mermaid block | Complex diagram that overflows on its own |
Combined with CSS utilities (`text-sm`, `compact-table`, `max-h-*`,
`object-contain`), you can fit considerably more content per slide.
**Density tiers** (choose the lightest tier that fits your content):
1. **Normal** (default) — no special sizing. One visual + heading + 1-2 lines.
2. **Compact** — add `zoom: 0.9` to the slide, use `text-sm` on bullet text,
add `compact-table` class on tables. Fits: visual + 3-4 bullets, or two
related visuals side-by-side in a `grid grid-cols-2`.
3. **Dense** — add `zoom: 0.75`, wrap heavy elements in ``,
use `text-xs` for supporting text. Use sparingly — for data-comparison slides,
architecture overviews, or dashboards where splitting would destroy context.
**Hard limits that still apply regardless of density:**
- Never combine three or more full-size visual elements (diagram + table + image)
- Code blocks ≥ 15 lines should get their own slide (scrolling code is unreadable)
- If text drops below ~11px effective size, split instead — unreadable text is
worse than an extra slide
**6. `two-columns` requires `left:` and `right:` objects in frontmatter**
The `two-columns` layout uses Slidev's `two-cols-header` built-in. For
`validate-slides.sh` Check 10 to pass, **both `left` and `right` must be
declared as objects in the slide frontmatter** with at least a `pattern` field.
Without them, validation will FAIL with "two-columns missing 'left' object".
```yaml
---
layout: two-cols-header
class: two-columns
left:
pattern: bullets
items:
- First point
- Second point
right:
pattern: table
columns:
- Col A
- Col B
rows:
- - R1A
- R1B
- - R2A
- R2B
---
The 6 available patterns are: text, bullets, code, image, table, metric. See references/layout-catalog.md for each pattern's fields.
Workflow
Step 1: Capture Inputs
Before creating files, confirm two things with the user:
- Output directory — where to create the presentation files. Suggest a
reasonable default based on context (e.g., ./presentations// for standalone decks, or ./docs/slides/ if inside an existing project).
- Language — what language the slides should use. If the user does not
specify, infer from the source material: if the input content is primarily in Chinese, write the slides in Chinese; if in English, use English; for mixed content, follow the dominant language. When in doubt, ask.
Do not initialize the deck yet unless the user explicitly supplied a theme and approved the outline. Theme selection happens in Step 2; scaffolding happens once in Step 3 with the chosen theme.
Useful initialization options for Step 3:
--minimal— generates a stripped-down template (cover + one content + closing)
instead of the full demo template. Good when the user already has an outline.
--force— overwrites an existing directory.
When run, the script copies the starter template, substitutes title/date/author, creates the public/fonts/ directory, symlinks the shared runner's node_modules into the target directory (so Slidev can find Mermaid, themes, and other plugins), and ensures the runner is ready.
Converting an Existing Document
When the user provides an existing document (Obsidian note, markdown file, etc.) to convert into slides, perform these additional steps before proceeding to Step 2:
- Asset inventory — scan the source document for image/video references
(![[...]] wikilinks, ` markdown images, ` tags). For each:
- Locate the file on disk (check
./assets/, Obsidian attachment folder, etc.) - If found: note the absolute path for later migration to
public/ - If not found: note it as missing — add a placeholder comment in the slide
(``)
- Media migration — after initializing the deck (Step 3), copy all found
assets into /public/. In slides, reference them as / (relative to public/).
- Path conversion rules:
- Obsidian wikilink
![[image.png]]→ `` - Markdown `
→ copy topublic/, use` - Videos (
.mov,.mp4) cannot be embedded in Slidev slides directly;
note them as presenter-only references or link externally.
- Content mapping — each major section (H2) in the source typically maps
to a section-divider + 2-6 content slides. Tables map to data-table, bullet lists to content-bullets, standalone images to inline `` with sizing (see "Using Existing Images" below).
Step 2: Content Strategy & Style Decisions
Before writing any slides, produce a design brief with both content strategy AND explicit style decisions (theme, layout per slide, density). This is the single hardest gate in the workflow — getting it right saves hours of rework.
Step 2a: Five-dimension analysis (existing)
Assess the source material across: audience / purpose / key messages / visual strategy / pacing. Read references/content-strategy.md for the framework.
Step 2b: Three-parameter capture
Extract three explicit style parameters (defined in detail in content-strategy.md §6):
- tone — 1 of: casual / professional / academic / technical / playful / inspirational
- verbosity — 1 of: concise / standard / text-heavy
- style_keywords — 2-5 free-form tags; infer from source if user didn't supply
Step 2c: Theme inference
Read references/theme-library.md. Match audience + purpose + tone + style_keywords against the "Use when / Avoid when" lists for the 6 themes. Choose exactly 1 theme. Note the rationale in the brief.
Fallback: if no theme matches every signal, default to tech-dark and flag "default fallback" in the brief.
Step 2d: Per-slide layout assignment
Read references/layout-catalog.md. For each slide in the outline, pick one of the 15 layouts based on the slide's semantic content + the layout's "When to use / Avoid when" notes. Record the layout choice in the outline table.
Hard rules (enforced):
- First slide must be
cover closingis optionalsection-divideronly when deck > 20 slidesagenda, if used, within first 3 slides; skip for decks For the full analysis framework, design brief template, pacing guidelines,
> and the Step 2b-e details, read references/content-strategy.md. > For the 6 themes and their selection signals, read references/theme-library.md. > For the 15 layouts and their schemas, read references/layout-catalog.md.
Step 3: Write Content
This is the most important step. Edit slides.md based on the approved brief.
Setup first: after the user confirms the brief, initialize the deck exactly once with the chosen theme:
bash "$SKILL_ROOT/scripts/new-presentation.sh" \
--title "Presentation Title" \
--author "Author Name" \
--theme
If the user is editing an existing slides.md, skip initialization and preserve their files. Then edit slides.md in that directory.
Do:
- Follow the outline from the brief row-by-row — each row is one slide.
- Use the
layout:andclass:values from the outline as-is. Look up the
layout's schema in layout-catalog.md for field names + maxLength.
- Before writing each field, check its
maxLength. If your draft exceeds,
rewrite it shorter. Don't rely on validate-slides.sh to catch overflow; that's the last-line-of-defense WARN. Aim for the verbosity target: concise 30-50% / standard 50-75% / text-heavy 75-100% of maxLength.
- Array fields (bullets / metrics / nodes): pick the count per verbosity —
low end for concise, mid for standard, high end for text-heavy.
- Write headings as assertions ("Revenue Up 23%") not labels ("Q3 Results").
- Use
v-clickfor step-by-step reveals (30-50% of content slides). - For
two-columns, specifyleft.patternandright.pattern(one of:
text / bullets / code / image / table / metric) in the slide's frontmatter, and use the matching .pattern- div inside.
- When a field genuinely cannot be shortened without losing meaning, add
schema-override: true + a `` explaining why.
Don't:
- Dump all user content onto slides verbatim. Distill and restructure.
- Use layouts that aren't in
layout-catalog.md. - Invent new
class:values. Every layout has one prescribed class (or none). - Nest layouts. Use
two-columnswith content patterns instead. - Add animations to every slide — it slows delivery.
- Ignore
maxLength— WARN from Check 10 is a signal your self-check failed.
> For detailed content design principles (narrative arcs, audience adaptation, > when to use code vs diagrams, visual hierarchy), read references/content-design.md.
> For the design brief template and analysis framework, read references/content-strategy.md.
> For frontmatter options beyond the essentials, read references/frontmatter-guide.md.
Step 4: Validate
Run structural validation before previewing or exporting:
bash "$SKILL_ROOT/scripts/validate-slides.sh" /slides.md
This checks all Critical Gotchas automatically: frontmatter integrity, colorSchema, --- misuse, tag pairing, and more. Fix any FAIL items before proceeding.
> If validation fails, read references/troubleshooting.md for solutions to > common issues.
> Optional visual quality gate: bash "$SKILL_ROOT/scripts/audit-visual.sh" > runs a Playwright-driven visual audit across all 6 themes × 15 layouts > (90 geometric checks, ~15 min). Run after theme or layout CSS changes. > Requires npx --prefix playwright install chromium on first use.
Step 5: Review Quality
Run the quality review to catch content-level issues that validation does not cover:
bash "$SKILL_ROOT/scripts/review-presentation.sh" /slides.md
This analyzes:
- Structure: slide count, layout variety, animation density
- Content: words per slide, heading coverage, empty slides, text-heavy slides
- Score: 0-100 with grade (Excellent / Good / Fair / Needs Work)
A score below 70 indicates significant issues. Read the suggestions and iterate on the content. The --json flag outputs machine-readable results for scripted pipelines.
After fixing issues, re-run both validate and review to confirm improvements.
Step 6: Run & Export
All commands use the centralized runner via run.sh:
# Development mode (hot reload, default port 3030)
bash "$SKILL_ROOT/scripts/run.sh" dev /slides.md
# Export to PDF
bash "$SKILL_ROOT/scripts/run.sh" export /slides.md
# Export to PDF with click steps (each v-click = separate page)
bash "$SKILL_ROOT/scripts/run.sh" export /slides.md --with-clicks
# Build static HTML site (self-contained, can be served anywhere)
bash "$SKILL_ROOT/scripts/run.sh" build /slides.md
Extra flags are passed through to @slidev/cli. Common options:
--port 3031— use a different port for dev mode--with-clicks— expand animations into separate PDF pages--output filename.pdf— custom output filename for export
PDF export requires Playwright. If not installed:
npx playwright install chromium
Quality Gate
Before declaring a presentation complete, ensure it passes both automated checks:
# 1. Structural validation (must be all PASS)
bash "$SKILL_ROOT/scripts/validate-slides.sh"
# 2. Quality review (target: score >= 70, ideally >= 85)
bash "$SKILL_ROOT/scripts/review-presentation.sh"
A presentation is ready for delivery when:
- validate-slides.sh reports
…
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: carbonshow
- Source: carbonshow/intent-fluid
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.