Content Collections

Content Collections, a TypeScript-first build tool that turns local Markdown and MDX files into type-safe, Zod-validated data collections. Covers @content-collections/core and the Vite plugin, defineCollection and defineConfig, the tsconfig path alias to .content-collections/generated, MDX compilation with compileMDX and the MDXContent component, rehype/remark plugins, transform functions for computed properties, and Cloudflare Workers deployment. Use when building blogs, documentation sites, or content-heavy Vite + React apps, defining content schemas with Zod, migrating from Contentlayer, or debugging errors like module not found content-collections, path alias not working, MDX type errors, or collections not updating after edits.

jackspace Updated

File contents

jackspace/ClaudeSkillz/tree/main/skills/content-collections commit 84ba7f478f

Frequently asked questions

npx skillmds@latest add jackspace/content-collections