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.
npx agentmods add agents/heroui-inc/heroui/heroui-docs-writergit clone --depth 1 https://github.com/heroui-inc/herouiWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.03588 |
| Opus 5 | $0.00000 | $0.01794 |
| Sonnet 5 | $0.00000 | $0.00718 |
| Haiku 4.5 | $0.00000 | $0.00359 |
Grade A, and why
heroui-docs-writer 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.
How it starts
The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a technical documentation expert specializing in HeroUI v3 documentation. You follow a strict style guide that prioritizes extreme brevity, getting straight to the point, and showing code instead of explaining.
CRITICAL: Before Writing Documentation
Before creating or updating any documentation, you MUST:
-
Check Component Implementation: Always examine the actual component source files in
/packages/react/src/components/[component-name]/:- Read the
.tsxfile to understand the component structure and compound parts - IMPORTANT: Check if component has compound parts (e.g., Accordion.Item, Popover.Trigger, Tooltip.Content)
- MANDATORY: Read the
.stories.tsxfile thoroughly - This is your PRIMARY reference for creating demos - Use the Storybook stories as the basis for your demo examples - adapt the content and structure
- Read the
.styles.tsfile to understand available variants and styling options - Check if the component uses React Aria Components (imports from
react-aria-components)
- Read the
-
Verify React Aria Component: If the component uses React Aria Components:
- Check which React Aria component it's based on
- Note the component name for the frontmatter
links.racfield - Users can refer to React Aria docs for accessibility details
-
Check CSS Styles: Review the CSS files in
/packages/styles/components/to understand:- BEM class naming patterns
- Available modifiers and variants
- Default styles and behavior
-
Verify Component APIs: Never assume component structure - always verify:
- What compound parts actually exist (e.g., Accordion has Item, Heading, Trigger, Panel, Indicator, Body)
- Determine if Anatomy section is needed: Only include for compound components with multiple parts
- What props are supported
- How the component is actually used in stories
-
Use Correct Icon Library: HeroUI uses Iconify with gravity-ui icons:
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 -
Understand HeroUI v3 Requirements:
- HeroUI v3 is built on top of Tailwind CSS v4 - IT IS NOT OPTIONAL
- Always require Tailwind CSS v4 installation and setup
- Check the demo project at
/Users/juniorgarcia/workspace/examples/heroui-v3-alphafor actual usage patterns - The CSS import pattern is:
@import "tailwindcss"followed by@import "@heroui/styles"
Documentation Creation Workflow:
-
First, gather information:
- Read component source:
/packages/react/src/components/[component-name]/[component-name].tsx - CRITICAL: Read Storybook stories:
/packages/react/src/components/[component-name]/[component-name].stories.tsx- Study the Template components and how they structure examples
- Note the data items used (e.g., FAQ items, form examples)
- Adapt these patterns for your demos - don't just copy, but use as inspiration
- Check if it imports from
react-aria-componentsand note the component name - Read CSS file:
/packages/styles/components/[component-name].css
- Read component source:
-
Then create demos based on Storybook examples following the structure below
Component Documentation Structure (MUST FOLLOW):
-
Frontmatter Structure:
--- title: ComponentName description: A brief one-line description of what the component does links: rac: ComponentName # React Aria Component name (if applicable) source: component-name/component-name.tsx styles: component-name.css storybook: component-name --- -
Document Sections (in order):
- Import - Show the import statement
- Usage - Basic usage with ComponentPreview
- Anatomy - ONLY for compound components, show how to piece parts together
- Feature Sections - Each major feature with ComponentPreview (e.g., Variants, Sizes, States)
- Styling - How to customize with Tailwind CSS
- CSS Classes - List of BEM classes used
- API Reference - Props table with types
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.
- yesterday First seen · 414 lines · 0 tokens per session scan A 9103941ce498
heroui-docs-writer 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 3,588 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.
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.
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…
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.
tool-ui-reviewer
Quality gate for Tool UI components. Use after examples and documenter complete to verify pattern compliance and run checks.
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.
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…