images-require-alt-text
Installation
SKILL.md
Summary
Every <img> tag must have an alt attribute. If the image conveys info, describe it. If the image is purely decorative, use alt="".
Rationale
- Screen Readers: Without an
altattribute, screen readers often read the filename (e.g., "img_1234.jpg"), which provides poor UX. - Fallback: If the image fails to load, the
alttext is displayed. - SEO: Search engines index the
alttext.
Guidance
- Informative: For icons w/ functionality or photos w/ meaning, describe the content or function (e.g., "Search", "Profile of John Doe").
- Decorative: For background blobs, spacers, or redundant icons, use
alt="". - Prohibited: Do NOT omit the attribute entirely.