What problem does it solve? Managing blog posts, docs, or CMS data in Astro without type safety leads to runtime errors and untyped frontmatter. This Skill sets up the Astro Content Layer API so every collection is validated by Zod schemas and fully typed in TypeScript. ## Core Features & Use Cases - Collection Configuration: Define collections in src/content.config.ts using the built-in glob() and file() loaders for local Markdown, MDX, JSON, YAML, and TOML files. - Custom Loaders: Fetch content from remote CMSs, REST APIs, or databases with custom loader functions that populate the content store. - Typed Querying & Rendering: Use getCollection(), getEntry(), and render() to query entries, filter drafts, generate static paths, and render MDX with a Content component plus headings. - Use Case: Build a blog where posts live as Markdown files with typed frontmatter (title, pubDate, tags, draft flag), generate a sorted listing page, and render each post with an automatic table of contents. ## Quick Start Set up an Astro blog content collection with a Zod schema for Markdown posts and generate the listing and post pages.