zudo-doc

Type to search...

to open search from anywhere

Claude Code Resources

CreatedMar 22, 2026Takeshi Takatsudo

Auto-generate documentation from your Claude Code resources.

Overview

zudo-doc can automatically generate documentation pages from your project’s Claude Code resources — CLAUDE.md files, custom commands, skills, and agents. When enabled, these appear under the Claude header navigation section.

Enabling Claude Resources

Set claudeResources in src/config/settings.ts:

claudeResources: {
  claudeDir: ".claude",
},

Set to false to disable:

claudeResources: false,

What Gets Generated

The integration scans your .claude/ directory and generates MDX documentation pages for:

ResourceSourceOutput
CLAUDE.md filesProject root and subdirectoriesclaude-md/
Commands.claude/commands/*.mdclaude-commands/
Skills.claude/skills/*/SKILL.mdclaude-skills/
Agents.claude/agents/*.mdclaude-agents/

Each resource type gets its own index page with a list of all items, plus individual detail pages.

How It Works

The integration runs at build time during the astro:config:setup hook:

  1. Scans the configured .claude/ directory
  2. Discovers CLAUDE.md files, commands, skills (with references), and agents
  3. Generates MDX files in src/content/docs/claude-*/ directories
  4. These files are picked up by Astro’s content collections and rendered as documentation pages

The generated pages appear under the Claude header navigation tab, configured via headerNav with categoryMatch: "claude".

📝 Note

Generated files are written to src/content/docs/ and are recreated on every build. Do not edit them manually — your changes will be overwritten.

Configuration Options

OptionTypeDescription
claudeDirstringPath to the .claude/ directory (relative to project root)
projectRootstringOptional project root override for resolving CLAUDE.md file paths

The projectRoot option is useful in monorepo setups where the .claude/ directory is not at the project root.

💡 Tip

Skills with a references/ subdirectory will have their reference documents included as separate linked pages, making it easy to browse bundled knowledge bases.

Revision History

AI Assistant

Ask a question about the documentation.