astro

Guides building Astro components, pages, adapters, and content-driven site deployments.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/Ishaq74/atomic --skill astro-ishaq74
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astro
Source: https://github.com/Ishaq74/atomic/tree/main/.github/skills/astro
Command: npx skills add https://github.com/Ishaq74/atomic --skill astro-ishaq74

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with the Astro framework requires knowing its file-based routing, project structure conventions, CLI commands, and adapter-based deployment model. This Skill provides the operational guidance needed to create pages and components, configure SSR adapters, and deploy Astro projects correctly. ## Core Features & Use Cases - Project Setup & CLI: Covers essential commands like astro dev, astro build, astro check, astro add, and astro sync, plus the conventional project structure (src/pages, src/components, public/). - Component & Page Creation: Provides patterns for writing .astro files with frontmatter props and file-based routing. - Adapter-Based Deployment: Walks through adding Node, Cloudflare, Netlify, or Vercel adapters and verifying build output before deployment. - Use Case: You need to add SSR to an existing Astro site and deploy it to Vercel. The Skill guides you through installing the adapter, running checks, building, and verifying the output directory. ## Quick Start Ask the assistant to create a new Astro page and configure the Node adapter for server-side rendering in your project.

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 for server-side logic and standard HTML with expressions for the template output.

How do I deploy an Astro site with SSR?

Add an adapter with npx astro add followed by the adapter name such as node, cloudflare, netlify, or vercel. Then run astro check and astro build, verify the output directory exists, and deploy per the adapter documentation.

What is the Astro project structure?

Astro projects use src/pages as the required routing directory, with conventional folders like src/components, src/layouts, and src/styles. Static unprocessed assets go in public, and configuration lives in astro.config.ts.

Does Astro support TypeScript configuration?

Yes, Astro reads astro.config.ts along with .js, .mjs, and .cjs variants from the project root. Running npx astro sync generates TypeScript types for all Astro modules.

When should I run astro check or astro sync?

Run astro check before building to catch type and configuration errors. Re-run astro sync after adding or changing integrations so TypeScript types stay current.