New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Astro 7 expert that covers Islands Architecture, Content Layer, Actions, and multi-framework integration.

version
1.0.18
GitHub stars
36

What it does

  • Adds an astro-expert agent plus 14 skills, including astro-7, astro-actions, astro-content, and astro-islands
  • Covers output modes, Server Actions via defineAction, typed collections in content.config.ts, and Astro DB with Turso
  • Provides assets, i18n, SEO, security, Starlight docs, styling, deployment to Cloudflare, Vercel, Netlify, or Node.js, and solid-astro integration
  • Designed for developers building Astro 7 sites that need framework-specific guidance on islands, actions, and content

Expert Astro 7 with Islands Architecture, Content Layer API, Server Actions, Server Islands, UI framework integrations (React/Vue/Svelte/Solid), SEO, Starlight docs, i18n, and deployment

Add marketplace

/plugin marketplace add fusengine/agents

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install fuse-astro@fusengine-plugins

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source
Configures and explains Astro 7 (stable, 7.4.7) core framework mechanics: file-based routing, the two output modes (`static`/`server`) plus hybrid rendering via per-route `prerender`, middleware for auth/redirects/headers, the Vite Environment API, the single Rust compiler (Go compiler removed, strict HTML parsing), stable Content Security Policy, Live Content Collections, and the built-in Fonts API.

Covers initial project setup and migration from Astro 5/6, including breaking changes and Node 22.23.4+ requirements (the floor rose within Astro 7: 22.12 at 7.0, 22.22 at 7.4.0, 22.23.4 at 7.4.7). Does not cover Content Layer API details (astro-content), Server Actions (astro-actions), Islands hydration directives (astro-islands), UI framework integrations (astro-integrations), or deployment adapters (astro-deployment) — those live in their own skills.

Astro 7 Expert

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

Agent Workflow (MANDATORY)

Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:

  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 or server output (hybrid = per-route prerender)
  • 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
Route caching (stable in 7.0)Top-level cache + routeRules, Astro.cache.set({ maxAge, swr, tags })
Advanced Routing (7.0)Optional src/fetch.ts entrypoint (astro/fetch, astro/hono)

Core Concepts

Output Modes

ModeDescriptionUse Case
static (default)All pages prerendered at buildBlogs, docs, marketing
serverAll pages rendered on demandApps, dashboards, auth
Hybrid (not an output value)static or server + per-route export const prerenderMost production sites

Routing

  • File-based routing — src/pages/ maps directly to URLs
  • Dynamic routes — [slug].astro, [...all].astro
  • Per-route prerender — export 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 hybrid control (output only accepts 'static' | 'server'; there is no 'hybrid' value)
  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 hashes — Use built-in stable security.csp (hash-based, plus the Astro.csp runtime API) instead of custom headers
  6. Node 22.23.4+ required (current floor per the install docs; Node 24/26 LTS are fine, odd-numbered versions are unsupported) — and keep typescript on 5.x/6.x: @astrojs/check 0.9.x peers ^5 || ^6, so TypeScript 7 (tsgo, npm latest) is not supported by astro check (see installation.md)

From the fusengine/agents README

Fusengine Claude Code Plugins

version plugins agents skills License: MIT platform Windows

A plugin ecosystem that turns Claude Code into a supervised, multi-agent development environment. Expert agents write code, hooks enforce quality in real-time, skills inject framework-specific knowledge, and intelligent cartography auto-maps plugins and projects — so Claude never guesses, never duplicates, and always follows your architecture.

Statusline

Demo: the hook → agent → sniper cycle

Scripted demo — a faithful reconstruction of the real hook → agent → sniper cycle. Regenerate with vhs docs/demo/hook-sniper.tape.

What It Does

Without plugins: Claude Code writes code based on its training data. It can hallucinate APIs, duplicate existing code, ignore your project structure, and produce inconsistent quality.

With Fusengine plugins:

  • Expert agents detect your project type (Next.js, Laravel, React, Astro, Swift...) and load framework-specific documentation via MCP servers before writing a single line
  • 60+ hook checks intercept Write/Edit/Bash and agent/session lifecycle events to enforce file-size limits (<100 lines), block code duplication (DRY), require SOLID reference reads, gate documentation lookup, and block destructive shell commands
  • 240 skills inject copy-paste-ready templates, architecture patterns, and best practices directly into agent context — no hallucination needed
  • APEX workflow structures every task through Analyze → Plan → Execute (TDD) → Review → Validate — preventing the "just write code and hope" approach
  • Sniper agent — a 7-phase post-edit quality check (explore → research → grep usages → lint → fix → zero errors) the APEX workflow invokes after every modification

