{"success":true,"name":"plan-for-third-party-services-being-down","description":"A feature depends on an external API, CDN, or service you don't control.","category":"ai-brimind","path":"ai-brimind/plan-for-third-party-services-being-down/SKILL.md","file":"SKILL.md","content":"---\nname: plan-for-third-party-services-being-down\ndescription: \"A feature depends on an external API, CDN, or service you don't control.\"\n---\n\n# Plan for Third-Party Services Being Down\n\n## When to use\nCore functionality calls something outside your system (payment, maps, fonts, auth provider, backend API), and its failure mode has not been designed.\n\n## Example request\nExternal font/CDN script loaded blocking → the CDN is slow and the whole page waits blank — hard dependency for a soft need. Payment provider down → checkout shows a raw error and the cart is lost — no degraded path or saved state. App's own backend unreachable on a TV app → black screen instead of cached channel list — no offline fallback.\n\n## Instructions\nAct like an architect who assumes every external service WILL be down during your most important demo. For each outside dependency, decide its class: (1) OPTIONAL (analytics, fonts, images) — the app must work fully without it; load it async/non-blocking and never let its failure break core flows; (2) DEGRADABLE (search suggestions, live data) — show cached or reduced functionality with a notice, not an error page; (3) CRITICAL (payment, auth) — you cannot fake it, so fail with a clear message, preserve the user's work/state for retry, and log the outage distinctly. Concretely: wrap each external call so its failure is caught at the boundary, define what the user sees per class, and cache the last-good data where staleness is acceptable. Test by actually blocking each dependency (wrong URL, network off) and watching the app. Only proceed once every external service has a named class and a designed behavior when absent — 'it throws' is not a design.\n\n## Metadata\n- role: project owner\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1090\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}