What the agent does
the production site is about to launch, and launch traffic arrives in a burst: hundreds of people in the same hour, most of them on the homepage, the pricing page and sign-up. Find what would slow down or fall over under that burst and fix it, so the first impression is a fast page, not an error.
1. Find the hot paths
List the pages and endpoints a launch visitor hits in order: landing page, pricing, sign-up, the first screen after sign-up, and any API those pages call. For each, note what it does per request: database queries, calls to third-party APIs, image processing, server rendering.
2. Cache what is the same for everyone
- Public pages that do not change per visitor should be static or cached at the edge, with a sensible
Cache-Control(for examplepublic, s-maxage=300, stale-while-revalidate=86400). Make sure nothing personal (a signed-in header, a cookie banner state) is cached with them. - Static assets (scripts, styles, fonts, images) should be fingerprinted and served with a long
max-ageandimmutable. - Data that many visitors read (counts, featured lists, pricing) can be cached in memory or in the framework's data cache for a short time.
- Public pages that do not change per visitor should be static or cached at the edge, with a sensible
3. Remove the slow parts
- Look for N+1 queries, queries without an index on the columns they filter or sort by, and work done on every request that could be done once.
- Third-party calls on the critical path (analytics, enrichment, AI calls) should have a timeout and must not block the page from rendering.
- Large images on the landing page should be resized, in a modern format, with width and height set.
4. Protect the endpoints that cost money or can be abused
Sign-up, login, password reset, contact forms, and any endpoint that sends email or calls a paid API need a rate limit per IP and per account, with a clear 429 response. If the project already has a rate limiter, reuse it.
5. Fail gracefully
Make sure there is a friendly error page for 500s and a real 404 page, that a failed third-party call shows a fallback instead of a blank screen, and that errors are logged somewhere I can read (the existing logging or error tracking; propose one if there is none, do not add it without asking).
6. Write the launch day runbook
Add a short
LAUNCH.md(or a section in the existing docs) with: how to check the site is up, where to read logs and errors, how to roll back to the previous deploy on the current host, how to scale up if the host allows it, and who to contact. Keep it to one screen.
Done means
- Every public page a launch visitor sees is cached or static, and nothing personal is cached.
- No hot path makes an unbounded or unindexed query, and third-party calls have timeouts.
- Sign-up, login and anything that sends email or calls a paid API are rate limited.
- 500 and 404 pages exist and return the right status codes.
- A one-screen launch runbook explains how to check health, read errors and roll back.
Questions
How much traffic does a launch bring?
It varies a lot by platform and by how well the launch does, but it arrives in a burst over a few hours, which is what breaks sites: not the total, the peak. Caching the pages everyone sees handles most of it.
Should I load test before launch?
Load testing a staging copy is useful if your app does heavy work per request. The prompt tells the agent never to load test production, because that can trip your host's limits or abuse protection.
What if my host does not support edge caching?
The agent will say so and use what the framework offers instead, such as static generation or an in-memory cache for shared data.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.