agentsclimarketplace

Astro 7

Skill fusengine/agents/plugins/astro-expert/skills/astro-7

Expert Astro 7 framework (stable, 7.0.9) — routing, output modes, middleware, Vite Environment API, single Rust compiler, Content Security Policy, Live Collections, Fonts API. Use when building Astro sites, configuring output, or upgrading from Astro 5/6.From its SKILL.md

Install
npx -y skills add fusengine/agents --skill astro-7

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 22 stars22 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
  • runs commandsInstructs the agent to run 5 commands, including `TeamCreate` and 4 more.

SKILL.md

4.1 KB, 832 tokens by cl100k_base, as published. Nobody here has run it

Astro 7 Expert

Production-ready web framework for content-driven sites with unified dev runtime and Islands Architecture.

Agent Workflow (MANDATORY)

Before ANY implementation, use TeamCreate to spawn 3 agents:

  1. fuse-ai-pilot:explore-codebase - Analyze existing routes, layouts, and config
  2. fuse-ai-pilot:research-expert - Verify latest Astro 7 docs via Context7/Exa
  3. mcp__context7__query-docs - Check breaking changes v6→v7

After implementation, run fuse-ai-pilot:sniper for validation.


Overview

When to Use

  • Building new content-driven websites or blogs
  • Migrating from Astro 6 to version 7
  • Configuring static, server, or hybrid output modes
  • Setting up middleware for auth or redirects
  • Leveraging the new Rust compiler for large sites
  • Implementing Content Security Policy (CSP) headers

Why Astro 7

FeatureBenefit
Unified Dev RuntimeDev matches production — fewer "works in dev, breaks in prod" bugs
Vite Environment API (Vite 8)Exact production runtime during development
Single Rust CompilerGo compiler removed — one Rust compiler for .astro files, with strict HTML parsing (unclosed tags now error instead of being silently auto-corrected)
Live Content CollectionsReal-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 WorkersFirst-class support with workerd runtime in dev

Core Concepts

Output Modes

ModeDescriptionUse Case
static (default)All pages prerendered at buildBlogs, docs, marketing
serverAll pages rendered on demandApps, dashboards, auth
hybridMix static + on-demandMost production sites

Routing

  • File-based routingsrc/pages/ maps directly to URLs
  • Dynamic routes[slug].astro, [...all].astro
  • Per-route prerenderexport const prerender = false/true
  • Endpoints.ts/.js files in src/pages/ for API routes

Reference Guide

NeedReference
Initial setupinstallation.md
Routing patternsrouting.md
Output configurationoutput-modes.md
Middleware setupmiddleware.md
astro.config.tsconfig.md
New Astro 7 featuresnew-features.md
Full project setuptemplates/basic-setup.md
Config examplestemplates/config-example.md

Best Practices

  1. Use output: 'static' by default — Add server only when needed
  2. Per-route prerender — Fine-grained control in hybrid mode
  3. Middleware for cross-cutting concerns — Auth, redirects, headers
  4. No compiler flag needed — the Rust compiler is the only compiler now (Go removed); watch for strict HTML parsing errors on unclosed tags
  5. CSP nonces — Use built-in stable support instead of custom headers
  6. Node 22.12+ required — odd-numbered Node versions are unsupported; stay on stable TypeScript tooling, the native tsgo compiler can make astro check/typecheck fail opaquely (see installation.md)

What ships with it: 8 files

13.0 KB alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.