-
Speed Rescue Pack
Find and fix the slow queries, missing indexes, and heavy pages dragging your app down.
Prompts In This Pack
-
Database
Add the indexes my queries actually need
Reads your real queries, finds the lookups doing full collection scans, and adds the right indexes.
-
Database
Add pagination to every list endpoint
Replaces unbounded fetch-everything queries with cursor or offset pagination before tables get big.
-
Performance
Audit my bundle for bloated and duplicate dependencies
Visualizes the production bundle, finds oversized and duplicate packages, and replaces or tree-shakes the offenders.
-
Performance
Audit how my app loads icons
Check whether you're shipping an entire icon font or library for a handful of icons, and switch to a lighter approach.
-
Performance
Audit my optimistic UI for the failure cases
Make sure instant-feeling updates roll back correctly when the server says no.
-
Performance
Audit my page weight and cut the fat
Measure what each page actually ships to the browser and cut the biggest offenders before launch.
-
Database
Find and fix slow queries with the slow query log
Enables slow query logging, ranks the worst offenders, and fixes them with indexes or rewrites.
-
Performance
Audit what my third-party scripts are costing me
Measure the performance and privacy cost of every external script and cut the ones that don't earn their keep.
-
Database
Find and drop indexes my app never uses
Uses database statistics to find indexes with zero or near-zero reads and removes them to speed up writes.
-
Performance
Stop my inputs from firing a request on every keystroke
Debounce and throttle search boxes, autosaves, and live filters so typing doesn't hammer your server.
-
Performance
Diagnose my database connection pool exhaustion
Find why your app runs out of database connections under load and fix pool sizing, leaks, and idle hogs.
-
Performance
Eliminate waterfalls in my data fetching
Find requests that wait on other requests unnecessarily and parallelize or combine them.
-
Performance
Turn on gzip/brotli compression for my app
Verifies text responses are compressed at the server or CDN and enables brotli/gzip where they are not.
-
Performance
Find and fix memory leaks in my app
Hunt down the leaks that make pages slow over time and servers crash at 3am: listeners, timers, subscriptions, and unbounded growth.
-
Performance
Fix layout shift (CLS) on my pages
Find what makes your pages jump around while loading and pin every element to a stable position.
-
Database
Fix my N+1 query problems
Finds loops that query per item and rewrites them as joins, eager loads, or batched lookups.
-
Performance
Fix my render-blocking resources
Stop CSS and JavaScript from blocking first paint: defer, async, inline the critical path, and load the rest late.
-
Database
Make large data exports not kill the server
Moves CSV/JSON exports out of request handlers into streamed, background-generated downloads.
-
Performance
Add backpressure to my background job queues
Keep slow jobs from silently piling up into a multi-day backlog with limits, monitoring, and overload behavior.
-
Performance
Lazy load what users don't see immediately
Defer offscreen images, heavy components, and below-the-fold code so first paint stops waiting for everything.
-
Performance
Measure my performance baseline before optimizing anything
Get real numbers on where the time goes so you fix the actual bottleneck instead of guessing.
-
Performance
Fix my web font loading
Stop fonts from blocking render or causing text flashes: subset, preload, and self-host where it counts.
-
Performance
Optimize my images for the web
Convert, compress, resize, and lazy-load images so pages stop shipping megabytes of unoptimized media.
-
Performance
Stop my video embeds from wrecking page load
Replace heavy video embeds with facade previews that load the real player only on click.
-
Performance
Design a service worker caching strategy that won't bite me
Add offline support and faster repeat visits with explicit cache rules, versioning, and an escape hatch.
-
Performance
Prepare my websockets for real traffic
Fix the websocket failure modes that only appear under load: reconnect storms, memory leaks, and multi-instance delivery.
-
Performance
Profile and speed up my slow page loads
Finds N+1 queries, unindexed lookups, and render-blocking assets, then applies targeted fixes with measurements.
-
Performance
Replace wasteful API polling loops
Finds setInterval polling that hammers the API and replaces it with backoff, visibility-aware polling, or push alternatives.
-
Performance
Cut the CSS my pages never use
Find dead styles, duplicate rules, and framework bloat, then strip your CSS down to what pages actually render.
-
Performance
Reduce my client-side hydration and rendering cost
Find where JavaScript re-renders what the server already rendered, and cut interactivity down to what needs it.
-
Performance
Shrink my JavaScript bundle
Analyze what's in the bundle, evict the squatters, and split what's left so browsers download less code.
-
Performance
Cut my server response times
Profile slow endpoints, find where the time actually goes, and fix the top offenders.
-
Performance
Reduce my serverless cold start latency
Find what's making your functions slow to wake up and trim initialization, dependencies, and bundle weight.
-
Database
Add query timeouts to database calls
Sets statement and request timeouts so slow or stuck queries fail fast instead of piling up behind a struggling database.
-
Deployment
Set the right cache headers on static assets and HTML
Cache aggressively for assets that never change and carefully for HTML, so users don't get stuck on old versions.
-
Performance
Serve my static assets through a CDN
Put images, scripts, and styles on a CDN with correct cache headers so repeat visits and distant users stop waiting.
-
Database
Set up database connection pooling and timeouts
Configures a sane connection pool and query timeouts so traffic spikes can't exhaust your database connections.
-
Performance
Warm up connections and next-page loads with prefetch hints
Use preconnect, dns-prefetch, and prefetch to hide latency you can't remove.
-
Performance
Stream large responses instead of building them in memory
Stop buffering entire exports and large payloads in server memory; stream them to the client instead.
-
Performance
Triage my Lighthouse report into an actual fix list
Turn a wall of Lighthouse warnings into a prioritized list of real fixes, ignoring the noise.
-
Performance
Trim the fat from my API responses
Stop shipping entire database rows to the browser; return only the fields each screen actually uses.
-
Performance
Virtualize my long lists so they stop choking the page
Render thousands of rows without thousands of DOM nodes by windowing long lists and tables.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).
More Prompt Packs
-
Launch-Ready Security Pack
Auth, secrets, injection, and headers. Everything you need to harden before launch.
-
Ship Fast Starter Pack
Deployment, caching, and automation prompts to get your app live with confidence.
-
Secure Accounts Essentials Pack
Lock down auth, secrets, and headers so user accounts stay safe from day one.
-
Data Layer Defense Pack
Injection-proof queries, safe secrets handling, and schema guardrails for your database.
-
Payment Protection Pack
Webhooks, idempotency, refunds, and dunning. Stop payments issues before they start.
-
Test Before You Launch Pack
Unit, API, and end-to-end tests for the paths your users will actually hit on day one.