visual-assets
Create and manage diagrams, illustrations, tables, and visual components for the textbook. Use when adding architecture diagrams, flowcharts, hardware schematics, or data tables.
When & Why to Use This Skill
This Claude skill empowers users to efficiently create, manage, and optimize a wide range of visual assets, including technical diagrams, flowcharts, and web-ready graphics. It streamlines the production of high-quality illustrations for textbooks and digital platforms while ensuring peak performance through automated image compression, modern format conversion (WebP/AVIF), and responsive design implementation.
Use Cases
- Technical Documentation: Generating and maintaining complex architecture diagrams, hardware schematics, and data tables for educational textbooks or technical manuals.
- Web Performance Optimization: Automating the conversion and compression of legacy images into high-performance formats like WebP and AVIF to improve Core Web Vitals and SEO.
- Design System Management: Organizing and optimizing SVG icon libraries with standardized stroke widths and optical alignment for consistent UI/UX across projects.
- Responsive Asset Delivery: Implementing advanced HTML5 <picture> tags and srcset attributes to ensure optimal image loading and visual quality across different device resolutions.
| name | visual-assets |
|---|---|
| description | Create and manage visual assets. Use when creating graphics, icons, or images. Covers asset formats and optimization. |
| allowed-tools | Read, Write, Bash, Glob, Grep |
Visual Assets
Asset Types
Icons
- SVG: Scalable, small file size, CSS styling
- Icon fonts: Easy to use, limited styling
- PNG sprites: Legacy, larger files
Images
- JPEG: Photos, complex images
- PNG: Transparency, screenshots
- WebP: Modern, smaller files
- AVIF: Newest, best compression
Graphics
- SVG: Illustrations, logos, charts
- Lottie: Animations, complex motion
Optimization
Image Compression
# WebP conversion
cwebp -q 80 input.png -o output.webp
# AVIF conversion
avifenc input.png output.avif
# PNG optimization
pngquant --quality=65-80 input.png
Responsive Images
<picture>
<source srcset="image.avif" type="image/avif">
<source srcset="image.webp" type="image/webp">
<img src="image.jpg" alt="Description"
srcset="image-400.jpg 400w,
image-800.jpg 800w,
image-1200.jpg 1200w"
sizes="(max-width: 600px) 100vw, 50vw">
</picture>
SVG Optimization
# SVGO optimization
svgo input.svg -o output.svg
Icon Guidelines
- Consistent stroke width
- Consistent sizing (24x24, 20x20)
- Optical alignment
- Clear at small sizes
File Organization
assets/
├── icons/
│ ├── ui/
│ └── brand/
├── images/
│ ├── originals/
│ └── optimized/
└── illustrations/
Performance Tips
- Lazy load below-fold images
- Use appropriate format for content
- Serve responsive sizes
- Consider CDN delivery
- Set cache headers