Expert Astro Content Layer API — content.config.ts, glob/file loaders, custom loaders, getCollection, getEntry, render(), Zod schemas, MDX, Remark/Rehype plugins. Use when managing structured content, blog posts, or any typed data collections.
From fuse-astronpx claudepluginhub fusengine/agents --plugin fuse-astroThis skill uses the workspace's default tool permissions.
references/config.mdreferences/loaders.mdreferences/mdx.mdreferences/overview.mdreferences/querying.mdreferences/rendering.mdreferences/templates/blog-collection.mdreferences/templates/custom-loader.mdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
Type-safe content management with loaders, Zod schemas, and the unified Content Layer API.
Before ANY implementation, use TeamCreate to spawn 3 agents:
After implementation, run fuse-ai-pilot:sniper for validation.
| Feature | Benefit |
|---|---|
src/content.config.ts | Single config file at project root |
| Built-in loaders | glob() and file() for local files |
| Custom loaders | Fetch from any external source |
| Zod 4 schemas | Full TypeScript type safety |
astro sync | Generates types from collections |
The config file moved from src/content/config.ts to src/content.config.ts in Astro 5+.
| Loader | Use Case |
|---|---|
glob() | Multiple files in a directory (MD, MDX, JSON, YAML) |
file() | Single JSON/YAML file with multiple entries |
| Custom | Remote API, database, or any async data source |
| API | Description |
|---|---|
getCollection(name) | Fetch all entries in a collection |
getEntry(name, id) | Fetch a single entry by ID |
render(entry) | Render a content entry to HTML + headings |
defineCollection() | Define a collection with loader and schema |
| Need | Reference |
|---|---|
| Overview & concepts | overview.md |
| Config file setup | config.md |
| Glob, file, custom loaders | loaders.md |
| getCollection / getEntry | querying.md |
| render() + headings | rendering.md |
| MDX + Remark/Rehype | mdx.md |
| Blog collection example | templates/blog-collection.md |
| Custom remote loader | templates/custom-loader.md |
astro sync — After changing content.config.tsglob() for local files — Supports MD, MDX, JSON, YAML, TOMLrender() for MDX — Returns Content component + headings array