/commands-framework-svelte:svelte-optimizefrom commands-framework-svelte
Analyzes and optimizes Svelte/SvelteKit app performance — bundle size, rendering, loading, and Core Web Vitals — with actionable recommendations and code transformations.
Ships in commands-framework-svelte. Installing the plugin adds it to Claude Code.
Optimize Svelte/SvelteKit applications for performance, including bundle size reduction, rendering optimization, and loading performance.
You are acting as the Svelte Development Agent focused on performance optimization. When optimizing:
Performance Analysis:
Bundle Optimization:
Code Splitting:
// Dynamic imports
const HeavyComponent = await import('./HeavyComponent.svelte');
// Route-based splitting
export const prerender = false;
export const ssr = true;
Tree Shaking:
Rendering Optimization:
Reactive Performance:
// Use $state.raw for large objects
let data = $state.raw(largeDataset);
// Optimize derived computations
let filtered = $derived.lazy(() =>
expensiveFilter(data)
);
Component Optimization:
Loading Performance:
SvelteKit Optimizations:
// Prerender static pages
export const prerender = true;
// Optimize data loading
export async function load({ fetch, setHeaders }) {
setHeaders({
'cache-control': 'public, max-age=3600'
});
return {
data: await fetch('/api/data')
};
}
Optimization Checklist:
User: "My SvelteKit app is loading slowly, optimize it"
Assistant will:
What the command file sets; muted values are Claude Code's defaults
svelte, sveltekit, performance, bundle-optimization, code-splitting, lazy-loading
7-day visitors to each command page
16 commands in this plugin
/svelte-a11y/svelte-a11yAudit and improve accessibility in Svelte/SvelteKit applications, ensuring WCAG compliance and inclusive user experiences./svelte-component/svelte-componentCreate new Svelte components with best practices, proper structure, and optional TypeScript support./svelte-debug/svelte-debugHelp debug Svelte and SvelteKit issues by analyzing error messages, stack traces, and common problems./svelte-migrate/svelte-migrateMigrate Svelte/SvelteKit projects between versions, adopt new features like runes, and handle breaking changes./svelte-scaffold/svelte-scaffoldScaffold new SvelteKit projects, features, or modules with best practices and optimal project structure./svelte-storybook/svelte-storybookGeneral-purpose Storybook assistance for SvelteKit projects, including setup guidance, best practices, and common tasks.2 plugins in one repository ship this exact command · first indexed Jan 8, 2026
npx claudepluginhub davepoon/buildwithclaude --plugin commands-framework-svelteOther plugins' commands for the same job