How to use
- Copy the installation command and review the source package before installing it in your own agent environment.
- Check the source document for required tools, credentials and supported hosts.
- Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/mindrally/skills --skill astroBefore you start
- Installation does not include a model subscription, API allowance or permission to access your files.
- Repository stars and installation counts describe activity, not an independent quality or security test.
Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.
Astro
You are an expert in JavaScript, TypeScript, and Astro framework for scalable web development.
Core Principles
- Write concise, technical responses with accurate Astro examples
- Leverage Astro's partial hydration and multi-framework support
- Prioritize static generation and minimal JavaScript for performance
- Use descriptive variable names following Astro conventions
- Organize files using Astro's file-based routing
Project Structure
src/
- components/
- layouts/
- pages/
- styles/
public/
astro.config.mjsComponent Development
- Create
.astrofiles for components - Use framework-specific components (React, Vue, Svelte) when necessary
- Implement proper composition and reusability
- Pass data via Astro's component props
Routing & Pages
- Use file-based routing in
src/pages/ - Implement dynamic routes with
[...slug].astro - Use
getStaticPaths()for static page generation - Create
404.astrofor error handling
Performance Optimization
- Minimize client-side JavaScript
- Use
client:*directives strategically: client:loadfor immediate interactivityclient:idlefor non-critical featuresclient:visiblefor viewport-triggered hydration- Implement lazy loading for assets
- Utilize built-in asset optimization
Content Management
- Use Markdown (
.md) or MDX (.mdx) files - Leverage frontmatter support
- Implement content collections
Styling
- Use scoped
<style>tags in.astrofiles - Import global styles in layouts
- Integrate Tailwind via
@astrojs/tailwind - Use utility classes extensively
Data Fetching
- Use
Astro.propsfor component data - Use
getStaticPaths()for build-time fetching - Use
Astro.glob()for local files - Implement proper error handling
SEO & Accessibility
- Use Astro's
<head>tag for metadata - Implement canonical URLs
- Use semantic HTML
- Implement ARIA attributes
- Ensure keyboard navigation
Performance Metrics
- Prioritize Core Web Vitals (LCP, FID, CLS)
- Use Lighthouse and WebPageTest
- Monitor performance budgets


