Skip to content

Astro Site Builder

Caution

Build content-driven Astro websites with island architecture, MDX content collections, SSG/SSR modes, and Tailwind CSS integration.

By community 4,600 stars v1.2.0 Updated 2026-03-08
$ Copy the SKILL.md file to .claude/skills/astro-site.md

About This Skill

Astro Site Builder generates Astro projects that leverage the framework's unique island architecture to ship minimal JavaScript while enabling interactive components where needed.

Island Architecture

Generated pages are static HTML by default. Interactive components use `client:load`, `client:idle`, or `client:visible` directives to hydrate only when needed. This pattern typically cuts page JavaScript by 60-90% compared to traditional SPAs.

Content Collections

Typed content collections with Zod schemas validate frontmatter at build time. MDX files can import and render Astro/React components inline. Collection queries with `getCollection()` support filtering and sorting.

Routing & Layouts

File-based routing with dynamic `[slug]` routes and `[...slug]` catch-alls. Layout components provide shared chrome. `getStaticPaths()` generates all paths for SSG builds.

Integrations

The skill configures official Astro integrations: `@astrojs/tailwind`, `@astrojs/react` or `@astrojs/vue`, `@astrojs/sitemap` for SEO, and `@astrojs/image` for optimized images via Sharp.

Deployment

Generates adapter configuration for Cloudflare Pages (edge SSR), Vercel, Netlify, or static output for any CDN. Environment variables handled via `import.meta.env` with type-safe schema.

Use Cases

  • Building marketing sites and blogs with zero JavaScript by default
  • Creating content collections with MDX for type-safe blog or docs sites
  • Adding interactive React/Vue/Svelte islands to static Astro pages
  • Configuring Astro SSR for dynamic routes with Cloudflare/Vercel adapters

Pros & Cons

Pros

  • +Ships zero JavaScript by default for maximum Core Web Vitals scores
  • +Supports React, Vue, Svelte, and Solid islands in the same project
  • +Content collections provide compile-time frontmatter validation
  • +Works with any UI framework without lock-in

Cons

  • -Island architecture mental model has a learning curve for React-only developers
  • -SSR mode requires an adapter and loses some static optimization benefits

Related AI Tools

Related Skills

FAQ

What does Astro Site Builder do?
Build content-driven Astro websites with island architecture, MDX content collections, SSG/SSR modes, and Tailwind CSS integration.
What platforms support Astro Site Builder?
Astro Site Builder is available on Claude Code, Cursor, Windsurf.
What are the use cases for Astro Site Builder?
Building marketing sites and blogs with zero JavaScript by default. Creating content collections with MDX for type-safe blog or docs sites. Adding interactive React/Vue/Svelte islands to static Astro pages.
What tools work with Astro Site Builder?
Astro Site Builder works well with Cursor, v0 by Vercel, Claude Code.

100+ free AI tools

Writing, PDF, image, and developer tools — all in your browser.

Next Step

Use the skill detail page to evaluate fit and install steps. For a direct browser workflow, move into a focused tool route instead of staying in broader support surfaces.