Index of every page on this site: llms.txt
All skills
vite-hub avatar

/slidev

@8c10e89
by ViteHubvite-hub/drop9 stars
Run it yourself

Create and present web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations, and interactive features. Use when building technical presentations, conference talks, code walkthroughs, teaching materials, or developer decks.

Use this Skill: https://skilld.dev/gh/vite-hub/drop/slidev

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencescore-components.md

≈745 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Built-in Components

Ready-to-use components in Slidev.

Navigation

Link

Navigate to slide:

<Link to="5">Go to slide 5</Link>
<Link to="intro">Go to intro</Link>  <!-- with routeAlias -->

SlideCurrentNo / SlidesTotal

Slide <SlideCurrentNo /> of <SlidesTotal />

Toc (Table of Contents)

<Toc />
<Toc maxDepth="2" />
<Toc columns="2" />

Props:

  • columns - Number of columns
  • maxDepth / minDepth - Heading depth filter
  • mode - 'all' | 'onlyCurrentTree' | 'onlySiblings'

TitleRenderer

Render slide title:

<TitleRenderer no="3" />

Animations

VClick / VClicks

<VClick>Shows on click</VClick>

<VClicks>

- Item 1
- Item 2

</VClicks>

VAfter

<VClick>First</VClick>
<VAfter>Shows with first</VAfter>

VSwitch

<VSwitch>
  <template #1>State 1</template>
  <template #2>State 2</template>
</VSwitch>

Drawing

Arrow

<Arrow x1="10" y1="10" x2="100" y2="100" />
<Arrow x1="10" y1="10" x2="100" y2="100" two-way />

Props: x1, y1, x2, y2, width, color, two-way

VDragArrow

Draggable arrow:

<VDragArrow />

Layout

Transform

Scale elements:

<Transform :scale="0.5">
  <LargeContent />
</Transform>

Props: scale, origin

AutoFitText

Auto-sizing text:

<AutoFitText :max="200" :min="50" modelValue="Hello" />

Media

SlidevVideo

<SlidevVideo v-click autoplay controls>
  <source src="/video.mp4" type="video/mp4" />
</SlidevVideo>

Props: controls, autoplay, autoreset, poster, timestamp

Youtube

<Youtube id="dQw4w9WgXcQ" />
<Youtube id="dQw4w9WgXcQ" width="600" height="400" />

Tweet

<Tweet id="1423789844234231808" />
<Tweet id="1423789844234231808" :scale="0.8" />
<Tweet url="https://x.com/antfu7/status/1389604687502995457" />

Use either id or a full x.com or twitter.com post URL. When both are present, id takes precedence.

Conditional

LightOrDark

<LightOrDark>
  <template #dark>Dark mode content</template>
  <template #light>Light mode content</template>
</LightOrDark>

RenderWhen

<RenderWhen context="presenter">
  Only in presenter mode
</RenderWhen>

Context values:

  • main - Main presentation view
  • visible - Visible slides
  • print - Print/export mode
  • slide - Normal slide view
  • overview - Overview mode
  • presenter - Presenter mode
  • previewNext - Next slide preview

Branding

PoweredBySlidev

<PoweredBySlidev />

Draggable

VDrag

<VDrag pos="myElement">
  Draggable content
</VDrag>

See draggable for details.

Component Auto-Import

Components from these sources are auto-imported:

  1. Built-in components
  2. Theme components
  3. Addon components
  4. ./components/ directory

No import statements needed.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning10d3 checks · Risk SAFE
  • Gen Agent Trust Hub10d

    The skill provides a comprehensive guide for using Slidev, a developer-focused presentation tool, including its Model Context Protocol (MCP) server for AI agents. While it offers powerful features like live code execution and direct filesystem edits, these are standard functionalities for developers. However, the ability to read and modify files through the MCP server introduces an attack surface for indirect prompt injection.

  • Socket10d

    No alerts

  • Snyk10d

    Risk: MEDIUM · 1 issue

Signed by skilld at 8c10e89. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month

README badge

README badge for vite-hub/drop/slidev