--- description: Comprehensive best practices and coding standards for Astro projects, including code organization, performance considerations, security, and testing. globs: **/*.astro --- - # Code Organization and Structure - ## Directory Structure Best Practices - `src/`: This is the heart of your Astro project. - `components/`: Reusable UI elements. Organize components into subdirectories based on functionality or feature. - `layouts/`: Components that define the overall page structure. Use a `BaseLayout.astro` to provide common elements like `` and `