vite-expert

vite-expert is an agent for Claude Code from GoogilyBoogily/googilyboogily-claude-power-tools. It costs 47 tokens per session (1,174 once invoked), scanned C, original, MIT.

A specialist for Vite, a tool that runs and bundles modern web applications.

In plain words
What is it for?
Use it to tune Vite builds, configure framework plugins, develop Vite plugins, and check production builds.
Why use it?
It helps resolve slow development servers, broken hot reloading, build problems, plugin issues, and server-rendering configuration.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the build-tools-agents plugin — 2 agents shipped together

Good fit Use it to tune Vite builds, configure framework plugins, develop Vite plugins, and check production builds.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/googilyboogily/googilyboogily-claude-power-tools/vite-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.

Clone the repo
git clone --depth 1 https://github.com/GoogilyBoogily/googilyboogily-claude-power-tools

Made for: Claude Code.

Or install build-tools-agents, the plugin that ships this one along with the rest of its 2 agents.

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 vite-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/vite-expert/github.svg)](https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/vite-expert)
Your own site
<a href="https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/vite-expert"><img src="https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/vite-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 vite-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/vite-expert"><img src="https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/vite-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,174 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00047 $0.01174
Opus 5 $0.00023 $0.00587
Sonnet 5 $0.00009 $0.00235
Haiku 4.5 $0.00005 $0.00117

Measured 9d ago against content hash ff22ac43c7cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

vite-expert scanned grade C with 2 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 9d ago.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Nuke cache: `rm -rf node_modules/.vite`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. Verify WebSocket: `curl -s http://localhost:5173/__vite_ping`
plugins/build-tools-agents/agents/vite-expert.md · 150 lines

How it starts

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

Vite Expert

You are a Vite expert: ESM-first development, HMR, build tuning, plugins, SSR.

Step 0: Route or Stay

If out of scope, output the redirect and STOP — do not continue.

  • Runtime perf unrelated to bundling → performance-engineer
  • TypeScript language issues → typescript-expert
  • React-specific optimizations → react-expert
  • Testing config → testing-expert
  • Container/CI/CD → devops-expert
  • Webpack-specific → webpack-expert

Format: "This requires [X] expertise. Please invoke the [agent-name] subagent. Stopping here."

Step 1: Analyze

Use Read/Grep/Glob first; shell as fallback. Detect vite.config.*, framework plugins, and existing patterns. Adapt to framework constraints (SvelteKit, Nuxt, Astro).

Step 2: Solve, then validate with one-shot build

npm run build || vite build

Never start a long-running dev server process.

STOP Conditions

  • Build succeeds and the issue is resolved
  • HMR/dev-server fix confirmed via config change (do not start a dev server to "test")
  • Problem is outside Vite scope (route per Step 0)

Configuration Patterns

Conditional Dev/Prod

export default defineConfig(({ command }) => ({
  build: {
    target: 'es2020', minify: 'esbuild', cssCodeSplit: true,
    rollupOptions: { output: { manualChunks: { vendor: ['react', 'react-dom'] } } }
  },
  optimizeDeps: { include: ['react/jsx-runtime', 'react-dom/client'] },
  ...(command === 'serve' && {
    server: { port: 3000, strictPort: true, hmr: { overlay: true } }
  })
}))

Manual Chunks (Function)

manualChunks: (id) => {
  if (!id.includes('node_modules')) return
  if (id.includes('react')) return 'react-vendor'
  if (id.includes('@mui') || id.includes('@emotion')) return 'ui-vendor'
  return 'vendor'
}

Library Mode

build: {
  lib: {
    entry: resolve(__dirname, 'lib/main.ts'), name: 'MyLibrary',
    fileName: (format) => `my-library.${format}.js`, formats: ['es', 'cjs', 'umd']
  },
  rollupOptions: {
    external: ['react', 'react-dom', 'react/jsx-runtime'],
    output: { globals: { react: 'React', 'react-dom': 'ReactDOM' }, preserveModules: true }
  }
}

Read the full file on GitHub · 150 lines

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. 9d ago First seen · 150 lines · 47 tokens per session scan C ff22ac43c7cd

Subscribe to this mod's changes

vite-expert is an agent published in the GitHub repository GoogilyBoogily/googilyboogily-claude-power-tools (2 stars, last pushed 4mo ago), licensed MIT. It adds 47 tokens to every session and 1,174 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

react18-class-surgeon

Class component migration specialist for React 16/17 → 18.3.1. Migrates all three unsafe lifecycle methods with correct semantic replacements (not just UNSAFE prefix). Migrates legacy context to createContext, string refs to React.createRef(), findDOMNode to direct refs, and ReactDOM.render to createRoot. Uses memory…

github/awesome-copilot · 81 tokens

react-portfolio-engineer

React portfolio/gallery sites for creatives: React 18+, Next.js App Router, image optimization.

notque/vexjoy-agent · 25 tokens

frontend-dev

Frontend Developer (Aria Chen) - React, Next.js, TypeScript, accessibility, performance.

vibeeval/vibecosystem · 22 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

pywry-builder

Builds PyWry widgets, dashboards, chat UIs, and TradingView charts end‑to‑end by orchestrating the PyWry MCP tools. Use when the user asks to build, scaffold, or iterate on a PyWry app and the work involves multiple MCP tool calls (e.g. create widget → populate data → add toolbar → wire events → export).

deeleeramone/PyWry · 81 tokens

nextjs-expert

Next.js framework strategist. Makes decisions about rendering strategies (SSR/SSG/ISR), App Router patterns, data fetching, and performance optimization. Use when designing Next.js applications, choosing rendering methods, or architecting full-stack React apps.

armanzeroeight/fastagent-plugins · 53 tokens