hcc-frontend-storybook-configurator

hcc-frontend-storybook-configurator is an agent for Claude Code from RedHatInsights/platform-frontend-ai-toolkit. It costs 42 tokens per session (5,145 once invoked), scanned A, original, Apache-2.0.

A setup guide for Storybook in Red Hat Insights frontend projects. Storybook is a tool for developing and checking UI components separately from the full application.

In plain words
What is it for?
Setting up Storybook files, SCSS support, MSW request mocks, PatternFly and frontend-component mocks, the test runner, and optionally Chromatic.
Why use it?
It removes the guesswork from configuring component examples, test data, request mocks, styling, and optional visual testing.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is '../src/**/*.mdx',.

Part of the frontend-plugin plugin — 15 agents shipped together

Good fit Setting up Storybook files, SCSS support, MSW request mocks, PatternFly and frontend-component mocks, the test runner, and optionally Chromatic.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/RedHatInsights/platform-frontend-ai-toolkit
agentmods
npx agentmods add agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-storybook-configurator

Made for: Claude Code.

Or install frontend-plugin, the plugin that ships this one along with the rest of its 15 agents.

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 hcc-frontend-storybook-configurator

README.md
[![agentmods](https://agentmods.dev/badge/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-storybook-configurator/github.svg)](https://agentmods.dev/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-storybook-configurator)
Your own site
<a href="https://agentmods.dev/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-storybook-configurator"><img src="https://agentmods.dev/badge/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-storybook-configurator/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 hcc-frontend-storybook-configurator

Your own site · 80×15
<a href="https://agentmods.dev/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-storybook-configurator"><img src="https://agentmods.dev/badge/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-storybook-configurator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,145 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.00042 $0.05145
Opus 5 $0.00021 $0.02573
Sonnet 5 $0.00008 $0.01029
Haiku 4.5 $0.00004 $0.00515

Measured 12d ago against content hash c8a3f1e7d3e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

hcc-frontend-storybook-configurator 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 12d 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.

plugins/frontend/agents/hcc-frontend-storybook-configurator.md · 435 lines

How it starts

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

HCC Frontend Storybook Configurator Agent

You are a specialized agent for setting up Storybook in Red Hat Insights (HCC frontend) projects. You help developers establish a complete Storybook configuration including webpack (or the project’s builder), MSW, mocks for frontend-components, PatternFly, test-runner, and optionally Chromatic, following patterns used across the team.

Reference implementations (main sources; configs by Riccardo Forina): insights-rbac-ui (.storybook/, workflows), access-requests-frontend (.storybook/, .github/workflows). Other projects (e.g. service-accounts) have been set up based on these; adapt to each project’s constraints.

CRITICAL RULES

  1. Match the project’s setup – Prefer the latest stable Storybook and framework (e.g. @storybook/react-webpack5 for webpack apps) that the current app supports. Use whatever builder and Storybook version fit the project; project-specific or security constraints may require an older version – do not mandate a single version or builder for all repos.
  2. Always include SCSS support – in webpackFinal add a rule for style-loader, css-loader, sass-loader.
  3. Initialize MSW in previewinitialize({ onUnhandledRequest: 'bypass' }) and mswLoader in loaders.
  4. Mock frontend-components via webpack aliases – useChrome, Main, PageHeader, DateFormat, useNotifications, Unleash; paths must point to .storybook/mocks/.
  5. Preview must include PatternFly 6 stylesimport '@patternfly/react-core/dist/styles/base.css'.
  6. Create portal root for modals – in preview (or mocks) ensure #chrome-app-render-root exists in document.body.
  7. Do not overwrite existing config without reading it – always read current .storybook/main.ts and preview.tsx first and modify incrementally.
  8. test-storybook scripts – recommend test-storybook, test-storybook:fast (with excludeTags), test-storybook:ci for CI.

Read the full file on GitHub · 435 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. 12d ago First seen · 435 lines · 42 tokens per session scan A c8a3f1e7d3e6

Subscribe to this mod's changes

hcc-frontend-storybook-configurator is an agent published in the GitHub repository RedHatInsights/platform-frontend-ai-toolkit (5 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 42 tokens to every session and 5,145 once invoked, about $0.0002 per session on Opus 5. 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-31.

Related

Other agents, from other repositories

react18-class-surgeon

Class component migration specialist for React 16/17 → 18.3.1. Migrates all three unsafe lifecycle methods with correct semantic replacements (not just UNSAFE prefix). Migrates legacy context to createContext, string refs to React.createRef(), findDOMNode to direct refs, and ReactDOM.render to createRoot. Uses memory…

github/awesome-copilot · 81 tokens

react-portfolio-engineer

React portfolio/gallery sites for creatives: React 18+, Next.js App Router, image optimization.

notque/vexjoy-agent · 25 tokens

frontend-dev

Frontend Developer (Aria Chen) - React, Next.js, TypeScript, accessibility, performance.

vibeeval/vibecosystem · 22 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

pywry-builder

Builds PyWry widgets, dashboards, chat UIs, and TradingView charts end‑to‑end by orchestrating the PyWry MCP tools. Use when the user asks to build, scaffold, or iterate on a PyWry app and the work involves multiple MCP tool calls (e.g. create widget → populate data → add toolbar → wire events → export).

deeleeramone/PyWry · 81 tokens

nextjs-expert

Next.js framework strategist. Makes decisions about rendering strategies (SSR/SSG/ISR), App Router patterns, data fetching, and performance optimization. Use when designing Next.js applications, choosing rendering methods, or architecting full-stack React apps.

armanzeroeight/fastagent-plugins · 53 tokens