litestar-vite

litestar-vite is a skill for Claude Code from litestar-org/litestar-skills. It costs 57 tokens per session (3,911 once invoked), scanned A, original, MIT.

A Litestar integration that connects a Vite frontend build system with a Litestar backend. It coordinates development proxying, hot module replacement, production asset manifests, and optional TypeScript types generated from the backend's OpenAPI description.

In plain words
What is it for?
Use it to configure SPA, template, hybrid, or framework-style applications, proxy a development server, coordinate HMR, resolve production assets, and generate TypeScript API types.
Why use it?
It keeps frontend and backend development settings connected across development and production. It also reduces manual work when serving built assets or keeping frontend types aligned with backend API definitions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the litestar plugin — 20 skills, 1 agent shipped together

Good fit Use it to configure SPA, template, hybrid, or framework-style applications, proxy a development server, coordinate HMR, resolve production assets, and generate TypeScript API types.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/litestar-org/litestar-skills/litestar-vite
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 litestar-org/litestar-skills --skill litestar-vite
Clone the repo
git clone --depth 1 https://github.com/litestar-org/litestar-skills

Made for: Claude Code.

Or install litestar, the plugin that ships this one along with the rest of its 20 skills, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/litestar-org/litestar-skills/litestar-vite/github.svg)](https://agentmods.dev/skills/litestar-org/litestar-skills/litestar-vite)
Your own site
<a href="https://agentmods.dev/skills/litestar-org/litestar-skills/litestar-vite"><img src="https://agentmods.dev/badge/skills/litestar-org/litestar-skills/litestar-vite/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 litestar-vite

Your own site · 80×15
<a href="https://agentmods.dev/skills/litestar-org/litestar-skills/litestar-vite"><img src="https://agentmods.dev/badge/skills/litestar-org/litestar-skills/litestar-vite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,911 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Tool Misuse · line 43
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
  • medium Tool Misuse · line 74
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
  • medium Tool Misuse · line 228
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
How audits are shown
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.00057 $0.03911
Opus 5.5 $0.00023 $0.01564
Sonnet 5.5 $0.00011 $0.00782
Haiku 4.5 $0.00006 $0.00391

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

Security

Grade A, and why

litestar-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 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.

skills/litestar-vite/SKILL.md · 240 lines

How it starts

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

litestar-vite

litestar-vite connects a Vite frontend pipeline to Litestar (litestar-vite 0.34.0 + litestar-vite-plugin): dev proxying, HMR, production manifest resolution, SSR/fragments, and OpenAPI/AsyncAPI TypeScript generation.

Canonical modes are spa, template, hybrid, and framework. Aliases htmx (template), inertia (hybrid), ssr/ssg (framework), and external (framework + ExternalDevServer) normalize at ViteConfig construction. ViteConfig is the source of truth: Python writes .litestar.json so vite.config.ts normally needs only litestar({ input: [...] }). See Release Updates.

Code Style Rules

  • Python / TypeScript: PEP 604 unions (T | None); consumer modules MAY use from __future__ import annotations. Strict TS, defineConfig from vite, one vite.config.ts per project, no : any.
  • Single source of truth: Keep bundleDir, hotFile, and assetUrl in ViteConfig (via .litestar.json); omit JS overrides unless diverging intentionally.
  • Inertia (mode="hybrid"): return msgspec.Struct(..., rename="camel") prop bags, pass csrfHeaders() in createInertiaApp({ defaults: { visitOptions } }), use useForm, and read flashes from top-level usePage().flash (never usePage().props.flash).

Quick Reference

Minimal SPA setup

from litestar import Litestar
from litestar_vite import PathConfig, ViteConfig, VitePlugin

vite_config = ViteConfig(
    mode="spa",
    enabled=True,
    paths=PathConfig(resource_dir="resources", bundle_dir="public", hot_file="hot"),
    dev_mode=True,
)

app = Litestar(plugins=[VitePlugin(config=vite_config)])
// vite.config.ts (.litestar.json supplies bundleDir, hotFile, assetUrl, types)
import react from "@vitejs/plugin-react"
import litestar from "litestar-vite-plugin"
import { defineConfig } from "vite"

export default defineConfig({
  plugins: [react(), !process.env.VITEST && litestar({ input: ["resources/main.tsx"] })].filter(Boolean),
  resolve: { alias: { "@": "/resources" } },
})

Read the full file on GitHub · 240 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. today Changed · -189 lines f362ea57bf9c
  2. 13d ago Changed · +2 lines 0393b8e03403
  3. 23d ago Changed e571e097aa41
  4. 1mo ago Changed · -262 lines e30173c5359c
  5. 1mo ago Changed cc9a50b9fb95
  6. 2mo ago Changed · -1 lines · -7 tokens per session ea215c3cb249
  7. 2mo ago Changed · +120 lines · +7 tokens per session e55929dc50b8
  8. 3mo ago First seen · 570 lines · 57 tokens per session scan A c863498095ef

Subscribe to this mod's changes

litestar-vite is a skill published in the GitHub repository litestar-org/litestar-skills (19 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 3,911 once invoked, about $0.0002 per session on Opus 5.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-08-30.

Related

litestar-vite compared with skills from other repositories

litestar-vite next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
litestar-vitelitestar-org/litestar-skillsSkill19todayMITA57Claude Code
add-server-logicmicrosoft/power-platform-skillsSkill1.2ktodayMITA83Claude Code
integrate-webapimicrosoft/power-platform-skillsSkill1.2ktodayMITA105Claude Code
add-cloud-flowmicrosoft/power-platform-skillsSkill1.2ktodayMITA91Claude Code
integrate-backendmicrosoft/power-platform-skillsSkill1.2ktodayMITA86Claude Code
migrate-webapi-selectallmicrosoft/power-platform-skillsSkill1.2ktodayMITA141Claude Code
generate-codeful-mcp-toolmicrosoft/power-platform-skillsSkill1.2ktodayMITA71Claude Code