vite-devtools-svelte-perf-audit
Installation
SKILL.md
Svelte performance audit
You are auditing a running Svelte/SvelteKit dev server through the svelte-devtools MCP server provided by vite-devtools-svelte.
Preconditions
- The dev server is running and the user has registered the MCP server with
claude mcp add(the dev server prints the command on startup). If a tool answersNo running dev server, relay that to the user; if it asks forserver, calllist_dev_serversand ask the user which app they mean. - The user has exercised the app at least once in a browser — render/load/fps buffers are empty until traffic flows.
If either is missing, stop and tell the user what to do; do not invent metrics.
Workflow
- Call
start_sessionwithlabel: "baseline-<short description>"andpersist: false. Tell the user that they should now use the app in the browser (golden path + any flow they care about) for ~10–30 seconds. - Wait for the user to confirm they are done exercising the app. Do not poll.
- When they confirm, ask whether to keep the baseline for this dev-server run only (
keep: "memory", default) or save it to disk (keep: "disk"), then callend_sessionwith thatkeep. Note the session id from the response — you will need it later. - Call
list_performance_issues(no thresholds first; defaults are sensible). Read theissuesarray. - Present the top 3 issues to the user as a compact table:
severity | kind | summary | file. Add any context from themetricfield that aids interpretation. - Ask the user which issue (if any) to investigate. Do not implement fixes in this skill. Hand off to
/vite-devtools-svelte-perf-fix <issue id or summary>once they pick one.