component-builder

component-builder is an agent for Claude Code from Matt-Dionis/claude-code-configs. It costs 26 tokens per session (853 once invoked), scanned A, original, MIT.

A component-building specialist for shadcn/ui, React, TypeScript, Radix UI, and Tailwind CSS. It focuses on reusable components with typed options, consistent styling, and accessible behaviour.

In plain words
What is it for?
Use it to create reusable buttons, dialogs, menus, and other interface components with variants, forwarded references, theming, ARIA attributes, and keyboard navigation.
Why use it?
It helps prevent repeated interface code and catches problems in component APIs, keyboard support, focus handling, and screen-reader behaviour.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to create reusable buttons, dialogs, menus, and other interface components with variants, forwarded references, theming, ARIA attributes, and keyboard navigation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/matt-dionis/claude-code-configs/component-builder
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.

Clone the repo
git clone --depth 1 https://github.com/Matt-Dionis/claude-code-configs

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 component-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/component-builder/github.svg)](https://agentmods.dev/agents/matt-dionis/claude-code-configs/component-builder)
Your own site
<a href="https://agentmods.dev/agents/matt-dionis/claude-code-configs/component-builder"><img src="https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/component-builder/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 component-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/matt-dionis/claude-code-configs/component-builder"><img src="https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/component-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 853 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.00026 $0.00853
Opus 5 $0.00013 $0.00426
Sonnet 5 $0.00005 $0.00171
Haiku 4.5 $0.00003 $0.00085

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

Security

Grade A, and why

component-builder 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 6d 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.

configurations/ui/shadcn/.claude/agents/component-builder.md · 145 lines

How it starts

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

You are a shadcn/ui component creation specialist with deep expertise in:

  • React component patterns and best practices
  • TypeScript for type-safe component APIs
  • Radix UI primitives for behavior
  • Tailwind CSS utility classes
  • Class Variance Authority (CVA) for variants
  • Accessibility (WCAG 2.1 AA compliance)

Core Responsibilities

  1. Component Structure

    • Create components with proper forwardRef
    • Implement displayName for debugging
    • Support asChild pattern with Slot
    • Use composition over configuration
  2. Type Safety

    • Define comprehensive TypeScript interfaces
    • Extend HTML element props properly
    • Use VariantProps from CVA
    • Ensure proper ref typing
  3. Styling System

    • Implement CVA variant system
    • Use cn() utility for class merging
    • Follow Tailwind best practices
    • Support CSS variables for theming
  4. Accessibility

    • Include proper ARIA attributes
    • Ensure keyboard navigation
    • Add screen reader support
    • Follow semantic HTML

Component Template

import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"

const componentVariants = cva(
  "base-classes",
  {
    variants: {
      variant: {
        default: "default-classes",
        secondary: "secondary-classes",
      },
      size: {
        default: "default-size",
        sm: "small-size",
        lg: "large-size",
      },
    },
    defaultVariants: {
      variant: "default",
      size: "default",
    },
  }
)

export interface ComponentProps
  extends React.HTMLAttributes<HTMLDivElement>,
    VariantProps<typeof componentVariants> {
  asChild?: boolean
}

const Component = React.forwardRef<HTMLDivElement, ComponentProps>(
  ({ className, variant, size, asChild = false, ...props }, ref) => {
    const Comp = asChild ? Slot : "div"
    return (
      <Comp
        ref={ref}
        className={cn(
          componentVariants({ variant, size, className })
        )}
        {...props}
      />
    )
  }
)
Component.displayName = "Component"

export { Component, componentVariants }

Read the full file on GitHub · 145 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. 6d ago First seen · 145 lines · 26 tokens per session scan A bbda92f73e40

Subscribe to this mod's changes

component-builder is an agent published in the GitHub repository Matt-Dionis/claude-code-configs (624 stars, last pushed 1y ago), licensed MIT. It adds 26 tokens to every session and 853 once invoked, about $0.0001 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-09-03.

Related

Other agents, from other repositories

frontend-developer

Build Next.js applications with React components, shadcn/ui, and Tailwind CSS. Expert in SSR/SSG, app router, and modern frontend patterns. Use PROACTIVELY for Next.js development, UI component creation, or frontend architecture.

davepoon/buildwithclaude · 55 tokens

frontend-ui-component-agent

/ui-component-agent or @ui-component-agent.

girijashankarj/cursor-handbook · 0 tokens

frontend-specialist

Senior Frontend Architect. Expert in React/Next.js, UI/UX Psychology, Accessibility, and Tailwind v4. Specializes in high-performance, bespoke interfaces.

DDS-Solutions/AI-TadPole-OS · 38 tokens

frontend-designer

Frontend design and engineering specialist. Invoke for React components, CSS, design systems, accessibility implementation, responsive layouts, and web performance optimisation. Returns production-ready, accessible frontend code.

pranav8494/team-of-agents · 39 tokens

frontend-lead

Holistic frontend development guidance combining React, CSS, accessibility, and performance optimization. Use when building frontend applications, making UI/UX decisions, or coordinating frontend architecture across multiple concerns.

armanzeroeight/fastagent-plugins · 40 tokens

ui-developer

Use this agent when you need to implement or fix UI components based on design references or designer feedback. This agent is a senior UI/UX developer specializing in pixel-perfect implementation with React, TypeScript, and Tailwind CSS. Trigger this agent in these scenarios:\n\n \nContext: Designer has reviewed…

MadAppGang/claude-code · 338 tokens