vite-browser-runtime-diagnostics

vite-browser-runtime-diagnostics is a skill for Claude Code, Codex from MapleCity1314/vite-browser. It costs 152 tokens per session (1,069 once invoked), scanned A, original, MIT.

A troubleshooting guide for Vite development servers, which build and update modern web applications while you work, focused on hot updates, reloads, module changes, and browser errors.

In plain words
What is it for?
Use it to trace browser errors, connect failures to recent updates, inspect Vite's module graph, and diagnose hot-module-reloading or update-propagation problems.
Why use it?
It helps identify whether a recent code update caused a broken page, unexpected full reload, repeated rerender, or unstable hot reload instead of relying only on the visible error overlay.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to trace browser errors, connect failures to recent updates, inspect Vite's module graph, and diagnose hot-module-reloading or update-propagation problems.

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

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-browser-runtime-diagnostics

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/maplecity1314/vite-browser/vite-browser-runtime-diagnostics"><img src="https://agentmods.dev/badge/skills/maplecity1314/vite-browser/vite-browser-runtime-diagnostics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 152 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,069 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 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.00152 $0.01069
Opus 5.5 $0.00061 $0.00428
Sonnet 5.5 $0.00030 $0.00214
Haiku 4.5 $0.00015 $0.00107

Measured 1mo ago against content hash 37b8b8bf2b24, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vite-browser-runtime-diagnostics 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 1mo 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.

skills/vite-browser-runtime-diagnostics/SKILL.md · 106 lines

How it starts

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

vite-browser-runtime-diagnostics

Use this skill when runtime behavior is the likely cause. Prefer it over component inspection when timing and recent updates matter.

Standard sequence

vite-browser vite runtime
vite-browser errors --mapped --inline-source
vite-browser correlate errors --mapped --window 5000
vite-browser correlate renders --window 5000
vite-browser diagnose propagation --window 5000
vite-browser diagnose hmr --limit 50
vite-browser vite hmr trace --limit 50
vite-browser vite module-graph --limit 200
vite-browser vite module-graph trace --limit 200

In v0.3.3+, errors --mapped --inline-source is also the right first read for browser-side runtime failures that never appear in the Vite overlay. Do not assume no errors means the page is healthy unless logs and the visible browser state agree.

Use diagnose propagation first when the question is about rerenders, component paths, store changes, or "what update actually flowed into this failure". Treat its output as a high-confidence propagation clue, not strict causal proof. Use diagnose hmr first when the problem still looks primarily transport/HMR-layer.

Diagnostic patterns

HMR instability

  1. vite hmr clear
  2. Reproduce once
  3. vite hmr trace --limit 50
  4. Flag full-reload or repeated error events.

Module churn

  1. vite module-graph clear
  2. Capture baseline: vite module-graph
  3. Trigger one change or one navigation
  4. vite module-graph trace
  5. Inspect unexpectedly added/removed modules.

Recent update caused failure

  1. Reproduce once after the failure.
  2. correlate errors --mapped --window 5000
  3. Identify whether the current error overlaps with recent HMR-updated modules.
  4. Inspect the highest-confidence matching module first.

Store or component propagation

  1. Reproduce once after the visible failure.
  2. Wait briefly for queued render/store events to settle if reproduction was driven by a live interaction or hot update. A short delay such as ~300ms is usually enough, though v0.3.3+ is more tolerant of sparse store-side evidence and missing browser-side HMR events in Vue/Pinia repros.
  3. correlate renders --window 5000
  4. diagnose propagation --window 5000
  5. Use Store Updates, Changed Keys, and Render Path to choose the first store/component to inspect.
    • Vue: vue pinia [store], vue tree
    • React: react store list, react store inspect <name>, react commits --limit 20, react tree
  6. If the output is inconclusive or says no trace is available, keep the conclusion conservative and do not overstate a causal chain.

Read the full file on GitHub · 106 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. 1mo ago First seen · 106 lines · 152 tokens per session scan A 37b8b8bf2b24

Subscribe to this mod's changes

vite-browser-runtime-diagnostics is a skill published in the GitHub repository MapleCity1314/vite-browser (9 stars, last pushed 6mo ago), licensed MIT. It adds 152 tokens to every session and 1,069 once invoked, about $0.0006 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-31.