一键导入
slidev-syntax
Slidev markdown syntax reference for frontmatter, slide separators, layouts, code blocks, and Mermaid diagrams.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Slidev markdown syntax reference for frontmatter, slide separators, layouts, code blocks, and Mermaid diagrams.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Centi-deck author skill. The agent writes one ES module per slide exporting `render()` + optional `enter/leave` lifecycle hooks. Use `ctx.gsap` for animations. Submit the full deck with `submit_centi_deck_revision` (editor) or `submit_centi_deck` (generation).
Default Slidev generation and editing skill. Use it to plan first, write valid Slidev markdown, apply local references, and submit a presentation-ready markdown deck.
Slidev deck information architecture and structure-quality guidance for page roles, density, and anti-pattern checks.
Slidev references layer for deck-level styles plus per-slide layout/block recipes. Use it to turn selected references into executable slide structure instead of free-form markdown aesthetics.
分析用户上传的数据文件或粘贴的数据,推荐合适的图表类型,生成图表并插入当前选中的幻灯片。
检查 PPT 质量,基于专业评价标准分析信息密度、视觉平衡、叙事连贯性、配色一致性等维度,输出问题列表和改进建议。
| name | slidev-syntax |
| description | Slidev markdown syntax reference for frontmatter, slide separators, layouts, code blocks, and Mermaid diagrams. |
| version | 0.1.0 |
| command | /slidev-syntax |
Use this skill when you need authoritative Slidev markdown structure while generating deck source. Treat Slidev native structure as a first-class layout language, not just a markdown bullet renderer.
------ fenceslayout: or class:, put them in the opening frontmatter block; do not create an empty separator before the coverlayout: cover, layout: center, layout: two-cols, layout: quote, layout: section, or layout: end when neededmermaid blocks for diagramsclass: and transition: sparingly to reinforce structure, not as decoration spamthemeConfig, scoped classes, and a small set of stable recipe classes are allowed when they create clear visual hierarchy---
theme: default
title: Demo Deck
layout: cover
class: deck-cover
---
# Opening
Short positioning line
## Architecture
```mermaid
graph TD
A[Input] --> B[Process]
B --> C[Output]
## Useful Patterns
- **Cover**
- prefer `layout: cover` or `layout: center`
- use one strong title + one short positioning line
- prefer `class: deck-cover`
- **Context**
- prefer a compact quote, callout, or 2-4 bullets
- avoid turning context pages into dense body text
- prefer `class: deck-context`
- **Section divider**
- one strong heading + one supporting line
- `layout: section` or `layout: center` works better than a plain body page
- **Compare**
- use `layout: two-cols`, a grid, or a table with explicit contrast labels
- prefer `class: deck-comparison`
- **Framework**
- prefer 2x2 grid / numbered stack / Mermaid over long flat bullets
- prefer `class: deck-framework`
- **Detail / Evidence / Process**
- if there is no stable built-in layout, prefer native structures like Mermaid, tables, `div` grids, or scoped callouts
- do not force every structured page into a built-in Slidev layout name
- **Recommendation**
- one headline + 2-4 actions / decisions
- prefer `class: deck-recommendation`
- **Closing**
- avoid ending on a weak bullet dump; make the last slide a takeaway or next-step page
- `layout: end` is a good default for a deliberate finish
- prefer `class: deck-closing`
## Visual Recipe Layer
- Treat these as stable recipe classes, not free-form styling:
- `deck-cover`: hero cover, sparse copy, strong hierarchy
- `deck-context`: short setup page, quote/callout/compact bullets
- `deck-framework`: structured model page, usually Mermaid/table/grid + one takeaway line
- `deck-comparison`: explicit side-by-side contrast, ideally `two-cols` or compare table
- `deck-recommendation`: decision headline + action list
- `deck-closing`: `end`-style takeaway / next-step finish
- Prefer utility-class HTML wrappers only when they reinforce these recipes
- Do not dump long raw bullet lists into a page that already claims to use a native layout
- Do not create this anti-pattern for the first slide:
```md
---
theme: default
title: Demo
---
---
layout: cover
---
---
theme: default
title: Demo
layout: cover
class: deck-cover
---
cover role
layout: coverlayout: centercomparison role
layout: two-colssection-divider role
layout: sectionlayout: centerhighlight role
layout: quoteclosing role
layout: end