imagery — Claude Code skill: what it does, how to install
Audits UI photos, screenshots, and icons to fix contrast issues, preserve layout bounds, and align visual styles.
npx skills add aladicf/better-web-ui --skill imagery -a claude-codeWhat imagery does
The skill reviews graphic elements across an interface to prevent visual clutter and illegible copy. It flags text rendered over busy background pictures, advising on tonal overlays, color adjustments, or subtle shadows. For detailed screenshots, it recommends tight crops or simplified mockups over shrinking an entire app window into an unreadable thumbnail.
User uploads receive strict containment rules with uniform aspect ratios and cover cropping so irregular dimensions stop breaking grid lines. When light images bleed into surrounding page backgrounds, it specifies subtle inner boundaries or inset shadows. Icon sizing rules keep fine vector assets from blurring or becoming chunky.
Running /imagery mandates loading $frontend-design for context gathering. If project design parameters are missing entirely, you must load $setup first.
What it helps with
- restore text contrast over complex background photos
- confine user-uploaded media to predictable aspect ratios
- prevent small screenshots and dense icons from blurring
- isolate white graphics from blending into page surfaces
Example prompts for the agent
- /imagery
- /imagery hero-banner
- Run /imagery on the settings dashboard to fix screenshot scaling and text contrast
How to install imagery
1Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill imagery -a claude-code2Manually: put the files in place
~/.claude/skills/imagery/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/imagery/
1Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill imagery -a codex2Manually: put the files in place
.agents/skills/imagery/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill imagery -a cursor2Manually: put the files in place
.cursor/skills/imagery/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aladicf/better-web-ui imagery2Manually: put the files in place
.github/skills/imagery/SKILL.md1Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill imagery -a gemini-cli2Platform CLI
gemini skills install https://github.com/aladicf/better-web-ui --path skills/imageryManually: put the files in place
.devin/skills/imagery/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill imagery -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about imagery
How to install imagery in Claude Code?
Run npx skills add aladicf/better-web-ui --skill imagery -a claude-code. Alternatively, place the file in ~/.claude/skills/imagery/SKILL.md.
What does imagery do?
It audits interface visuals, prescribing fixes for low text contrast, chaotic user upload dimensions, oversized icons, and illegible screenshots.
What prerequisites does imagery require?
The workflow expects $frontend-design in the agent context. If the project design context has not been configured yet, load $setup beforehand.
Source text
SKILL.md · MIT
--- name: imagery description: Improve how interfaces use photos, screenshots, icons, illustrations, and user-uploaded media so visuals support clarity instead of undermining it. Use when the user mentions images, screenshots, background photos, hero images, icon sizing, user-uploaded media, crops, overlays, or image readability. metadata: argument-hint: "[target]" --- Assess and improve image usage so photography, illustrations, screenshots, icons, and uploaded media feel intentional, readable, and well-contained. ## MANDATORY PREPARATION Users start this workflow with `/imagery`. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first. Additionally gather: what role imagery plays here (brand, explanation, proof, decoration, content). Consult the [color and contrast](../frontend-design/reference/color-and-contrast.md) reference when images create readability problems, need overlays, or should be harmonized with the palette. Consult the [semantic color](../frontend-design/reference/semantic-color.md) when imagery intersects with status, alerts, meaning, or tinted contextual surfaces rather than pure atmosphere. Consult the [image treatment](../frontend-design/reference/image-treatment.md) as the canonical shared source for overlays, screenshot sizing, icon scaling, media containment, and background bleed prevention. Consult the [surface separation](../frontend-design/reference/surface-separation.md) when images or media need cleaner separation from surrounding surfaces. --- ## Assess Imagery Problems Analyze where visual media is helping or hurting: 1. **Photo quality and appropriateness**: - Are the images high quality enough to support the intended brand? - Do they feel generic, mismatched, or obviously placeholder? 2. **Text on images**: - Is text readable over background images? - Are contrast problems caused by the image rather than the typography? 3. **Screenshots and icons**: - Are screenshots scaled so small they become illegible? - Are tiny icons being enlarged beyond their intended visual size? - Are detailed icons being reduced until they turn mushy? 4. **User-uploaded content**: - Are user images breaking the layout with chaotic aspect ratios? - Are backgrounds bleeding into the interface? 5. **Harmony**: - Do photography, illustration, screenshots, and icons feel like part of the same product? If any of these are unclear from the codebase, ask the user directly to clarify what you cannot infer. **CRITICAL**: Bad imagery can ruin an otherwise good design. Images should support hierarchy and communication, not create readability problems or visual chaos. ## Plan Imagery Improvements Create a plan around: - **Role**: Is the image there for atmosphere, explanation, product proof, or user content? - **Containment**: How should images be cropped, scaled, and framed? - **Readability**: What needs to happen so overlaid text remains readable? - **Visual consistency**: How should photos, illustrations, screenshots, and icons relate stylistically? ## Improve Imagery Systematically ### Use Appropriate Photos - Use photos that genuinely match the product quality and audience expectations - Avoid placeholder-quality imagery that drags the interface down - Match the emotional tone of the product — playful, editorial, professional, etc. ### Improve Text Contrast on Images - Add overlays when the image dynamics are too extreme - Lower image contrast when the text needs more consistent support - Colorize images when that helps them harmonize with the brand palette - Use a subtle text shadow only when it improves local readability without turning into an obvious effect ### Screenshot Usage Rules - Don’t scale full-app screenshots down until the interface becomes unreadable - Prefer tighter crops, partial screenshots, or smaller-source-layout captures when detail matters - If the goal is structure rather than detail, simplify the screenshot instead of cramming everything into tiny space ### Icon Scaling Rules - Don’t blow small icons up far beyond the size they were drawn for - Don’t shrink detailed icons until they become fuzzy or overly dense - If you need larger visual presence, consider placing a smaller icon inside a larger shaped container instead ### User-Uploaded Media Containment - Force uploaded images into deliberate containers with consistent aspect ratios - Use `cover`-style cropping when preserving raw dimensions would damage the layout - Accept that containment matters more than preserving every edge of the original upload ### Bleed Prevention - When images blend into the page background, add a subtle inner shadow or inner border - Prefer understated containment; a loud border often fights the image itself ### Illustration / Photo Harmony - Keep illustration style consistent across the product - Make sure illustrations and photography don’t feel like they come from unrelated brands - If mixing photos and illustrations, unify them through palette, framing, or usage context **NEVER**: - Put unreadable text on a busy image and blame the type - Use screenshots so small users want to zoom in with their eyeballs - Enlarge tiny icons until they feel chunky and amateurish - Let user-uploaded images dictate layout shape - Mix photographic, illustrative, and icon styles with no unifying logic ## Verify Imagery Quality - **Readability**: Is text on imagery consistently legible? - **Containment**: Do uploaded and editorial images stay within the layout gracefully? - **Scale**: Are screenshots and icons shown at sensible sizes? - **Harmony**: Do all visual media feel like part of one system? - **Appropriateness**: Does the imagery match the product’s quality and personality? Remember: Imagery should support the design’s message and hierarchy. When it starts fighting the UI, the image treatment needs work.
© aladicf · MIT · aladicf/better-web-ui