Quick Install

# Add marketplace
/plugin marketplace add fusengine/agents

# Install all plugins
/plugin install fuse-ai-pilot fuse-commit-pro fuse-laravel fuse-nextjs fuse-react fuse-astro fuse-swift-apple-expert fuse-solid fuse-tailwindcss fuse-design fuse-prompt-engineer fuse-shadcn-ui fuse-security fuse-changelog fuse-lessons fuse-tanstack-start fuse-typescript fuse-php fuse-rust fuse-go fuse-motion fuse-hermes fuse-devops fuse-statusline   # fuse-statusline: responsive status line mod, replaces the classic one (the installer can also set it up)

# Setup (hooks + API keys + MCP servers)
~/.claude/plugins/marketplaces/fusengine-plugins/setup.sh        # macOS / Linux
~\.claude\plugins\marketplaces\fusengine-plugins\setup.ps1       # Windows

Statusline (optional): the fuse-statusline mod is the recommended option — the installer offers it (default yes) and it replaces the classic status line. The classic statusline stays available and is configured with:

bun --cwd ~/.claude/plugins/marketplaces/fusengine-plugins/plugins/core-guards/statusline run config

How It Works

User prompt → Hook detects project type → Expert agent activated
            → Hook loads SOLID references → Agent reads docs via MCP
            → Hook blocks if DRY violation → Agent writes code
            → Hook checks file size → Agent runs Sniper validation
            → Commit gate blocks on lint/type errors → Commit with version bump

Every step is intercepted. Claude cannot skip research, cannot duplicate code, cannot exceed file size limits, and cannot commit with lint or type errors.

Plugins

Development — Framework Expert Agents

Each plugin provides an expert agent that auto-activates when it detects the framework in your project. The agent has access to official documentation via MCP servers and follows SOLID principles enforced by hooks.

PluginDetectsWhat the agent does
fuse-nextjsnext.config.*App Router, RSC, Prisma 7, Better Auth, proxy.ts patterns
fuse-laravelcomposer.json + artisanEloquent, Livewire, Blade, queues, Sanctum, Stripe Connect
fuse-reactpackage.json + ReactReact 19 hooks, TanStack Router/Form, Zustand stores
fuse-astroastro.config.*Islands, Content Layer, Actions, SEO, Starlight, i18n
fuse-swift-apple-expertPackage.swiftSwiftUI, concurrency, Apple Intelligence, system frameworks, Metal, media; all Apple platforms (iOS → visionOS)
fuse-tailwindcsstailwind.config.*v4.1 CSS-first config, @theme, @utility, OKLCH colors
fuse-designAny UI taskGemini Design MCP + shadcn/ui + WCAG 2.2 accessibility
fuse-shadcn-uicomponents.jsonRadix/Base UI detection, registry, theming, migration
fuse-tanstack-start@tanstack/react-startServer functions, selective SSR, middleware, server routes, Nitro deploy
fuse-typescripttsconfig.json (no framework)Pure TS 6.0, Node 24 LTS / Bun 1.3, strict typing, ESM packaging
fuse-phpcomposer.json (no artisan)PHP 8.5, PER-CS 3.0, PHPStan, PSR, Slim / Symfony components
fuse-rustCargo.tomlRust 1.96+, 2024 edition, ownership, tokio / axum, clippy-clean
fuse-gogo.modGo 1.26+, concurrency, backend services, golangci-lint v2

Quality & Security — Automated Enforcement

PluginWhat it enforces
fuse-ai-pilotAPEX workflow orchestration, 7-phase sniper validation, DRY detection via jscpd, 4-level cache (60-75% token savings)
fuse-securityOWASP Top 10 scanning, CVE research via NVD/OSV.dev, dependency audit, secrets detection, auth patterns audit
fuse-solidFiles < 100 lines, interface separation, JSDoc mandatory — auto-detected for TypeScript, PHP, Swift, Go, Java, Ruby, Rust

