astro

Guides building Astro sites with components, pages, adapters, and CLI commands.

6|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/northguild/gmt --skill astro-northguild
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: astro
Source: https://github.com/northguild/gmt/tree/main/.agents/skills/astro
Command: npx skills add https://github.com/northguild/gmt --skill astro-northguild

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with the Astro web framework requires knowing its file-based routing, component syntax, configuration options, and deployment adapters. This Skill provides structured guidance so you can create pages and components, configure SSR adapters, and run the right CLI commands without hunting through documentation. ## Core Features & Use Cases - Project Setup & CLI Reference: Covers core commands like astro dev, astro build, astro check, astro add, and astro sync, plus the conventional project structure (src/pages, src/components, public/). - Page & Component Creation: Shows how to create .astro pages with frontmatter and reusable components using Astro.props. - Deployment with Adapters: Walks through adding Node.js, Cloudflare, Netlify, or Vercel adapters and verifying build output before deploying. - Use Case: You need to deploy a content-driven site to Cloudflare. Use this Skill to add the Cloudflare adapter, run astro check and astro build, and verify the dist/ output before deployment. ## Quick Start Ask the assistant to create a new Astro page and configure the Cloudflare adapter for deployment.

Frequently Asked Questions about astro

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a page in Astro?▼

Add a .astro file to the src/pages directory and the filename becomes the route. The file uses frontmatter between triple dashes for server-side JavaScript, followed by HTML markup that can reference variables with curly braces.

How do I deploy an Astro site to Cloudflare or Vercel?▼

Add the matching adapter with npx astro add cloudflare or npx astro add vercel, then run astro check and astro build. Verify the dist output directory exists and is non-empty, then deploy per the adapter's documentation.

What is the Astro project structure?▼

Astro projects use src/pages as the required directory defining all routes, with conventional src/components, src/layouts, and src/styles folders. Static assets go in public/ and are copied as-is to the build output, while astro.config.ts holds configuration.

Does Astro support server-side rendering?▼

Yes, Astro supports on-demand rendering through build adapters for Node.js, Cloudflare, Netlify, and Vercel. Install an adapter with npx astro add to enable SSR instead of purely static output.

Why should I run astro sync after adding integrations?▼

The astro sync command generates TypeScript types for all Astro modules. Re-running it after adding or changing plugins keeps type definitions accurate so astro check can catch errors correctly.