From fuse-astro
Expert guidance on Astro 7 framework covering routing, output modes, middleware, Vite Environment API, Rust compiler, CSP, Live Collections, and Fonts API. Use for building sites, configuring output, or upgrading from v5/v6.
How this skill is triggered — by the user, by Claude, or both
Slash command
/fuse-astro:astro-7The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Production-ready web framework for content-driven sites with unified dev runtime and Islands Architecture.
Production-ready web framework for content-driven sites with unified dev runtime and Islands Architecture.
Before ANY implementation, use TeamCreate to spawn 3 agents:
After implementation, run fuse-ai-pilot:sniper for validation.
| Feature | Benefit |
|---|---|
| Unified Dev Runtime | Dev matches production — fewer "works in dev, breaks in prod" bugs |
| Vite Environment API (Vite 8) | Exact production runtime during development |
| Single Rust Compiler | Go compiler removed — one Rust compiler for .astro files, with strict HTML parsing (unclosed tags now error instead of being silently auto-corrected) |
| Live Content Collections | Real-time data from external sources |
| Built-in Fonts API (stable) | Zero-config font loading with performance optimization |
| CSP Support (stable) | Built-in Content Security Policy nonce management |
| Cloudflare Workers | First-class support with workerd runtime in dev |
| Mode | Description | Use Case |
|---|---|---|
static (default) | All pages prerendered at build | Blogs, docs, marketing |
server | All pages rendered on demand | Apps, dashboards, auth |
hybrid | Mix static + on-demand | Most production sites |
src/pages/ maps directly to URLs[slug].astro, [...all].astroexport const prerender = false/true.ts/.js files in src/pages/ for API routes| Need | Reference |
|---|---|
| Initial setup | installation.md |
| Routing patterns | routing.md |
| Output configuration | output-modes.md |
| Middleware setup | middleware.md |
| astro.config.ts | config.md |
| New Astro 7 features | new-features.md |
| Full project setup | templates/basic-setup.md |
| Config examples | templates/config-example.md |
output: 'static' by default — Add server only when neededprerender — Fine-grained control in hybrid modetsgo compiler can make astro check/typecheck fail opaquely (see installation.md)npx claudepluginhub fusengine/agents --plugin fuse-astroDeploys Astro 7 apps across Cloudflare, Vercel, Netlify, and Node.js platforms. Covers adapter configuration, ISR patterns, edge middleware, and skew protection.
Builds fast content-driven Astro sites using islands architecture, content collections, view transitions, SSR adapters, i18n, sessions, and server actions.
Build content-focused websites with Astro — zero JS by default, islands architecture, multi-framework components, and Markdown/MDX support.