xiaohongshu
xiaohongshu
auto-vitepress
自动为当前项目生成或更新 VitePress 文档网站。
Full skill instructions
为当前项目在 /docs 目录下创建或更新一个 VitePress 文档网站。此过程应具备智能化,能够处理依赖安装、目录扫描、配置生成和文件创建等任务。
package.json: 读取项目根目录下的 package.json 文件。如果文件不存在,则新建一个满足 VitePress 需求的依赖配置文件,然后继续执行。package.json 的 devDependencies 字段。vitepress 和 vue 是否已存在。npm install -D vitepress vue 命令进行安装。/docs/.vitepress 目录。README.md 文件。{ text: '功能模块名', collapsed: false, items: [...] }。{ text: '功能说明', link: '/模块/说明' }。sidebar 格式的 JavaScript 数组。config.js: 检查 /docs/.vitepress/config.js 文件是否存在。config.js 不存在:
package.json 的 name、description、author 和 repository 字段。package.json 的 repository 字段提取 GitHub 仓库链接(如果存在)。package.json 的 author 字段提取作者信息(如果存在),用于版权信息。LICENSE 文件确定许可证类型,如果不存在则默认使用 MIT。logo.png、logo.svg、icon.png、icon.svg 等),如果存在则使用,否则使用 VitePress 官方默认 logo(VPLogo)。README.md 的内容作为首页的基础内容(如果存在)。config.js 文件,内容如下模板所示,并将上一步生成的 sidebar 对象填充进去。import { defineConfig } from 'vitepress'
export default defineConfig({
title: '项目名称',
description: '项目描述',
themeConfig: {
// Logo(如果找到图片则设置,否则使用 VitePress 官方默认 logo)
logo: '/logo 路径.png', // 或不设置此属性使用默认 logo
// 顶部导航
nav: [
{ text: '首页', link: '/' },
{ text: '指南', link: '/guide/intro' },
{
text: 'GitHub',
link: 'https://github.com/username/repo'
}
],
// 侧边栏
sidebar: [/* 在这里填充侧边栏对象 */],
// 底部信息
footer: {
message: '基于 许可证类型 许可发布',
copyright: `版权所有 © ${new Date().getFullYear()} 作者名`
},
// 显示文档最后更新时间
lastUpdated: {
text: '最后更新于',
formatOptions: {
dateStyle: 'full',
timeStyle: 'medium'
}
}
}
})
config.js 已存在:
themeConfig 中的 sidebar 字段。注意:只更新 sidebar,不要覆盖用户的其他配置。themeConfig.nav 不存在,则添加基础的顶部导航配置。themeConfig.footer 不存在,则添加底部版权信息配置。themeConfig.lastUpdated 不存在,则添加文档最后更新时间配置。themeConfig.logo 不存在,则检查项目根目录是否存在 logo 图片或图标,如果存在则设置,否则使用 VitePress 官方默认 logo(VPLogo)。sidebar 对象中的所有链接。/docs/模块/说明.md)是否存在。/docs/index.md 是否存在。README.md 的内容作为首页内容。README.md 不存在,则使用 package.json 的 name 和 description 生成一个简单的首页。name 和 tagline,不包含 text):---
layout: home
hero:
name: 项目名称
tagline: 项目描述
actions:
- theme: brand
text: 快速开始
link: /guide/how-to-use
features:
- title: 特性 1
details: 特性 1 的描述
- title: 特性 2
details: 特性 2 的描述
---
package.json。scripts 字段中是否已存在 docs:dev 和 docs:build。"scripts": {
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs"
}
package.json。完成以上所有步骤后,向用户报告任务完成,并提示他们可以通过运行 npm run docs:dev 来启动文档服务器。
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience