audit-perf

Identify performance anti-patterns in SvelteKit and PocketBase code.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jluckyiv/rivcomocktrial --skill audit-perf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-perf
Source: https://github.com/jluckyiv/rivcomocktrial/tree/main/.claude/skills/audit-perf
Command: npx skills add https://github.com/jluckyiv/rivcomocktrial --skill audit-perf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, fd.

What problem does it solve?

This Skill identifies performance anti-patterns in a SvelteKit + PocketBase stack, helping teams spot areas that slow user interactions or degrade load times.

Core Features & Use Cases

  • Scans web/src/ and backend/pb_hooks/ for common anti-patterns such as N+1 queries, sequential awaits, suboptimal image loading, and oversized bundles.
  • Produces actionable findings that help engineers fix regressions before milestones, ensuring snappier UX at scale.

Quick Start

Run the perf-checks.sh script in this Skill unit to begin the audit and review the outputs for issues affecting user-perceived performance.

Frequently Asked Questions about audit-perf

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

FAQPage Schema
How do I audit SvelteKit and PocketBase for performance issues?

Auditing SvelteKit and PocketBase performance involves scanning web/src/ and backend/pb_hooks/ for N+1 queries, sequential awaits, suboptimal image loading, and oversized bundles. The perf-checks.sh script automates this scan to surface issues affecting user-perceived latency.

What are common N+1 query anti-patterns in PocketBase hooks?

Common N+1 query anti-patterns in PocketBase hooks involve sequential awaits that fetch related records individually rather than batching. Scanning backend/pb_hooks/ identifies these sequential awaits to classify scale-aware performance risks.

How do I check SvelteKit bundle size and image optimization?

Checking SvelteKit bundle size and image optimization involves scanning web/src/ for oversized bundles and suboptimal image loading. The audit applies a provided rubric and scale context to classify findings based on user-perceived latency impact.

Does this performance audit require jq and fd dependencies?

Yes, this performance audit requires jq and fd dependencies to execute the perf-checks.sh script. These tools enable scanning the SvelteKit and PocketBase codebase to identify anti-patterns affecting user interactions and load times.

Can I use this audit for front-end best-practices checks at scale?

Yes, you can use this audit for front-end best-practices checks at scale. It satisfies scale-aware risk flagging requirements by applying a provided rubric and scale context to classify performance findings across web and backend code paths.