一键导入
images-media
Image strategy, visual concepts, technical optimization, SVG, icons, lazy loading, and the strategic use of images and media in web design.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Image strategy, visual concepts, technical optimization, SVG, icons, lazy loading, and the strategic use of images and media in web design.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
WCAG conformance, BFSG compliance, semantic HTML, ARIA, keyboard navigation, contrast, forms, and assistive technologies. Defines binding rules for accessible web interfaces per WCAG 2.1 AA.
Design patterns for chat interfaces, agent UX, streaming UI, and tool visualization. Covers chat architecture, message types, streaming rendering, tool execution cards, and sandbox UI derived from 21st.dev Agents SDK documentation and templates.
AI tool integration into the design process, structured prompting for designers, creative AI usage with clear boundaries, and review workflows.
Brand strategy, visual identity, positioning, corporate design, portfolio presentation, and consistent brand management across all digital touchpoints.
Color models, palettes, contrast, color psychology, color harmonies, and dark mode for web projects. Defines the 60-30-10 rule, semantic color coding, design tokens, and WCAG contrast requirements.
Modern UI component selection, composition, and theming patterns for web applications. Covers compound components, design tokens, variant systems, responsive patterns, and form architecture derived from 21st.dev SDK, Godly featured products, and current best practices.
| name | images-media |
| description | Image strategy, visual concepts, technical optimization, SVG, icons, lazy loading, and the strategic use of images and media in web design. |
Every image must serve a purpose — convey information, evoke emotion, provide orientation, or strengthen the brand. Images without purpose are dead weight.
Use this skill when you:
Every image serves a purpose. Images without purpose are dead weight and slow down the page.
A few high-quality, authentic images are more impactful than many generic stock photos.
Define the visual concept first (style, mood, color palette), then select images.
Images account for 50-70% of page weight. Optimization delivers the greatest performance gains.
Real people in real situations are more convincing than staged stock photo scenes.
Every image serves at least one of these four functions:
srcset at least 3 variants (400px, 800px, 1200px).picture for art direction (different crops per viewport).width and height attributes to prevent CLS.loading="lazy" below the fold.alt="" only for purely decorative images.On homepages and landing pages: large-scale image with a semi-transparent overlay for text readability. Headline, subline, and CTA on top. No lazy loading for the hero.
Uniform grid with consistent aspect ratios (16:9 or 4:3). Hover effect with additional info. Lightbox for detail view. Lazy loading below the fold.
Card with image (upper half), title, excerpt, and CTA (lower half). Consistent aspect ratio. object-fit: cover for uniform rendering.
picture element with different source elements. Mobile: tight portrait crop. Desktop: full landscape crop. For code examples, see references/responsive-images.md.
For 10+ icons: consistent set (line style or filled, not mixed). SVG sprite for performance. Uniform size (e.g., 24px baseline). Icons always with text label or aria-label.
All images from the same platform, generic and interchangeable. Users recognize stock photos immediately. Solution: Custom photos or curated premium stock photos with consistent editing.
Original camera photos (3-10MB) embedded directly. Solution: Build pipeline with automatic compression, resizing, and format conversion.
Too many images with no informational value. Solution: Every image must pass the "What for?" test. White space is often more effective.
Images without an alt attribute or with "image1.jpg". Accessibility violation and SEO disadvantage. Solution: Descriptive alt texts for content images, alt="" for decorative ones.
Photos with different styles and quality levels mixed together. Solution: Image strategy with a defined color treatment, style, and quality standard.
responsive-design -- Responsive images, srcset, picture elementui-design -- Visual hierarchy and image placementbranding-identity -- Visual language as part of brand identityaccessibility -- Alt texts, contrast, text in imagescolor-theory -- Image color palette in context of the color concept