audiobash: Command for Claude Code

.claude/commands/react-component.md

react-component is a command for Claude Code from jamditis/audiobash. It costs 0 tokens per session (1,208 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/.

This is jamditis/audiobash's own configuration. It tells Claude Code how to work on audiobash 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 audiobash configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jamditis/audiobash. 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/jamditis/audiobash/master/.claude/commands/react-component.md
Clone the repo
git clone --depth 1 https://github.com/jamditis/audiobash

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/jamditis/audiobash/react-component/github.svg)](https://agentmods.dev/commands/jamditis/audiobash/react-component)
Your own site
<a href="https://agentmods.dev/commands/jamditis/audiobash/react-component"><img src="https://agentmods.dev/badge/commands/jamditis/audiobash/react-component/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 react-component

Your own site · 80×15
<a href="https://agentmods.dev/commands/jamditis/audiobash/react-component"><img src="https://agentmods.dev/badge/commands/jamditis/audiobash/react-component.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,208 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.01208
Opus 5.5 $0.00000 $0.00483
Sonnet 5.5 $0.00000 $0.00242
Haiku 4.5 $0.00000 $0.00121

Measured 2mo ago against content hash a2eb3b698b30, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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/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. 2mo ago 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 (6 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.