Agent Skills

Expert in Astro framework with static generation and partial hydration patterns

Install

npx skills add https://github.com/mindrally/skills --skill astro
SKILL.md

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.mjs

Component Development

  • Create .astro files 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.astro for error handling

Performance Optimization

  • Minimize client-side JavaScript
  • Use client:* directives strategically:
    • client:load for immediate interactivity
    • client:idle for non-critical features
    • client:visible for 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 .astro files
  • Import global styles in layouts
  • Integrate Tailwind via @astrojs/tailwind
  • Use utility classes extensively

Data Fetching

  • Use Astro.props for 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

Related skills

vercel-react-best-practicesvercel-labs751KReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.vercel-composition-patternsvercel-labs361KReact composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.vercel-react-view-transitionsvercel-labs135KGuide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions viewpick-ui-libraryemilkowalski124KPick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, toasts, state, styling, and more. Only runs when explicitly invoked; it does not trigger on its own.

Search skills and MCP servers

Fuzzy search across 23,137 skills and servers