# docusaurus-expert

Configures and fixes Docusaurus v2 and v3 documentation sites. Handles config files, sidebar trees, MDX layouts, and build errors.

- subagent · `type=agent` · Claude Code · 1143 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/documentation/docusaurus-expert.md
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/agents/docusaurus-expert

## What it does

This subagent handles maintenance for Docusaurus documentation projects. Using file operations and Bash commands, it inspects your repository paths, validates `docusaurus.config.js` or `docusaurus.config.ts`, and checks plugin setups. It groups fixes by problem area.

For documentation content, the agent organizes sidebar trees in `sidebars.js` and standardizes MDX metadata. It enforces kebab-case naming for files and checks frontmatter values like `sidebar_position`. Broken internal links are flagged early.

When builds fail, the agent inspects `npm run build` logs to identify syntax bugs or broken dependencies. Fixes are applied directly to project files. The project requires Node.js 14.0.0 or higher to run Docusaurus commands without runtime crashes.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --agent documentation/docusaurus-expert
```

2. **Manually: put the files in place**
- File: `.claude/agents/docusaurus-expert.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/docusaurus-expert.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/docusaurus-expert.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/documentation/docusaurus-expert.md

## When to use it
- fix syntax issues in `docusaurus.config.js`
- reorganize navigation in `sidebars.js`
- troubleshoot failing `npm run build` runs
- standardize frontmatter across MDX files

## Example prompts
- Inspect my Docusaurus project and fix the broken build
- Reorganize the sidebar categories in `sidebars.js`
- Check frontmatter tags across all files in the docs folder

## Similar
- [prompt-engineer](https://affpapa.org/en/nevibecode/agents/voltagent-community-prompt-engineer.md) — subagent · 16078 installs
- [context-manager](https://affpapa.org/en/nevibecode/agents/context-manager.md) — subagent · 10638 installs
- [code-explorer](https://affpapa.org/en/nevibecode/agents/code-explorer.md) — subagent · 1172 installs
- [search-specialist](https://affpapa.org/en/nevibecode/agents/search-specialist.md) — subagent · 6886 installs
- [api-documenter](https://affpapa.org/en/nevibecode/agents/api-documenter.md) — subagent · 6451 installs
- [technical-writer](https://affpapa.org/en/nevibecode/agents/technical-writer.md) — subagent · 4345 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
