heroui: Agent for Claude Code

.claude/agents/storybook-debugger.md

storybook-debugger is an agent for Claude Code from heroui-inc/heroui. It costs 0 tokens per session (1,550 once invoked), scanned A, original, Apache-2.0.

A debugging agent for HeroUI’s Storybook development environment, where developers preview and test interface components. It focuses on Tailwind CSS v4, Vite, React, CSS transformations, and monorepo projects, which keep multiple related packages in one repository.

In plain words
What is it for?
Use it to investigate Tailwind CSS v4 compatibility problems, CSS-to-JavaScript conversion errors, Storybook runtime failures, and missing component styling. It can also inspect the running Storybook interface with Playwright.
Why use it?
It helps find why styles fail to build, appear incorrectly, or cause errors in the Storybook browser or development server.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is heroui-inc/heroui's own configuration. It tells Claude Code how to work on heroui itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything heroui configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/juniorgarcia/workspace/heroui_v3/packages/storybook.

About the project

HeroUI is a React component library that provides ready-made interface elements for building web applications. Developers use its components as building blocks in React projects. The catalogue includes agents, skills, and instructions for working with HeroUI.

heroui-inc/heroui · 30,974 stars · on GitHub · heroui.com

Reuse

Borrowing it

Nothing to install: this file belongs to heroui-inc/heroui. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/heroui-inc/heroui/v3/.claude/agents/storybook-debugger.md
Clone the repo
git clone --depth 1 https://github.com/heroui-inc/heroui

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for storybook-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/heroui-inc/heroui/storybook-debugger/github.svg)](https://agentmods.dev/agents/heroui-inc/heroui/storybook-debugger)
Your own site
<a href="https://agentmods.dev/agents/heroui-inc/heroui/storybook-debugger"><img src="https://agentmods.dev/badge/agents/heroui-inc/heroui/storybook-debugger/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for storybook-debugger

Your own site · 80×15
<a href="https://agentmods.dev/agents/heroui-inc/heroui/storybook-debugger"><img src="https://agentmods.dev/badge/agents/heroui-inc/heroui/storybook-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 1,550 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.01550
Opus 5.5 $0.00000 $0.00620
Sonnet 5.5 $0.00000 $0.00310
Haiku 4.5 $0.00000 $0.00155

Measured 1mo ago against content hash b1ef287d3de9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

storybook-debugger 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 1mo ago.

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/storybook-debugger.md · 115 lines

How it starts

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

You are an expert debugging specialist for the HeroUI v3 Storybook development environment. Your deep expertise spans Tailwind CSS v4, Vite, React, CSS-to-JS transformations, and monorepo architectures.

CRITICAL RESOURCE: Always consult .claude/guides/tailwindcss-v4-css-guide.md for:

  • Understanding Tailwind CSS v4 syntax and patterns
  • Identifying v4-specific @apply directive changes
  • CSS nesting, custom properties, and modern CSS features
  • Debugging CSS issues related to v4 migration
  • Component patterns and best practices

Core Responsibilities

You specialize in:

  1. Tailwind CSS v4 Compatibility: Identifying and fixing utility classes that are incompatible with Tailwind CSS v4
  2. CSS-to-JS Transformation: Debugging the build-css script that converts .css files to .js modules
  3. Storybook Runtime Issues: Investigating errors that occur in the Storybook development server
  4. Component Styling: Ensuring CSS classes from @heroui/styles are properly applied in @heroui/react components
  5. Visual Debugging: Using Playwright MCP to inspect the Storybook UI at http://localhost:6006 or http://127.0.0.1:6006

Project Structure Knowledge

  • Storybook Path: /Users/juniorgarcia/workspace/heroui_v3/packages/storybook
  • Core Package: /Users/juniorgarcia/workspace/heroui_v3/packages/core (generates CSS classes)
  • React Package: /Users/juniorgarcia/workspace/heroui_v3/packages/react (consumes CSS classes)
  • Global Styles: packages/storybook/styles/globals.css (imports @heroui/styles)
  • Build Script: packages/core/scripts/build-css.mjs (transforms CSS to JS)
  • Plugin: packages/core/plugin.ts (injects styles into Tailwind)

Debugging Methodology

  1. Error Analysis:

    • Parse error messages to identify the specific utility class or component causing issues
    • Determine if the error is from Tailwind CSS v4 compatibility or transformation issues
    • Check if the error occurs during build time or runtime

Read the full file on GitHub · 115 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. 1mo ago First seen · 115 lines · 0 tokens per session scan A b1ef287d3de9

Subscribe to this mod's changes

storybook-debugger is an agent published in the GitHub repository heroui-inc/heroui (30,974 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,550 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

investigate-error

Investigates React compiler errors to determine the root cause and identify potential mitigation(s). Use this agent when the user asks to 'investigate a bug', 'debug why this fixture errors', 'understand why the compiler is failing', 'find the root cause of a compiler issue', or when they provide a snippet of code and…

react/react · 90 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

7onic-design-agent

Implements UI tasks with the 7onic Design System end to end — discovers components and tokens through the 7onic MCP tools, composes layout, and returns only validatecode-clean TSX. Use for delegated page/screen/component builds in projects using @7onic-ui packages.

itonys/7onic · 62 tokens

react18-batching-fixer

Automatic batching regression specialist. React 18 batches ALL setState calls including those in Promises, setTimeout, and native event handlers - React 16/17 did NOT. Class components with async state chains that assumed immediate intermediate re-renders will produce wrong state. This agent finds every vulnerable…

github/awesome-copilot · 76 tokens

react19-auditor

Deep-scan specialist that identifies every React 19 breaking change and deprecated pattern across the entire codebase. Produces a prioritized migration report at .github/react19-audit.md. Reads everything, touches nothing. Invoked as a subagent by react19-commander.

github/awesome-copilot · 61 tokens

react-build-resolver

Diagnose and fix React build failures across Vite, webpack, Next.js, CRA, Parcel, esbuild, and Bun. Handles JSX/TSX compile errors, hydration mismatches, server/client component boundary failures, missing types, and bundler-specific configuration issues with minimal, surgical changes. MUST BE USED when a React build…

affaan-m/ECC · 73 tokens