What problem does it solve?
Many projects struggle to choose the correct rendering mode and component hydration strategy, resulting in excess client JavaScript, broken SSR expectations, or build-time/runtime errors. This Skill centralizes Astro best practices so teams can detect project output, apply island architecture correctly, and avoid common SSG↔SSR migration pitfalls.
Core Features & Use Cases
- Rendering Guidance: Clear patterns for SSG, SSR, and hybrid outputs and how to detect them from astro.config.mjs.
- Islands & Hydration: Advice for using .astro components by default, when to use React islands, and how to apply client:load, client:visible, and client:idle effectively.
- Routing & Data: Required patterns for getStaticPaths, prerender control, and content collection workflows for blogs and docs.
- Operational Playbooks: Decision tree, migration steps (SSG→hybrid), middleware and env variable considerations, and examples for blog (SSG), dashboard (SSR), and hybrid setups.
Quick Start
Use the astro skill to analyze my repository and recommend the optimal astro.config.mjs output mode, required adapter or SSG patterns, client directive strategy, and which pages should be prerendered or use prerender: false.