← ClaudeAtlas

astrolisted

Skill for building static sites with the Astro web framework. Helps create Astro components and pages, set up content collections, optimize images, configure SEO, and deploy static builds. Use when the user needs to work with Astro, mentions .astro files, asks about static site generation (SSG), islands architecture, content collections, or deploying an Astro project.
ianshk/astro-skills · ★ 1 · Web & Frontend · score 78
Install: claude install-skill ianshk/astro-skills
# Astro Skill Reference for building static Astro sites (output: `'static'`). Covers architecture decisions, content collections, SEO, image optimization, pagination, and deployment patterns. **Consult [docs.astro.build](https://docs.astro.build) and [llms.txt](https://docs.astro.build/llms.txt) for latest APIs when needed.** --- ## References Read these files for detailed patterns and templates: | Reference | What it covers | |---|---| | [`content-collections.md`](./references/content-collections.md) | Schemas (`z.image`, `z.enum`, `reference()`), querying, dynamic routes, `entry.body` | | [`image-optimizations.md`](./references/image-optimizations.md) | `<Image />` component, downscaling tip, SVG components, aspect ratios | | [`seo-checklist.md`](./references/seo-checklist.md) | Head component, per-page checklist, structured data (JSON-LD), hreflang, content rules | | [`pagination.md`](./references/pagination.md) | `paginate()`, nested pagination, `page` prop | --- ## Architecture Rules ### 1. Astro-first - `.astro` files for everything presentational — zero JS shipped to client. - Framework components (`.tsx`, `.svelte`, `.vue`, etc.) only when interactivity is needed. ### 2. Minimal hydration Use the lightest `client:*` directive that works: | Directive | Use case | |---|---| | `client:load` | Critical above-the-fold interactivity | | `client:idle` | Non-critical (modals, popovers) | | `client:visible` | Below-the-fold widgets | | `client:media` | Screen-size