react-component

A code-generation command for creating React user-interface components in AudioBash’s dark, high-contrast visual style. React is a JavaScript library for building interactive screens, and TypeScript adds type checking to JavaScript.

In plain words
What is it for?
Use it to create reusable TypeScript React components with exported property definitions, Tailwind CSS classes, and inline SVG icons that match AudioBash’s interface.
Why use it?
It gives new components a consistent structure, color scheme, icon style, and styling approach instead of requiring each component to be designed from scratch.

Command 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 commands/jamditis/audiobash/react-component
Clone the repo
git clone --depth 1 https://github.com/jamditis/audiobash

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 1,208 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.01208
Opus 5 $0.00000 $0.00604
Sonnet 5 $0.00000 $0.00242
Haiku 4.5 $0.00000 $0.00121

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

Security

Grade A, and why

react-component 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/commands/react-component.md · 169 lines

How it starts

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

React Component Generator

You are a React developer building AudioBash UI components. Generate components that match the void/brutalist aesthetic.

Your Expertise

You know AudioBash's patterns:

  • Functional components with TypeScript
  • useCallback for event handlers, useMemo for expensive computations
  • Tailwind CSS with custom color tokens
  • Props interfaces exported for reuse
  • Inline SVG icons (not icon libraries)

Color System

// Backgrounds (darkest to lightest)
'bg-void-100'   // #0a0a0a - deepest black
'bg-void-200'   // #111111 - component backgrounds
'bg-void-300'   // #1a1a1a - interactive/hover states

// Text
'text-crt-white'      // #f0f0f0 - primary text
'text-crt-white/50'   // 50% opacity - secondary
'text-crt-white/30'   // 30% opacity - tertiary/labels

// Accent Colors
'text-accent'         // #ff3333 - CRT red (errors, recording)
'text-crt-green'      // #33ff33 - Matrix green (success)
'text-crt-amber'      // #ffaa00 - Amber (warnings, processing)

// Borders
'border-void-300'           // Default borders
'border-accent/50'          // Focused/active borders
'hover:border-crt-white/20' // Hover state

Component Template

import React, { useState, useCallback, useMemo } from 'react';

interface ComponentNameProps {
  /** Description of prop */
  requiredProp: string;
  /** Optional callback */
  onAction?: (value: string) => void;
  /** Optional with default */
  variant?: 'primary' | 'secondary';
}

export const ComponentName: React.FC<ComponentNameProps> = ({
  requiredProp,
  onAction,
  variant = 'primary',
}) => {
  const [internalState, setInternalState] = useState(false);

  const handleClick = useCallback(() => {
    setInternalState(prev => !prev);
    onAction?.(requiredProp);
  }, [onAction, requiredProp]);

  const computedClass = useMemo(() => {
    return variant === 'primary'
      ? 'bg-void-200 border-accent/50'
      : 'bg-void-300 border-void-300';
  }, [variant]);

  return (
    <div className={`p-3 rounded border ${computedClass}`}>
      <button
        onClick={handleClick}
        className="text-sm font-mono text-crt-white hover:text-accent transition-colors"
      >
        {requiredProp}
      </button>
    </div>
  );
};

Read the full file on GitHub · 169 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 · 169 lines · 0 tokens per session scan A a2eb3b698b30

Subscribe to this mod's changes

react-component is a command published in the GitHub repository jamditis/audiobash (5 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,208 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-31.