Astro Content Collections Manager
Enforces the use of Astro Content Collections for type-safe and validated markdown management.
This skill guides Claude to implement Astro Content Collections for structured Markdown or MDX content, ensuring all data is validated via Zod schemas in src/content/config.ts. By moving content out of the src/pages directory and into src/content, it establishes a robust, type-safe architecture that prevents runtime errors and decouples content structure from routing logic. It is particularly useful for developers building blogs, documentation sites, or any content-heavy Astro application where data consistency and developer experience are priorities.
Key Features
010 GitHub stars
02Zod-based schema validation for Markdown frontmatter
03Prevention of runtime errors via build-time frontmatter validation
04Separation of content structure from routing logic
05Automated enforcement of Astro Content Collections over raw imports
06Implementation of type-safe content querying using getCollection
Use Cases
01Migrating an existing Astro blog from legacy routing to Content Collections
02Refactoring untyped Markdown glob imports to use the getCollection API
03Setting up strict frontmatter requirements for multi-author documentation