本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #2834

error-images

できること

このスキルは、壊れた画像や欠けた画像を、ウェブサイトが穏やかに扱っているかを確認します。画像が失敗してもページがきちんと見える状態を保ちたい開発者向けです。

使う場面

  • ✓サイトに、壊れた画像のアイコンが表示されているとき。
  • ✓外部の写真が時々読み込めないとき。
  • ✓画像に頼るギャラリーや商品一覧を作っているとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/error-images/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/error-images/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“サイトの壊れた画像が、壊れたアイコンにならないように、代替表示を追加してもらえますか。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、画像のエラー処理を確認し、プレースホルダーや代替表示を提案します。画像のエラーに気づけるように、エラーをログに残すことも提案できます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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

よくある質問

代替の画像はどのように動きますか?

画像が失敗すると、画像要素のエラーハンドラーを使い、ページがプレースホルダーに切り替えます。

スケルトンの読み込み表示とは何ですか?

コンテンツの読み込み中に表示される灰色の仮の形で、このスキルはその選択肢の一つとして挙げています。

画像のファイルが欠けている原因も直しますか?

いいえ。このスキルは、画像が失敗したときにページがどう反応するかを扱い、ファイルが欠けている理由は扱いません。

詳細

作者による元の説明

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.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2834
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル