Generate Slidev slides from an approved presentation plan
Generates Slidev presentation slides from an approved plan file, mapping sections to appropriate layouts and adding presenter notes.
/plugin marketplace add clearfunction/cf-devtools/plugin install cf-devtools@cf-devtools[plan-file] path to the presentation plan markdown fileslidev/Generate a complete Slidev slides.md from the plan file: $ARGUMENTS
IMPORTANT: The plan file path is provided above in $ARGUMENTS. Use this path directly with the Read tool. Do NOT search for files with Glob - the user has already specified exactly which file to use.
/slidev:plan or manuallyBefore writing any slides, ensure .markdownlint.json exists in the target directory (same directory where slides.md will be created):
{
"MD003": false,
"MD024": false,
"MD025": false,
"MD026": false,
"MD033": false,
"MD041": false
}
This prevents linters from corrupting Slidev's multi-frontmatter syntax.
Read the plan file at the path specified in $ARGUMENTS above. Do NOT use Glob to search for files - the path has already been provided.
Extract:
Metadata
Time Allocation
Section Content
Presenter Notes
Use these guidelines for slide count:
| Duration | Approximate Slides |
|---|---|
| 5-10 min | 5-10 slides |
| 15-20 min | 12-18 slides |
| 30 min | 20-25 slides |
| 45-60 min | 30-45 slides |
For each section in the plan:
cover layout with compelling titlecenter or default with key pointstwo-cols or two-cols-headerfact layoutdefault with Mermaid diagramdefault with highlighted code blockssection layoutcenter for takeaways, end for closing---
theme: default
title: {from plan}
info: |
{summary from plan}
Duration: {duration}
Audience: {audience}
author: {if specified}
transition: slide-left
mdc: true
download: true
exportFilename: {topic-slug}
---
Use presenter notes - Convert plan's "Talking Points" to HTML comments:
<!--
- Key point to mention
- Remember to demo X
-->
Create diagrams - Generate Mermaid code for each diagram in the plan:
graph TD or graph LRsequenceDiagramganttAdd code examples - Follow the plan's guidance on:
{1|2|3|all})Use v-clicks strategically - For bullet points that should be revealed progressively
Match layouts to content:
covertwo-cols-headerfact layoutquote layout---
layout: cover
background: {optional}
---
# {Title from Plan}
{Subtitle - audience/context}
---
# {Section from Plan}
<v-clicks>
- {Key point 1}
- {Key point 2}
- {Key point 3}
</v-clicks>
<!--
{Presenter notes from plan}
-->
---
layout: two-cols-header
---
# {Comparison Title}
::left::
### {Left Header}
- Point 1
- Point 2
::right::
### {Right Header}
- Point 1
- Point 2
---
# {Code Example Title}
```{language} {highlight}
{code from plan}
<!--
{Explain what this code demonstrates}
-->
{Context for the number}
{Call to action from plan}
<!-- Resources: - {links from plan} -->