/fuse-astro:astro-assetsfrom fuse-astro
Optimizes images and assets in Astro 7 using astro:assets: Image/Picture components, getImage(), Fonts API, Satori OG image generation, and CDN integration.
Ships in fuse-astro. 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.
Also covers the built-in Fonts API (stable since Astro 6.0) for zero-layout-shift font loading, dynamic OG image generation with Satori at build time, and CDN integration (Cloudinary, Imgix). Does not cover general SEO meta tags (astro-seo) or deployment-specific image CDN config beyond the adapter itself (astro-deployment).
Production-ready image optimization and asset management with astro:assets in Astro 7.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
After implementation, run fuse-ai-pilot:sniper for validation.
| Module | Exports |
|---|---|
astro:assets | <Image />, <Picture />, getImage() |
@astrojs/sharp | Default image processing service |
| Fonts API (stable, Astro 6.0+) | Built-in fonts config |
<Image /> automatically optimizes local and remote images. Always provide alt. Use priority for above-the-fold images. Defaults to WebP output.
<Picture /> generates <source> elements for multiple formats. Use formats={['avif', 'webp']} for best compression with fallback.
For server-side image generation (API routes, CSS background images). Returns { src, attributes } object.
Built-in font optimization via the top-level fonts config in astro.config.mjs (stable since Astro 6.0 — no experimental flag). Zero layout shift, automatic preloading, supports Google Fonts and local fonts.
| Topic | Reference | When to Consult |
|---|---|---|
| Image Component | image-component.md | Local/remote image display |
| Responsive Images | picture-responsive.md | Multi-format, srcset, sizes |
| Remote Images | remote-images.md | External URLs, inferSize |
| Fonts API | fonts-api.md | Zero-CLS font loading |
| OG with Satori | og-satori.md | Dynamic OG image generation |
| CDN Integration | cdn-integration.md | Cloudinary, Imgix setup |
| Template | When to Use |
|---|---|
| image-setup.md | Full image optimization setup |
| og-image-route.md | Dynamic OG image API route |
alt - Required for accessibility and SEOpriority for LCP - Above-the-fold images load eagerlyinferSize for remote - Avoids layout shift without known dimensionsreferences/cdn-integration.md (opens in a new tab)references/fonts-api.md (opens in a new tab)references/image-component.md (opens in a new tab)references/og-satori.md (opens in a new tab)references/picture-responsive.md (opens in a new tab)references/remote-images.md (opens in a new tab)references/templates/image-setup.md (opens in a new tab)references/templates/og-image-route.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fusengine/claude-plugins --plugin fuse-astro14 skills in this plugin
/astro-7Use when building Astro 7 sites, choosing an output mode (static/server, hybrid via per-route prerender), configuring middleware, or upgrading from Astro 5/6./astro-actionsUse when handling form submissions, mutations, or server-side logic with type safety in Astro via defineAction / astro:actions./astro-contentUse when managing structured content, blog posts, or typed data collections in Astro via the Content Layer API (content.config.ts)./astro-dbUse when doing database operations in an Astro project via Astro DB (defineDb, defineTable, db/config.ts, Turso)./astro-deploymentUse when deploying an Astro 7 app to Cloudflare, Vercel, Netlify, or Node.js — adapter setup, ISR patterns, edge middleware./astro-i18nUse when implementing i18n in Astro — locale routing strategies, getRelativeLocaleUrl/getAbsoluteLocaleUrl, Astro.currentLocale, or hreflang with sitemap.Other plugins' skills for the same job