error-images
What it does
This skill checks whether a website handles broken or missing images gracefully. It is for developers who want pages that still look tidy when a picture fails.
When to use it
- ✓When visitors see broken image icons on your site.
- ✓When a photo from an external source sometimes fails to load.
- ✓When you build a gallery or product listing that depends on images.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/error-images/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you add a fallback so broken images on my site don't show a broken icon?”
5 new skills a week. 1 minute to read.
How it works
The agent checks for error handling on images and suggests a placeholder or fallback. It can also suggest logging image errors so you notice them.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Handle image loading errors gracefully
Broken image icons look unprofessional and confuse users—graceful fallbacks maintain visual consistency and user trust when images fail to load.
Quick Reference
- Use onerror to replace broken images with fallbacks
- Provide meaningful placeholder content, not broken image icons
- Consider skeleton loaders while images load
- Log image errors for monitoring and debugging
Check
Check if the website handles broken images gracefully with fallback images or error states.
Fix
Implement fallback images or placeholder content for broken image scenarios.
Explain
Explain how proper error handling for images improves user experience.
Code Review
Review image assets, markup, and delivery configuration related to Handle image loading errors gracefully. Flag exact files or components where format choice, sizing, or loading behavior violates the rule, and describe how to confirm the fix in DevTools.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/images/error-images
FAQ
How does a fallback image work?
When an image fails, the page swaps in a placeholder, typically with an error handler on the image element.
What is a skeleton loader?
It is a grey placeholder shape shown while content loads, which the skill lists as one option.
Will this fix the missing image file itself?
No. The skill covers how the page responds when an image fails, not why the file is missing.
Details
Original description by the author
Use when reviewing image assets, markup, and CDN or build transforms related to Handle image loading errors gracefully. Check encoded size, rendered size, loading strategy, and above-the-fold impact together.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2834
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.