vitejs-expert

vitejs-expert is a skill for Claude Code from personamanagmentlayer/pcl. It costs 93 tokens per session (1,990 once invoked), scanned A, original, Apache-2.0.

Expert knowledge in Vite build tooling, native ESM dev servers, Hot Module Replacement, Rollup-based production builds, and the Vite plugin ecosystem for React, Vue, Svelte, and library projects. Use when the user mentions Vite, vite.config, HMR, ESM dev server, Rollup, or Vitest, or when the task involves Vite…

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Install with agentmods
npx agentmods add skills/personamanagmentlayer/pcl/vitejs-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add personamanagmentlayer/pcl --skill vitejs-expert
Clone the repo
git clone --depth 1 https://github.com/personamanagmentlayer/pcl

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vitejs-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/vitejs-expert/github.svg)](https://agentmods.dev/skills/personamanagmentlayer/pcl/vitejs-expert)
Your own site
<a href="https://agentmods.dev/skills/personamanagmentlayer/pcl/vitejs-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/vitejs-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vitejs-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/personamanagmentlayer/pcl/vitejs-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/vitejs-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,990 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.01990
Opus 5 $0.00046 $0.00995
Sonnet 5 $0.00019 $0.00398
Haiku 4.5 $0.00009 $0.00199

Measured today against content hash 41b35307a1fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

vitejs-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

stdlib/frameworks/vitejs-expert/SKILL.md · 163 lines

How it starts

The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vite Expert

You are an expert in Vite, specializing in native ESM dev servers, Hot Module Replacement (HMR), Rollup-based production builds, the plugin ecosystem, and optimizing build performance across React, Vue, Svelte, and library projects.

Core Concepts

Vite Fundamentals

  • Native ESM Dev Server: Serves source files over native ES modules, no bundling in dev
  • On-Demand Compilation: Transforms only requested modules, keeping cold start fast
  • Hot Module Replacement: Instant, precise updates without full reload
  • Dependency Pre-Bundling: esbuild converts CommonJS/UMD deps to ESM and batches requests
  • Production Build: Rollup-based bundling with tree-shaking and code-splitting
  • Universal Plugin Interface: Compatible with a subset of Rollup plugins

Configuration

  • vite.config.ts: Central configuration (plugins, resolve, server, build)
  • Resolve Aliases: Path aliasing via resolve.alias
  • Environment Variables: .env files, import.meta.env, VITE_-prefixed client exposure
  • Mode-Based Config: development, production, and custom modes via --mode
  • Conditional Config: Function form of defineConfig receiving { command, mode }

Plugin Ecosystem

  • Official Plugins: @vitejs/plugin-react, @vitejs/plugin-vue, @vitejs/plugin-legacy
  • Plugin Hooks: resolveId, load, transform, configureServer, handleHotUpdate
  • Rollup Compatibility: Most Rollup plugins work directly; some need apply: 'build'
  • Community Plugins: vite-tsconfig-paths, vite-plugin-svgr, unplugin-* family

Build & Optimization

  • Code Splitting: Automatic per-route chunking via dynamic import()
  • Manual Chunks: build.rollupOptions.output.manualChunks for vendor splitting
  • Asset Handling: Static asset inlining threshold, ?url and ?raw import suffixes
  • CSS Code Splitting: Per-chunk CSS extraction by default
  • Library Mode: build.lib for publishing packages (ESM/CJS/UMD outputs)
  • Multi-Page Apps: Multiple HTML entry points via build.rollupOptions.input
  • Target & Polyfills: build.target, @vitejs/plugin-legacy for older browsers

Read the full file on GitHub · 163 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 163 lines · 93 tokens per session scan A 41b35307a1fd

Subscribe to this mod's changes

vitejs-expert is a skill published in the GitHub repository personamanagmentlayer/pcl (40 stars, last pushed today), licensed Apache-2.0. It adds 93 tokens to every session and 1,990 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

Other skills, from other repositories

vite-docs

Use this skill whenever the user asks about Vite, build tools, dev servers, HMR, production builds, or frontend tooling. Covers Vite 8.x with Rolldown and Oxc, including plugins, SSR, Environment API, library mode, deployment, and configuration. Use it for code generation, architecture decisions, debugging, migration…

pledgeandgrow/pledge-skills · 117 tokens

vitest

Vitest - Modern TypeScript testing framework with Vite-native performance, ESM support, and TypeScript-first design.

bobmatnyc/claude-mpm-skills · 26 tokens

vitest

Vitest unit testing — Vite-powered, Jest-compatible. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.

martineserios/thebrana · 33 tokens

bundler

JavaScript module bundlers reference. Covers Vite config and dev server, esbuild CLI and API, Webpack 5 with loaders and plugins, Rollup for libraries, Rspack, code splitting, tree shaking, HMR, and source maps.

bytesagain/ai-skills · 55 tokens

screen-reader-testing

Test web applications with screen readers including VoiceOver, NVDA, and JAWS. Use when validating screen reader compatibility, debugging accessibility issues, or ensuring assistive technology support.

wshobson/agents · 39 tokens

storybook-testing

Storybook 10 testing patterns with Vitest integration, ESM-only distribution, CSF3 typesafe factories, play() interaction tests, Chromatic TurboSnap visual regression, module automocking, accessibility addon testing, and autodocs generation. Use when writing component stories, setting up visual regression testing…

yonatangross/orchestkit · 77 tokens