Productivity — Automation

PluginWhat it automates
fuse-commit-proConventional commits with security check, auto version bump, CHANGELOG, git tag — with a pre-commit secret-pattern scan
fuse-prompt-engineerPrompt creation with CoT/Few-Shot/Meta-Prompting, A/B testing, 50+ template library, agent design
fuse-cartographerIntelligent cartography: auto-generates navigable maps of plugins and projects at SessionStart with merge-preserving enrichment — agents navigate via linked index trees, /map --enrich completes descriptions from source frontmatter
fuse-changelogMonitors Claude Code updates, detects breaking changes in plugins, gathers community feedback via Exa
fuse-lessonsPer-project "never reproduce" memory — writes compact timestamped lessons to MEMORY/LESSON.md after code edits and force-reads them at session/subagent start so mistakes don't recur across sessions
fuse-motionProduct motion films and demos — brief lock, beat map, deterministic HTML scenes rendered to mp4/GIF; owner gates on stills and draft, independent critic review
fuse-hermesNous Research Hermes Agent deployments — from a free-form description of your organisation to a verified chief-of-staff install over SSH: profile, delegation, cron, gateways, security, mail triage, dry run, one go, rollback
fuse-statuslineResponsive statusline mod above the prompt — pill cards on the desktop app, classic segments on the terminal; cache hit/expiry timer, 5h/7d usage, effort — replaces the classic status line

Infrastructure & Operations — Self-Hosted Expert

PluginDetectsWhat the agent does
fuse-devopsInfrastructure repos only: *.tf / *.tofu, ansible.cfg, Chart.yaml, kustomization.yaml, *.pkr.hcl, .sops.yaml (a lone Dockerfile or docker-compose.yml in an application repo does not route here)Docker/Compose, Kubernetes workloads and clusters, Linux, networking, OPNsense, Proxmox VE, KVM/Incus, OpenStack, Terraform/OpenTofu, Ansible, CI/CD, observability, storage and backup, secrets, databases — discovery, dry-run, one go, verify, rollback; no public clouds

Core (auto-installed, always active)

PluginWhat it guards
core-guardsBlocks git push --force, rm -rf, npm install without lock, enforces SOLID file limits, tracks session state, DRY duplication blocking — also bundles token-optimization hooks (MCP verbosity caps, MCP + WebFetch disk cache, SessionStart cleanup)
claude-rulesInjects APEX/SOLID/DRY rules into every prompt so Claude never forgets the methodology

Key Features

FeatureHow it prevents mistakes
APEX WorkflowForces Analyze before coding — no more "let me just write this real quick"
Agent TeamsParallel agents with exclusive file ownership — no merge conflicts
DRY DetectionBlocks Write/Edit if function/class name already exists — forces import or shared extraction
SOLID HooksDenies file save if >100 lines or missing SOLID reference read
Sniper Validation7-phase post-edit check: explore → research → grep → lint → fix → zero errors
4-Level CacheCaches exploration, docs, lessons, tests — 60-75% token savings
Token-efficient by defaultCaps MCP verbosity (Context7/Exa numResults≤3, tokens≤2000), disk cache for MCP results + WebFetch with TTL (48h / 24h) and ripgrep lookup, auto-cleanup at SessionStart — typically saves ~150-200 KB per research-heavy session
23 MCP ServersContext7, Exa, Astro docs, Gemini Design, shadcn, fuse-browser, and more
Smart CommitsSecurity scan before commit, auto version bump, CHANGELOG, shields.io badge sync

Documentation

SectionContent
Getting StartedInstallation, configuration, first steps
WorkflowAPEX methodology, agents, skills, commands
PluginsPer-plugin documentation and skills
ReferenceArchitecture, hooks, MCP servers, cache system

License

MIT

Details

Marketplace
fusengine/agents
Source
plugins/astro-expert
Author
Fusengine
Category
Development
License
MIT
Keywords
astro, astro-7, islands-architecture, content-layer, server-islands, server-actions, react, vue, svelte, solid-js, mdx, starlight, i18n, seo, deployment, cloudflare, vercel
Listed since
Apr 7, 2026

More from fusengine/agents

All 26

Similar to fuse-astro

More Frontend & UI Code