vite

vite is a skill for Claude Code, Codex from bskimball/tanstack-hono. It costs 49 tokens per session (656 once invoked), scanned A, a copy of vite, MIT.

A guide to configuring Vite, a tool that runs a fast development server and prepares JavaScript or TypeScript projects for production. It covers frontend apps, libraries, server-rendered apps, and Vite plugins.

In plain words
What is it for?
Use it when editing vite.config.ts, setting up plugins, using features such as hot reloading or import.meta.glob, building libraries, configuring server rendering, or migrating to Rolldown.
Why use it?
It provides project-specific guidance for choosing configuration, using Vite features, and handling changes in the Vite 8 beta.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/bskimball/tanstack-hono/vite
Any agent
npx skills add bskimball/tanstack-hono --skill vite
Clone the repo
git clone --depth 1 https://github.com/bskimball/tanstack-hono

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/bskimball/tanstack-hono/vite.svg)](https://agentmods.dev/skills/bskimball/tanstack-hono/vite)
Your own site
<a href="https://agentmods.dev/skills/bskimball/tanstack-hono/vite"><img src="https://agentmods.dev/badge/skills/bskimball/tanstack-hono/vite.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 656 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00049 $0.00656
Opus 5 $0.00024 $0.00328
Sonnet 5 $0.00010 $0.00131
Haiku 4.5 $0.00005 $0.00066

Measured 4d ago against content hash 3cb7a75336e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vite 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 4d 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.

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.

Origin

This is a copy

100% identical to vite — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/vite/SKILL.md · 73 lines

How it starts

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

Vite

Based on Vite 8 beta (Rolldown-powered). Vite 8 uses Rolldown bundler and Oxc transformer.

Vite is a next-generation frontend build tool with fast dev server (native ESM + HMR) and optimized production builds.

Preferences

  • Use TypeScript: prefer vite.config.ts
  • Always use ESM, avoid CommonJS

Core

Topic Description Reference
Configuration vite.config.ts, defineConfig, conditional configs, loadEnv core-config
Features import.meta.glob, asset queries (?raw, ?url), import.meta.env, HMR API core-features
Plugin API Vite-specific hooks, virtual modules, plugin ordering core-plugin-api

Build & SSR

Topic Description Reference
Build & SSR Library mode, SSR middleware mode, ssrLoadModule, JavaScript API build-and-ssr

Advanced

Topic Description Reference
Environment API Vite 6+ multi-environment support, custom runtimes environment-api
Rolldown Migration Vite 8 changes: Rolldown bundler, Oxc transformer, config migration rolldown-migration

Quick Reference

CLI Commands

vite              # Start dev server
vite build        # Production build
vite preview      # Preview production build
vite build --ssr  # SSR build

Common Config

import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [],
  resolve: { alias: { '@': '/src' } },
  server: { port: 3000, proxy: { '/api': 'http://localhost:8080' } },
  build: { target: 'esnext', outDir: 'dist' },
})

Official Plugins

  • @vitejs/plugin-vue - Vue 3 SFC support
  • @vitejs/plugin-vue-jsx - Vue 3 JSX
  • @vitejs/plugin-react - React with Oxc/Babel
  • @vitejs/plugin-react-swc - React with SWC
  • @vitejs/plugin-legacy - Legacy browser support

Read the full file on GitHub · 73 lines

Files

What ships with it

7 files 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. 4d ago First seen · 73 lines · 49 tokens per session scan A 3cb7a75336e3

Subscribe to this mod's changes

vite is a skill published in the GitHub repository bskimball/tanstack-hono (119 stars, last pushed 23d ago), licensed MIT. It adds 49 tokens to every session and 656 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to vite, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

hono-jsx

Hono JSX - server-side rendering, streaming, async components, and HTML generation patterns.

bobmatnyc/claude-mpm-skills · 22 tokens

coss

Helps implement coss UI components correctly. Use when building UIs with coss primitives (buttons, dialogs, selects, forms, menus, tabs, inputs, toasts, etc.), migrating from shadcn/Radix to coss/Base UI, composing trigger-based overlays, or troubleshooting coss component behavior. Covers imports, accessibility…

usekaneo/kaneo · 80 tokens

vercel-geist-design-system

Community skill for applying the Geist design system to Vercel-inspired rendered frontend UI across React/Next.js/Vite/Astro/Svelte/Vue/HTML/CSS, Tailwind, shadcn, and Radix. Use for typography, spacing, color, materials, components, app shells, dashboards, forms, tables, dialogs, states, responsive layout, and UI…

syhily/kobato · 141 tokens

posthog-debugger

Debug and inspect PostHog implementations on any website. Use this skill when a user wants to understand how PostHog is implemented on a page, troubleshoot tracking issues, verify configuration, check what events are being sent, or audit a PostHog setup. Works with Chrome DevTools MCP and Playwright MCP to inspect…

motormetrics/motormetrics · 72 tokens

survey-sdk-audit

Audit PostHog survey SDK features and version requirements.

motormetrics/motormetrics · 15 tokens

next-cache-components-optimizer

Optimize a Next.js app that has cacheComponents: true — either the static shell on first paint, or the in-app navigation between routes. Picks the matching diagnostic loop and runs it.

motormetrics/motormetrics · 45 tokens