Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问clear审计通过

vite-advancedVite 高级

Agent Skill

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

总安装

857

周安装

35

GitHub Stars

152

下载量

274
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/yonatangross/skillforge-claude-plugin --skill vite-advanced

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 信息,适合协作事项整理。

  • 可帮助 Agent 围绕代码变更和仓库状态进行梳理,提升开发流程效率。
  • 安装命令:npx skills add https://github.com/yonatangross/skillforge-claude-plugin --skill vite-advanced
  • 使用前建议确认权限范围和维护状态,避免触发联网或命令执行。
  • 注意检查是否会读写文件或修改项目结构。

SKILL.md

Vite Advanced Patterns

Advanced configuration for Vite 8 (Rolldown-powered, stable Mar 2026) with Environment API from Vite 7.

Vite 8: Rolldown-Powered Builds (Default)

Vite 8 replaces esbuild+Rollup with Rolldown (Rust-based unified bundler), delivering 7.7x faster builds and 50% less memory. This is now the default for all new projects.

npm install vite@8  # Direct upgrade

Key improvements:

MetricVite 7Vite 8Improvement
Build time (Linear)46s6s7.7x faster
Dev server startup~3s~1s3x faster
HMR updates~100ms~60ms40% faster
Memory usage~800MB~400MB50% reduction

Breaking changes from Vite 7:

  • build.rollupOptionsbuild.rolldownOptions (auto-converted with deprecation warning)
  • transformWithEsbuildtransformWithOxc
  • Plugin transform() returning JS must add moduleType: 'js' to return value
  • manualChunks object form removed — use function form or advancedChunks
  • 'system' / 'amd' output formats no longer supported
  • Lightning CSS is now standard (replaces esbuild for CSS minification)
  • Browser target bump: Chrome 107→111, Firefox 104→114, Safari 16.0→16.4

advancedChunks (Replaces manualChunks)

Vite 8 introduces declarative chunk grouping with priority control and size constraints:

export default defineConfig({
  build: {
    rolldownOptions: {
      output: {
        advancedChunks: {
          groups: [
            { name: 'react-vendor', test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/, priority: 20 },
            { name: 'ui-vendor', test: /[\\/]node_modules[\\/]@radix-ui[\\/]/, priority: 15, minShareCount: 2 },
            { name: 'vendor', test: /[\\/]node_modules[\\/]/, priority: 10, maxSize: 500000 },
          ],
        },
      },
    },
  },
})

Load Read("${CLAUDE_SKILL_DIR}/references/vite8-rolldown.md") for full migration options, benchmarks, advancedChunks syntax, Oxc benefits, and migration checklist.

Environment API (from Vite 7, stable)

Multi-environment support (client/SSR/edge) is first-class:

export default defineConfig({
  environments: {
    client: { build: { outDir: 'dist/client' } },
    ssr: { build: { outDir: 'dist/server', ssr: true } },
  },
});

Load Read("${CLAUDE_SKILL_DIR}/references/environment-api.md") for full configuration, per-environment plugins, Builder API, and buildApp hook.

Plugin Development

Hooks for config, transform, resolveId, load, virtual modules, HMR, and environment-aware transforms.

Load Read("${CLAUDE_SKILL_DIR}/references/plugin-development.md") for plugin structure, hook execution order, and advanced patterns.

SSR Configuration

Middleware mode for dev, separate client/server builds for prod, streaming SSR support.

Load Read("${CLAUDE_SKILL_DIR}/references/ssr-configuration.md") for entry points, dev/prod server setup, and streaming patterns.

Build Optimization

Chunk splitting with advancedChunks (Vite 8, preferred) or manualChunks (Vite 7 legacy), tree shaking, minification, and bundle analysis.

Load Read("${CLAUDE_SKILL_DIR}/references/chunk-optimization.md") for chunk strategies, build targets, and optimization checklist.

Quick Reference

FeatureVite 8 Status
Rolldown bundlerDefault (replaces esbuild+Rollup)
Environment APIStable (from Vite 7)
ESM-only distributionDefault
Node.js requirement20.19+ or 22.12+
advancedChunksNew (replaces manualChunks)
buildApp hookStable (for multi-env plugins)
createBuilderMulti-env builds
Oxc integrationParsing 3x faster than SWC

Key Decisions

DecisionRecommendation
New projectsVite 8 (default)
Existing production appsEvaluate Vite 8, use rolldown-vite for gradual migration
Multi-env buildsEnvironment API (environments config)
Plugin scopeUse this.environment for env-aware plugins
SSRMiddleware mode for dev, separate builds for prod
ChunksadvancedChunks for Vite 8, manualChunks for Vite 7 compat

Related Skills

  • biome-linting - Fast linting alongside Vite
  • ork:react-server-components-framework - SSR integration
  • edge-computing-patterns - Edge environment builds
  • ork:storybook-testing - Component testing with Vitest

References

Load on demand with Read("${CLAUDE_SKILL_DIR}/references/<file>"):

FileContent
vite8-rolldown.mdRolldown migration, benchmarks, advancedChunks, Oxc benefits
environment-api.mdMulti-environment builds, Builder API, per-env plugins
plugin-development.mdPlugin hooks, virtual modules, HMR, env-aware transforms
ssr-configuration.mdEntry points, dev/prod servers, streaming SSR
library-mode.mdBuilding publishable npm packages
chunk-optimization.mdadvancedChunks, manualChunks, tree shaking, bundle analysis

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

32.22%
按下载量换算88

OpenCode

21.88%
按下载量换算60

Antigravity

18.96%
按下载量换算52

Gemini CLI

11.76%
按下载量换算32

windsurf

8.92%
按下载量换算24

trae

3.46%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills