{"success":true,"name":"know-your-app-is-down-before-users-tell-you-health-checks-an","description":"App is deployed for real users but nothing watches whether it is actually up","category":"ai-brimind","path":"ai-brimind/know-your-app-is-down-before-users-tell-you-health-checks-an/SKILL.md","file":"SKILL.md","content":"---\nname: know-your-app-is-down-before-users-tell-you-health-checks-an\ndescription: \"App is deployed for real users but nothing watches whether it is actually up\"\n---\n\n# Know Your App Is Down Before Users Tell You: Health Checks and Basic Monitoring\n\n## When to use\nThe project is (or is about to be) running in production for real users, and the only way you would learn about a crash, a full disk, or a dead database connection is a user complaining or you happening to visit the site.\n\n## Example request\nThe server crashed Friday night and stayed down all weekend → the first alert was an angry Monday message; an uptime monitor pinging the app every minute would have sent an email within two. The app is 'up' but every DB query fails → a homepage ping shows green while everything is broken; a real health endpoint checks its dependencies (DB reachable?) not just 'process alive'. Errors happen daily in production but live only in a console nobody reads → a crash with no trace means debugging blind; errors must land somewhere persistent you actually look at. A hobby project with three users → a free uptime ping and error logs are enough; monitoring scales with stakes, the point is choosing consciously instead of having nothing.\n\n## Instructions\nAct as the operator of the system, not just its author — the author's job ends at 'it works on deploy day', the operator's question is 'how will I know within minutes when it stops working on day 40?'. For any app with real users, do this: (1) Build a health endpoint on purpose: a route like /health that does not just return 'ok' because the process is alive, but actually touches the critical dependencies — runs a trivial DB query, checks whatever the app cannot live without — and returns healthy/unhealthy honestly. A health check that cannot fail is decoration. (2) Point an uptime monitor at it — this is a solved, named service category (uptime monitoring: free tiers ping your URL every minute and email/message you on failure); do not hand-build a watcher for your watcher. Now a crash at 3 AM becomes a notification, not a mystery discovered by customers. (3) Make production errors land somewhere persistent and visible: at minimum, server logs written where the hosting platform keeps them and where you know how to read them; better, an error-tracking service that groups exceptions and shows you 'this error happened 400 times since yesterday' — again a named, existing tool category, not something to invent. (4) Decide the few numbers worth glancing at for YOUR app (requests failing per hour, response time, disk/memory if self-hosted) and where you would see them — the goal is not dashboards for their own sake, it is that 'is the app healthy?' has a place you can answer it in one minute. (5) Match the effort to the stakes and say so out loud: a side project earns a ping monitor and readable logs; an app holding money or people's work earns error tracking and alerts. Only consider the deployment finished once you can answer: 'if the app died right now, HOW would I find out, and how long would it take?' — if the honest answer is 'a user would tell me eventually', the system has no operator yet, only an author.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #213\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}