/loxihart-design:producing-graphicsfrom loxihart-design
Create export-ready graphics for web, print, and social media with correct formats, color spaces, resolution, and optimization. Use when preparing assets for production, exporting from Figma or Sketch, creating marketing materials, converting image formats, optimizing file sizes, generating responsive srcsets, building favicon packages, or exporting print-ready PDFs. Also triggers on: WebP conversion, srcset, image optimization, JPEG quality, PNG transparency, SVG optimization, SVGO, CMYK, print bleed, DPI, social media image sizes, responsive images, favicon export, logo package, or color space conversion.
Ships in loxihart-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Prepare export-ready graphics with correct formats, optimization, and specs for web, print, and social media.
Choose workflow based on output medium:
| User Says | Route To |
|---|---|
| "Web graphics" / "optimize images" / "srcset" / "WebP" | Step 1 — Web Graphics Export |
| "Print" / "CMYK" / "bleed" / "DPI" / "PDF/X-1a" | Step 2 — Print Graphics Export |
| "Social media" / "Instagram" / "LinkedIn" / "Twitter" | Step 3 — Social Media Specs |
| "Icon" / "SVG" / "SVGO" / "logo" | Step 4 — Vector Graphics |
| "Logo package" / "brand assets" / "full logo export" | Step 5 — Logo Export |
Image format decision tree:
Is it a photograph or complex image?
├─ Yes → WebP (quality 80) with JPEG fallback
└─ No → Is it a simple graphic or logo?
├─ Yes → SVG (scalable, tiny file size)
└─ No → Does it need transparency?
├─ Yes → WebP (quality 80) with PNG-24 fallback
└─ No → WebP (quality 80) with JPEG fallback
Format targets:
| Format | Use Case | Quality Setting | Max Size |
|---|---|---|---|
| WebP | All modern browsers | 80% | <150KB |
| JPEG | Legacy fallback for photos | 80–85% | <200KB |
| PNG-24 | Transparency fallback | Lossless | <150KB |
| SVG | Icons, logos, illustrations | N/A (minify) | <50KB |
Optimization commands:
# Convert to WebP (requires cwebp — brew install webp or apt-get install webp)
cwebp -q 80 input.png -o output.webp
cwebp -q 80 input.jpg -o output.jpg.webp
# Optimize JPEG
jpegoptim --max=85 --strip-all input.jpg
# Or: mogrify -quality 85 -strip input.jpg (ImageMagick)
# Optimize PNG
pngquant --quality=80-90 --output output.png input.png
# Generate responsive srcset variants (ImageMagick)
convert [email protected] -resize 800x image-800.jpg
convert [email protected] -resize 1200x image-1200.jpg
convert [email protected] -resize 1600x image-1600.jpg
# Batch WebP conversion for a directory
for f in *.jpg *.png; do
cwebp -q 80 "$f" -o "${f%.*}.webp"
done
Responsive image HTML:
<picture>
<source
srcset="image-800.webp 800w, image-1200.webp 1200w, image-1600.webp 1600w"
type="image/webp"
/>
<img
srcset="image-800.jpg 800w, image-1200.jpg 1200w, image-1600.jpg 1600w"
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 800px"
src="image-800.jpg"
alt="Description"
loading="lazy"
width="800"
height="600"
/>
</picture>
Web graphics checklist:
loading="lazy" on below-fold imageswidth and height attributes set (prevents CLS)Print specifications by material:
| Material | Resolution | Color Mode | Format | Bleed |
|---|---|---|---|---|
| Business card | 300 DPI | CMYK | PDF/X-1a | 3mm |
| Flyer / poster | 300 DPI | CMYK | PDF/X-1a | 5mm |
| Large banner | 150 DPI | CMYK | PDF/X-1a | 10mm |
| Magazine ad | 300 DPI | CMYK | PDF/X-1a | 3mm |
| Billboard | 72–100 DPI | CMYK | PDF/X-1a | 10mm |
DPI rule: 300 DPI at final print size. Large format viewed at distance can use 150 DPI. Billboards 72–100 DPI.
RGB → CMYK conversion:
# ImageMagick with ICC profile (preferred)
convert input.png \
-profile /path/to/sRGB.icc \
-colorspace CMYK \
-profile /path/to/USWebCoatedSWOP.icc \
output.tif
# Quick conversion without profile (loses accuracy — preview before sending to print)
convert input.png -colorspace CMYK output.tif
Bleed math:
Final print size: 90mm × 50mm (business card)
+ Bleed: 3mm all sides
= Export size: 96mm × 56mm
Safe zone: 3mm inset from trim on all sides
(no critical text or logos within 3mm of edge)
PDF/X-1a settings (Figma → print PDF):
Print graphics checklist:
Platform specifications (2025):
| Platform | Profile | Post | Story / Reel |
|---|---|---|---|
| 320×320px | 1080×1080px (1:1) or 1080×1350px (4:5) | 1080×1920px (9:16) | |
| 180×180px | 1200×630px (1.91:1) | 1080×1920px (9:16) | |
| Twitter/X | 400×400px | 1200×675px (16:9) | — |
| 400×400px | 1200×627px (1.91:1) | — | |
| YouTube | 800×800px | 1280×720px (thumbnail) | — |
| TikTok | 200×200px | — | 1080×1920px (9:16) |
Export settings:
# Resize to platform spec (ImageMagick)
convert source.png -resize 1080x1080^ -gravity center -extent 1080x1080 instagram-square.png
convert source.png -resize 1080x1350^ -gravity center -extent 1080x1350 instagram-portrait.png
convert source.png -resize 1200x675^ -gravity center -extent 1200x675 twitter-post.png
# Optimize for social (platforms re-compress anyway — use quality 90-95)
jpegoptim --max=92 --strip-all social-post.jpg
Text legibility rules for mobile:
Social media checklist:
SVG optimization:
# Install SVGO
npm install -g svgo
# Optimize single file
svgo icon.svg -o icon.optimized.svg
# Optimize directory
svgo -f ./icons/ -o ./icons/optimized/
# Typical size reduction: 30–70%
Clean SVG structure:
<!-- ✅ Production SVG -->
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2L2 7l10 5 10-5-10-5z" fill="currentColor"/>
</svg>
<!-- ❌ Bloated export from Illustrator -->
<svg id="Layer_1" style="enable-background:new 0 0 24 24;">
<g id="Group_1"><path id="Path_1" style="fill:#000000;" d="..."/></g>
</svg>
Icon sizing standards: 16px, 20px, 24px, 32px for web. Always use currentColor so icons inherit CSS color.
Favicon package:
# Generate multi-size favicon (requires ImageMagick)
convert logo.png -resize 16x16 favicon-16.png
convert logo.png -resize 32x32 favicon-32.png
convert logo.png -resize 48x48 favicon-48.png
convert favicon-16.png favicon-32.png favicon-48.png favicon.ico
# Modern scalable favicon
cp logo.svg favicon.svg
Icon checklist:
viewBox set correctlycurrentColoraria-label or <title> for interactive iconsComplete logo delivery structure:
logo-package/
├── web/
│ ├── logo.svg (scalable, primary web asset)
│ ├── [email protected] (2000px wide, transparent)
│ ├── logo-white.svg (reverse — for dark backgrounds)
│ ├── [email protected] (transparent)
│ └── logo-black.svg (single-color)
├── print/
│ ├── logo-cmyk.pdf (PDF/X-1a, vector, CMYK)
│ └── logo-cmyk.eps (vector, CMYK, for legacy tools)
├── favicon/
│ ├── favicon.ico (16, 32, 48px multi-size)
│ └── favicon.svg (scalable, modern browsers)
└── social/
├── logo-square.png (1080×1080px for profile photos)
└── logo-og.png (1200×630px for Open Graph)
Generate the package:
# Web variants (requires ImageMagick)
convert logo.svg -resize 2000x [email protected]
convert logo.svg -resize 1000x [email protected]
# Favicon package
convert logo.png -resize 16x16 favicon-16.png
convert logo.png -resize 32x32 favicon-32.png
convert logo.png -resize 48x48 favicon-48.png
convert favicon-16.png favicon-32.png favicon-48.png favicon.ico
# Social variants
convert logo.png -resize 1080x1080^ -gravity center -extent 1080x1080 -background none logo-square.png
convert logo.png -resize 1200x630^ -gravity center -extent 1200x630 -background white logo-og.png
Clear space rule: Minimum clear space = height of the logo's capital letter on all sides. Never crop or place competing elements inside this zone.
Minimum sizes: Print: 20mm width. Web: 120px width. Mobile: 80px width.
Before delivery:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-design19 skills in this plugin
/advanced-ux-patternsComprehensive UX best practices including accessibility (WCAG 2.2), interaction patterns, user research methods, and usability principles. Use when designing user interfaces, conducting UX audits, or implementing accessible, user-centered designs. Also triggers on WCAG, ARIA, keyboard navigation, screen reader, focus trap, focus management, touch targets, usability testing, heuristic evaluation, card sorting, tree testing, NPS, SUS, form design, navigation patterns, mobile UX, design handoff, cognitive load, information architecture, dark patterns, skeleton screen, error states, reduced motion, dark mode accessibility, component states, error recovery, or any request to audit, improve, spec, or review a user interface — even casually. If UI is involved, use this skill./advanced-visual-designAdvanced visual design techniques including typography systems, color theory, grid-based layouts, visual hierarchy, and composition principles. Use when creating high-quality visual designs, establishing design foundations, or implementing sophisticated design systems. Also triggers on type scale, font pairing, color palette, HSL color, 8-point grid, 12-column layout, visual hierarchy, whitespace, composition, rule of thirds, golden ratio, dark mode design, optical adjustments, or easing curves. Even if someone says "make this look professional" or "set up my design foundations" — use this skill.Other plugins' skills for the same job