home / skills / ehtbanton / claudeskillsrepo / astro-page-generator
This skill generates complete Astro pages using islands architecture and content collections, delivering ready-to-use .astro files.
npx playbooks add skill ehtbanton/claudeskillsrepo --skill astro-page-generatorReview the files below or copy the command above to add this skill to your agents.
---
name: astro-page-generator
description: Generate Astro page components with islands architecture. Triggers on "create astro page", "generate astro component", "astro file", ".astro page".
---
# Astro Page Generator
Generate Astro pages with islands architecture and content collections.
## Output Requirements
**File Output:** `*.astro` page files
**Format:** Valid Astro component
**Standards:** Astro 4.x
## When Invoked
Immediately generate a complete Astro page.
## Example Invocations
**Prompt:** "Create Astro blog post page"
**Output:** Complete `[slug].astro` with content collection.
This skill generates complete Astro page components using the islands architecture and content collections. It produces valid .astro files compatible with Astro 4.x and outputs ready-to-drop page files such as [slug].astro. The focus is on generating working page markup, frontmatter, islands imports, and collection-aware routing.
When triggered, the skill creates a full Astro page component including frontmatter, imports for interactive islands, content collection hooks, and template markup. It ensures Astro 4.x syntax, proper file naming (e.g., [slug].astro), and places interactive UI as client: directives on island components. The result is a single .astro file ready to use in a project with content collections configured.
What file does this skill output?
It outputs a single .astro page file, typically named for the route (for example [slug].astro).
Which Astro version is supported?
Generated files follow Astro 4.x syntax and conventions.