Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问clear审计通过

slidev-project-structureSlidev 项目结构

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

2,182

周安装

90

GitHub Stars

27

下载量

713
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:slidev-project-structure(Slidev 项目结构)
来源仓库:https://github.com/yoanbernabeu/slidev-skills
仓库路径:skills/slidev-project-structure
安装命令:
npx skills add https://github.com/yoanbernabeu/slidev-skills --skill slidev-project-structure
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/yoanbernabeu/slidev-skills --skill slidev-project-structure

简介

slidev-project-structure 用于辅助前端页面、组件、样式和交互逻辑的开发与维护,适合生成或审查 React、Vue、CSS 等相关代码。

  • 适用于 Slidev 项目的结构规划与组件组织场景。
  • 通过 npx skills add 命令从 GitHub 安装,需结合项目现有设计系统使用。
  • 涉及页面改动时应配合本地预览和构建检查确认视觉效果,避免生成孤立片段。
  • 注意该技能当前无详细功能说明,建议进一步查阅源码以了解实际能力边界。

SKILL.md

theme
seriph
addons
title
My Presentation
titleTemplate
%s - Slidev
info
|
colorSchema
auto
aspectRatio
16/9
canvasWidth
980
themeConfig
primary
#5d8392
highlighter
shiki
lineNumbers
true
monaco
true
drawings
enabled
true
persist
true
presenterOnly
false
syncAll
true
selectable
true
record
true
transition
slide-left
clicks
auto
exportFilename
my-presentation
download
true
layout
cover
background
/cover.jpg
class
text-center

## Directory Conventions

### components/

Custom Vue components auto-imported into slides:

<!-- components/Counter.vue --> <script setup lang="ts"> import { ref } from 'vue'

const count = ref(0) </script>

<template> <div class="flex items-center gap-4"> <button @click="count--">-</button> <span>{{ count }}</span> <button @click="count++">+</button> </div> </template>


Use in slides:

Interactive Counter

<Counter />


### layouts/

Custom layouts extend built-in ones:

<!-- layouts/my-intro.vue --> <template> <div class="slidev-layout my-intro"> <div class="header"> <slot name="header" /> </div> <div class="main"> <slot /> </div> <div class="footer"> <slot name="footer"> <span>My Company</span> </slot> </div> </div> </template>

<style scoped> .my-intro { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding: 2rem; } </style>


Use in slides:

layout: my-intro


::header::

Welcome

::default:: Main content here

::footer:: Custom footer


### public/

Static assets served at root URL:

public/ ├── images/ │ ├── logo.png # Use: /images/logo.png │ └── diagram.svg ├── favicon.ico # Use: /favicon.ico └── data.json # Use: /data.json


### styles/

Global styles applied to all slides:

/* styles/index.css */ @import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

:root { --slidev-theme-primary: #3b82f6; }

.slidev-layout { font-family: 'Inter', sans-serif; }

/* Custom utility classes */ .highlight { background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); padding: 0 0.25em; }


### setup/

Configuration scripts:

// setup/main.ts - Vue app configuration import { defineAppSetup } from '@slidev/types'

export default defineAppSetup(({ app, router }) => { // Register global components // Configure plugins })

// setup/shiki.ts - Code highlighter import { defineShikiSetup } from '@slidev/types'

export default defineShikiSetup(() => { return { themes: { dark: 'vitesse-dark', light: 'vitesse-light', }, } })

// setup/monaco.ts - Monaco editor import { defineMonacoSetup } from '@slidev/types'

export default defineMonacoSetup(() => { return { editorOptions: { fontSize: 14, minimap: { enabled: false }, }, } })


### pages/

Additional slide files for modular presentations:

<!-- pages/intro.md -->

Introduction Section


About Me


Agenda


Import in main file:

src: ./pages/intro.md



Main Content



src: ./pages/conclusion.md



## Vite Configuration

// vite.config.ts import { defineConfig } from 'vite'

export default defineConfig({ slidev: { vue: { // Vue plugin options }, }, // Standard Vite options server: { port: 3030, }, })


## UnoCSS Configuration

// uno.config.ts import { defineConfig } from 'unocss'

export default defineConfig({ shortcuts: { 'bg-main': 'bg-white dark:bg-slate-900', 'text-main': 'text-slate-900 dark:text-slate-100', }, theme: { colors: { primary: '#3b82f6', }, }, })


## Theme Configuration

### Using a Theme

theme: seriph themeConfig: primary: '#5d8392' secondary: '#8b5cf6'



### Ejecting a Theme

To customize a theme's source code:

slidev theme eject


This copies the theme to your project for full customization.

## Multi-File Presentations

### Importing Slides

src: ./pages/section1.md



src: ./pages/section2.md



### With Frontmatter Merging

src: ./pages/intro.md title: Overridden Title class: custom-class



## Generated Files (.slidev/)

The `.slidev/` directory contains:

*   `drawings/` - Persisted drawings
*   Other generated assets

Add to `.gitignore`:

.slidev node_modules dist


## Best Practices

1.  **Keep slides.md focused**: Use `src` imports for large presentations
2.  **Organize assets**: Use `public/images/` for all images
3.  **Reuse components**: Create components for repeated patterns
4.  **Version control**: Commit all source files except `.slidev/` and `dist/`
5.  **Document custom layouts**: Add comments explaining slot usage

## Output Format

When explaining project structure, provide:

RECOMMENDED STRUCTURE: ├── slides.md # Main file ├── components/ # Custom Vue components ├── layouts/ # Custom layouts ├── public/ # Static assets ├── styles/ # Global CSS └── package.json # Dependencies

KEY CONFIGURATION:

  • Theme: [theme name]
  • Addons: [list of addons]
  • Custom components: [component names]
  • Custom layouts: [layout names]

FILES TO CREATE:

  1. [filename] - [purpose]
  2. [filename] - [purpose]

GITIGNORE: .slidev/ node_modules/ dist/

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

31.21%
按下载量换算223

OpenCode

23.63%
按下载量换算168

Antigravity

17.6%
按下载量换算125

openclaw

12.5%
按下载量换算89

Codex

8.14%
按下载量换算58

Gemini CLI

3.53%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills