What the agent does
On launch day, the worst way to learn the production site is broken is from a comment under the launch post. Make failures visible: errors captured with enough context to fix them, a health endpoint an uptime monitor can watch, and alerts that reach me.
1. See what exists
Find any error tracking, logging, health route or monitoring already in place, on the server and in the browser. Note where errors are swallowed (empty catch blocks, failed fetches with no message).
2. Capture errors with context
Use the existing error tracking, or propose one (Sentry, Highlight, the host's own) for me to choose; do not add a service without asking. Capture unhandled server errors and browser errors with the route, release version and a request id, and never send passwords, tokens or full card numbers. Replace silent catch blocks on important paths with a log and a user-facing message.
3. A health endpoint
Add
/api/health(or the framework's equivalent) that returns 200 when the app can serve requests and reach its database, and 503 otherwise, quickly and without exposing internals.4. Alerts and a runbook
Write down how to point a free uptime monitor at the homepage and the health endpoint, with alerts to email or chat. Add a short section to the docs: where to read logs and errors, and what to check first when the site is down.
Done means
- Server and browser errors are captured with route, release and request id, without secrets.
- No silent catch block remains on sign-up, checkout or the main pages.
- A health endpoint answers 200 or 503 quickly.
- I know how to set up uptime alerts, and the docs say where to look when things break.
Questions
Which error tracker should I use?
Sentry is the common choice and has a free tier; your host may include error logging already. The prompt has the agent propose options and wait for your choice.
What should a health endpoint check?
That the app can serve a request and reach its main dependencies, usually the database, quickly. It should not run heavy queries or reveal versions and stack traces.
How often should an uptime monitor check?
Every one to five minutes is typical. For launch day, a one-minute check on the homepage and the health endpoint catches problems fast.
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.