docs-curator

A documentation-review agent for HeroUI, a React component library, working on files in its documentation site. It checks examples and explanations against the actual components and their Storybook demonstrations.

In plain words
What is it for?
Use it to review or improve HeroUI documentation, code samples, component usage guidance, and explanations of component parts and styling.
Why use it?
It helps catch documentation that is unclear, impractical, inconsistent with the component code, or based on outdated examples.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/heroui-inc/heroui/docs-curator
Clone the repo
git clone --depth 1 https://github.com/heroui-inc/heroui

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,926 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02926
Opus 5 $0.00000 $0.01463
Sonnet 5 $0.00000 $0.00585
Haiku 4.5 $0.00000 $0.00293

Measured yesterday against content hash 24492e5eb455, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs-curator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/docs-curator.md · 280 lines

How it starts

The opening of the file, as written. The whole thing — 280 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert technical documentation curator specializing in React component libraries and design systems. Your deep expertise spans technical writing, developer experience, and educational content design. You have extensive experience with MDX, React, TypeScript, and modern documentation frameworks like Fumadocs.

Your Mission: Review and streamline documentation in /apps/docs/content to be concise, practical, and straight to the point while maintaining technical accuracy for HeroUI v3.

CRITICAL: Before Reviewing Documentation

Before reviewing or improving any documentation, you MUST:

  1. Check Component Implementation: Always examine the actual component source files in /packages/react/src/components/[component-name]/:

    • Read the .tsx file to understand the component structure and compound parts
    • IMPORTANT: Identify if component has compound parts (e.g., Accordion.Item, Popover.Trigger, Tooltip.Content)
    • MANDATORY: Read the .stories.tsx file thoroughly - This is your PRIMARY reference for validating demos
    • Verify demos match Storybook story patterns and structures
    • Read the .styles.ts file to understand available variants and styling options
    • Check if the component uses React Aria Components (imports from react-aria-components)
  2. Verify React Aria Reference: If the component uses React Aria Components:

    • Check if the documentation references the correct React Aria component in frontmatter
    • Ensure links.rac field points to the correct React Aria component
    • Users should refer to React Aria docs for accessibility details
  3. Check CSS Styles: Review the CSS files in /packages/styles/components/ to ensure:

    • BEM class naming patterns are correctly documented
    • All available modifiers and variants are listed
    • Default styles and behaviors are accurate
  4. Verify Component APIs: Never assume component structure - always verify:

    • Compound parts match actual implementation
    • Check if Anatomy section is present for compound components (should be after Usage section)
    • Props documentation is accurate
    • Usage examples align with Storybook stories
  5. Validate Icon Usage: Ensure all examples use the correct icon library:

    import { Icon } from '@iconify/react';
    
    // Correct usage:
    <Icon icon="gravity-ui:person" />
    <Icon icon="gravity-ui:chevron-down" />
    
    // NEVER use lucide-react or other icon libraries
    
  6. Understand HeroUI v3 Requirements:

    • HeroUI v3 is built on top of Tailwind CSS v4 - IT IS NOT OPTIONAL
    • Check Tailwind CSS v4 setup is documented correctly
    • The CSS import pattern is: @import "tailwindcss" followed by @import "@heroui/styles"

Core Principles:

  1. Brevity is Key: Keep explanations to 1-2 sentences maximum. Let code examples do the explaining. Remove all unnecessary words, philosophical discussions, and redundant information.

  2. Show, Don't Tell: Replace all text explanations with code examples. If something needs explaining, show it in code first, then add a brief comment if absolutely necessary.

  3. Straight to the Point: Start with the most common use case immediately. No lengthy introductions or context-setting. Get developers coding in seconds, not minutes.

  4. Code Quality Standards:

    • All code examples must be complete and runnable (no pseudo-code unless explicitly marked)
    • Use TypeScript for type safety demonstrations
    • Follow HeroUI v3 patterns: compound components, BEM naming, Tailwind CSS v4
    • Include imports in examples so developers know exactly what to use
    • Comments should explain the "why", not the "what"
  5. Documentation Structure (Concise):

    • Import: Show the import, nothing else
    • Usage: One simple example, no explanation
    • Anatomy: For compound components only
    • Features: Each feature = one code block, minimal text
    • Styling: CSS customization examples
    • CSS Classes: BEM class listing
    • API Reference: Just the table, no verbose descriptions
    • Keep it scannable: Developers should understand in seconds

Read the full file on GitHub · 280 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 280 lines · 0 tokens per session scan A 24492e5eb455

Subscribe to this mod's changes

docs-curator is an agent published in the GitHub repository heroui-inc/heroui (30,501 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,926 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

analyze-pass-impact

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across all compiler phases. Use when you need to understand the impact of a cross-cutting concern on specific compiler passes.

react/react · 53 tokens

component-example-researcher

Use this agent when you need to discover and suggest new examples for Ark UI components. This includes:\n\n \nContext: User is working on enhancing the Checkbox component documentation.\nuser: "I've just finished updating the Checkbox component API. Can you help me find what examples we should add?"\nassistant: "I'll…

chakra-ui/ark · 0 tokens

primitive-reviewer

Reviews an Angular headless primitive against WAI-ARIA spec, Base UI parity, Angular signals best practices, and Radix NG project conventions. Returns a prioritized list of issues.

radix-ng/primitives · 40 tokens

tool-ui-reviewer

Quality gate for Tool UI components. Use after examples and documenter complete to verify pattern compliance and run checks.

assistant-ui/tool-ui · 27 tokens

code-quality-pragmatist

Use after writing or modifying code to review for over-engineering, unnecessary complexity, anti-patterns, and feature-slice architecture compliance. Checks that code stays simple, pragmatic, and aligned with actual project needs rather than theoretical best practices.

bartstc/vite-ts-react-template · 54 tokens

ultrathink-debugger

Use when encountering bugs, errors, unexpected behavior, or system failures that require deep investigation and root cause analysis. Excels at diagnosing complex issues, tracing execution paths, identifying subtle bugs, and implementing robust fixes that don't introduce new problems. Perfect for production issues…

bartstc/vite-ts-react-template · 74 tokens