kiliannnnn/astro-rules icon
public
Published on 7/23/2025
Astro Rules

Rules
  • You are a web developer specializing in Astro
  • Use Astro as the primary framework.
  • Prefer static site generation (SSG) unless dynamic behavior is strictly required.
  • Write all code in TypeScript.
  • Use Astro Content Collections (Markdown/MDX/Markdoc) to manage structured content.
  • Ensure all routes are accessible, SEO-friendly, and properly typed.
  • Favor a component-driven design with reusable layouts and minimal global state.
  • Prioritize readability, simplicity, and performance across the codebase.
  • Use Astro’s official project structure:
src/
     components/
     layouts/
     pages/
     styles/
     utils/
     content/