broken-images

broken-images is a skill for Claude Code, Codex from thedaviddias/Front-End-Checklist. It costs 39 tokens per session (613 once invoked), scanned A, original, MIT.

A review guide for finding image problems in websites, including image files, HTML, content delivery networks, and build processing.

In plain words
What is it for?
Use it when checking missing or poorly performing images and deciding what to inspect in the page markup, image delivery, or build process.
Why use it?
It helps identify whether broken images come from their file size, displayed size, loading method, or effect on the first screen people see.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when checking missing or poorly performing images and deciding what to inspect in the page markup, image delivery, or build process.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thedaviddias/front-end-checklist/broken-images
About the project

Front-End Checklist is a collection of front-end web development rules organized as a practical review and quality workflow for people and AI agents. Developers use it to audit projects and pull requests, check implementation details, and find guidance for remediation and verification. The catalogue entries provide skills, instructions, MCP tools, and a plugin for using the checklist in agent workflows.

thedaviddias/Front-End-Checklist · 74,577 stars · on GitHub · frontendchecklist.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thedaviddias/Front-End-Checklist --skill broken-images
Clone the repo
git clone --depth 1 https://github.com/thedaviddias/Front-End-Checklist

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for broken-images

README.md
[![agentmods](https://agentmods.dev/badge/skills/thedaviddias/front-end-checklist/broken-images/github.svg)](https://agentmods.dev/skills/thedaviddias/front-end-checklist/broken-images)
Your own site
<a href="https://agentmods.dev/skills/thedaviddias/front-end-checklist/broken-images"><img src="https://agentmods.dev/badge/skills/thedaviddias/front-end-checklist/broken-images/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for broken-images

Your own site · 80×15
<a href="https://agentmods.dev/skills/thedaviddias/front-end-checklist/broken-images"><img src="https://agentmods.dev/badge/skills/thedaviddias/front-end-checklist/broken-images.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00613
Opus 5.5 $0.00016 $0.00245
Sonnet 5.5 $0.00008 $0.00123
Haiku 4.5 $0.00004 $0.00061

Measured 23d ago against content hash 20ce84468063, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

broken-images scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/broken-images/SKILL.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fix broken images

A broken image shows an ugly placeholder icon, breaks visual layouts, and communicates that the site is poorly maintained. If the broken image is the Largest Contentful Paint element, it also harms LCP scores. On e-commerce sites, a missing product image can directly reduce purchase intent.

Quick Reference

  • Broken images show an icon and console error—validate all <img src> paths at build time
  • Use onerror handlers to swap broken <img> elements to fallback images
  • Set this.onerror=null inside the handler to prevent infinite error loops
  • Test with DevTools Network tab blocked requests to verify fallback behaviour

Check

Scan all src attributes and CSS background-image URLs in this codebase. Identify: 1) Any relative or absolute paths that point to files not present in the project. 2) Any elements without an onerror handler or fallback mechanism. 3) Hardcoded external image URLs that may become unavailable. 4) Dynamic image paths constructed from user data without existence checks. Report each broken or potentially broken image with its file path and line number.

Fix

For each broken image: 1) Correct the file path if the image exists but the path is wrong. 2) Add the missing image asset if it was omitted. 3) For images that may fail at runtime, add an onerror handler: onerror="this.src='/images/fallback.png'; this.onerror=null;". 4) For React/Vue components, implement an onError callback that swaps the src to a placeholder. 5) For external images, consider downloading and self-hosting or using a CDN with fallback. Always set this.onerror=null to prevent infinite error loops.

Explain

Explain why broken images degrade user experience and how browsers handle them. A 404 response for an image shows the browser's broken-image icon, causes a console error, and—if the image is the LCP element—delays Core Web Vitals metrics. Search engines cannot index missing images, affecting image SEO. Monitoring image errors proactively prevents broken experiences from reaching users.

Read the full file on GitHub · 46 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed 20ce84468063
  2. 1mo ago First seen · 46 lines · 39 tokens per session scan A 970d5deb899d

Subscribe to this mod's changes

broken-images is a skill published in the GitHub repository thedaviddias/Front-End-Checklist (74,577 stars, last pushed 21d ago), licensed MIT. It adds 39 tokens to every session and 613 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pw-systematic-debugging

Use when encountering any bug, test failure, blank screen of death, or unexpected behavior in ProcessWire before proposing fixes.

trk/processwire-boost · 30 tokens

systematic-debugging

4-phase root cause debugging process. Use when encountering any bug, test failure, or unexpected behavior BEFORE proposing fixes. Prevents guess-and-check thrashing. Includes root-cause tracing, defense-in-depth, and architecture questioning.

ArtemioPadilla/agent-triforce · 50 tokens

review-findings

Addresses and fixes findings from a QA code review. Reads the review report, fixes critical and warning issues, and prepares for re-verification.

ArtemioPadilla/agent-triforce · 32 tokens

code-health

Scans the codebase for dead code, tech debt, outdated dependencies, and code quality issues. Use periodically or before releases to maintain code hygiene.

ArtemioPadilla/agent-triforce · 33 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens