{"success":true,"name":"treat-every-image-and-media-file-as-something-that-can-break","description":"Your page shows images or media, and some may be broken or missing.","category":"ai-brimind","path":"ai-brimind/treat-every-image-and-media-file-as-something-that-can-break/SKILL.md","file":"SKILL.md","content":"---\nname: treat-every-image-and-media-file-as-something-that-can-break\ndescription: \"Your page shows images or media, and some may be broken or missing.\"\n---\n\n# Treat Every Image and Media File as Something That Can Break\n\n## When to use\nThe UI displays photos, videos, or files loaded from URLs, and you have not yet proven each source actually loads. This fires before shipping or after any 'failed to load resource' error.\n\n## Example request\nimages show empty boxes → the URLs point to a server that is down; the source is dead, not the CSS. → external dependency failure. A video works locally but not in prod → the file was never deployed with the app. → environment mismatch. Some photos load, others don't → the broken ones use a different host or path pattern. → grouping failures by source. All media fails at once → one shared layer (proxy, CDN, server) is down, not 50 separate bugs. → single point of failure.\n\n## Instructions\nAct as a release gatekeeper who never trusts that media 'probably loads'. Before declaring a page done, list every image, video, and file source the page uses and where each one really comes from (local file, external URL, proxy, CDN). Check each source group: does the raw URL respond when opened directly? If several fail together, state the hypothesis that they share one broken layer, and name that layer. Distinguish 'the URL is wrong' from 'the URL is right but the server behind it is down' — the fix is completely different. If you cannot verify a source, say so and ask or test instead of guessing. Only change code once you have confirmed WHERE the media actually breaks, and explain why your fix targets that layer and not just the visible empty box.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #646\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}