Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问clear审计通过

viteVite 前端构建

Agent Skill

vite 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

480,124

周安装

19,963

GitHub Stars

4,817

下载量

160,099
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/antfu/skills --skill vite

简介

下一代前端构建工具,具有本机 ESM 开发服务器、HMR 和 Rolldown 支持的生产构建。

  • 使用原生 ES 模块和热模块替换的快速开发服务器;使用 Rolldown 捆绑器和 Oxc 变压器优化生产构建
  • 通过 vite.config.ts 配置
  • 支持条件配置、环境变量和用于扩展构建行为的插件 API
  • 内置功能包括 import.meta.glob
  • 对于动态导入,资产查询(?raw, ? 网址),以及用于自定义刷新逻辑的 HMR API
  • ssrLoadModule 的库模式和 SSR 支持
  • 和用于编程构建的 JavaScript API
  • Vite 8 引入了用于自定义运行时的多环境 API 和传统捆绑程序的迁移路径

SKILL.md

name
vite
description
Vite next-generation frontend build tool with fast HMR and optimized builds. Use when configuring Vite, adding plugins, working with dev server, or building for production.
metadata
author
Anthony Fu
version
2026.1.28
source
Generated from https://github.com/vitejs/vite, scripts located at https://github.com/antfu/skills

Vite is a modern build tool for frontend development featuring instant server start with native ES modules, lightning-fast HMR, and optimized production builds using Rolldown/Rollup. It supports TypeScript, JSX, CSS pre-processors out of the box and has a rich plugin ecosystem.

The skill is based on Vite 6.x, generated at 2026-01-28.

Core

TopicDescriptionReference
ConfigurationConfig file setup, defineConfig, conditional and async configscore-config
CLI CommandsDev server, build, preview commands and optionscore-cli
Core FeaturesTypeScript, JSX, CSS, HTML processing, JSON handlingcore-features
Using PluginsAdding, configuring, and ordering pluginscore-plugins

Features

TopicDescriptionReference
CSS HandlingCSS modules, pre-processors, PostCSS, Lightning CSSfeatures-css
Static AssetsAsset imports, public directory, URL handlingfeatures-assets
Glob Importimport.meta.glob, dynamic imports, batch loadingfeatures-glob-import
Environment Variables.env files, modes, import.meta.env constantsfeatures-env
HMR APIHot Module Replacement client APIfeatures-hmr
Web WorkersWorker imports and configurationfeatures-workers
Dependency Pre-BundlingoptimizeDeps, caching, monorepo setupfeatures-dep-bundling

Build

TopicDescriptionReference
Production BuildBuild options, browser targets, multi-page appsbuild-production
Library ModeBuilding libraries with proper package exportsbuild-library
SSRServer-side rendering setup and configurationbuild-ssr

Advanced

TopicDescriptionReference
JavaScript APIcreateServer, build, preview programmatic APIsadvanced-api
Plugin APICreating Vite plugins, hooks, virtual modulesadvanced-plugin-api
PerformanceOptimization tips for dev server and buildsadvanced-performance
Backend IntegrationIntegrating Vite with traditional backendsadvanced-backend

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

26.05%
按下载量换算41,706

Cursor

25.71%
按下载量换算41,161

OpenCode

18.08%
按下载量换算28,946

Antigravity

11.49%
按下载量换算18,395

Gemini CLI

7.78%
按下载量换算12,456

trae

3.74%
按下载量换算5,988

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills