perf

Analyze SvelteKit applications for performance issues in load functions, server code, client code, and bundle size.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/rp4ri/pi-studios --skill perf-rp4ri
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: perf
Source: https://github.com/rp4ri/pi-studios/tree/main/dev-studio/skills/perf
Command: npx skills add https://github.com/rp4ri/pi-studios --skill perf-rp4ri

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides in-depth runtime performance analysis for SvelteKit apps, identifying bottlenecks and suggesting improvements to enhance page load speed and reduce server latency.

Core Features & Use Cases

  • Runtime Analysis: Detects blocking I/O, sequential awaits, load waterfalls, memory leaks, and bundle bloat.
  • Custom Analysis: Allows analysis of specific paths, server-side code, client-side code, and bundle size.
  • Use Case: When you want to speed up page load times, reduce server latency, or optimize client bundle size for a SvelteKit application.

Quick Start

Run the perf skill to analyze the default routes and server performance for your SvelteKit app.

Frequently Asked Questions about perf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify load function waterfalls in my SvelteKit app?▼

To identify load function waterfalls in your SvelteKit app, you need comprehensive runtime performance analysis that detects sequential awaits and blocking I/O. This pinpoints exactly where parallel data fetching fails, reducing page load speed and server latency.

Why does my SvelteKit server-side code have high latency?▼

SvelteKit server-side code latency often stems from blocking I/O operations and sequential awaits in your load functions. A detailed performance analysis flags these bottlenecks, revealing where server-side code delays data fetching and impacts overall page load times.

What is the best way to reduce client bundle size in SvelteKit?▼

The best way to reduce client bundle size in SvelteKit is through targeted bundle bloat analysis. Performance profiling detects heavy imports and unused code in client-side files, allowing you to optimize bundle delivery and significantly speed up page load times.

Can I analyze specific routes for performance issues in SvelteKit?▼

Yes, you can analyze specific routes for performance issues in SvelteKit. Custom runtime analysis allows you to target individual paths, evaluating server-side code, client-side code, and bundle size to identify route-specific bottlenecks like memory leaks.

Do I need access to project files to run a SvelteKit performance analysis?▼

Yes, you need access to SvelteKit project files and configuration to run a performance analysis. The analysis requires reading your source code to detect blocking I/O, load waterfalls, and bundle bloat across both server-side and client-side files.