/fuse-astro:astro-contentfrom fuse-astro
Manages structured content, blog posts, and typed data collections in Astro via the Content Layer API (content.config.ts). Covers loaders, Zod schemas, query APIs, and MDX authoring.
Ships in fuse-astro. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Also covers MDX authoring with Remark/Rehype plugins and the astro sync workflow for generating collection types. Does not cover form submission via Astro Actions (astro-actions) or SEO metadata generation from content (astro-seo) — those are handled by their own skills.
Type-safe content management with loaders, Zod schemas, and the unified Content Layer API.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
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 arrayreferences/config.md (opens in a new tab)references/loaders.md (opens in a new tab)references/mdx.md (opens in a new tab)references/overview.md (opens in a new tab)references/querying.md (opens in a new tab)references/rendering.md (opens in a new tab)references/templates/blog-collection.md (opens in a new tab)references/templates/custom-loader.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
astro-content, content-layer, content-collections, mdx, zod-schemas
npx claudepluginhub fusengine/claude-plugins --plugin fuse-astro14 skills in this plugin
/astro-7Use when building Astro 7 sites, choosing an output mode (static/server, hybrid via per-route prerender), configuring middleware, or upgrading from Astro 5/6./astro-actionsUse when handling form submissions, mutations, or server-side logic with type safety in Astro via defineAction / astro:actions./astro-assetsUse when optimizing images or other assets in Astro — <Image />, <Picture />, getImage(), Fonts API, or OG image generation.Other plugins' skills for the same job