create-component

create-component is a command for coding agents from armanzeroeight/fastagent-plugins. It costs 15 tokens per session (1,400 once invoked), scanned A, original, MIT.

A command that creates a new React component with a TypeScript file, an appropriate folder structure, and optional tests.

In plain words
What is it for?
Use it to scaffold simple or complex React components, add module CSS and an index file when needed, and generate a test file on request.
Why use it?
It removes the repetitive setup involved in creating components and helps keep their files organized consistently.

Command

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/armanzeroeight/fastagent-plugins/create-component
Clone the repo
git clone --depth 1 https://github.com/armanzeroeight/fastagent-plugins

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/armanzeroeight/fastagent-plugins/create-component.svg)](https://agentmods.dev/commands/armanzeroeight/fastagent-plugins/create-component)
Your own site
<a href="https://agentmods.dev/commands/armanzeroeight/fastagent-plugins/create-component"><img src="https://agentmods.dev/badge/commands/armanzeroeight/fastagent-plugins/create-component.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 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,400 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.1 $0.00015 $0.01400
Opus 5 $0.00008 $0.00700
Sonnet 5 $0.00003 $0.00280
Haiku 4.5 $0.00002 $0.00140

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

Security

Grade A, and why

create-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 2d 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/react-toolkit/commands/create-component.md · 245 lines

How it starts

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

Create React Component

Create a new React component with proper TypeScript structure.

Context

  • Current directory: !pwd
  • Existing components: !find src/components -name "*.tsx" -o -name "*.ts" 2>/dev/null | head -10

Your Task

Create a well-structured React component with TypeScript.

Arguments

  • $1: Component name (required) - PascalCase (e.g., UserProfile, TodoList)
  • $2: Component type (optional) - functional (default) or class
  • $3: Include tests (optional) - --with-tests to generate test file

Steps

  1. Determine component location:

    • Check if src/components exists
    • If not, check for src/ directory
    • Create appropriate directory structure
  2. Create component file structure:

    For simple component:

    src/components/ComponentName.tsx
    

    For complex component with styles:

    src/components/ComponentName/
    ├── ComponentName.tsx
    ├── ComponentName.module.css
    └── index.ts
    
  3. Generate functional component (default):

    interface ComponentNameProps {
      // Add props here
    }
    
    export function ComponentName({}: ComponentNameProps) {
      return (
        <div>
          <h1>ComponentName</h1>
        </div>
      );
    }
    
  4. For component with common props:

    interface ComponentNameProps {
      className?: string;
      children?: React.ReactNode;
    }
    
    export function ComponentName({ className, children }: ComponentNameProps) {
      return (
        <div className={className}>
          {children}
        </div>
      );
    }
    
  5. For component with state:

    import { useState } from 'react';
    
    interface ComponentNameProps {
      initialValue?: number;
    }
    
    export function ComponentName({ initialValue = 0 }: ComponentNameProps) {
      const [count, setCount] = useState(initialValue);
      
      return (
        <div>
          <p>Count: {count}</p>
          <button onClick={() => setCount(count + 1)}>Increment</button>
        </div>
      );
    }
    

Read the full file on GitHub · 245 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. 2d ago First seen · 245 lines · 15 tokens per session scan A ba2530d2638d

Subscribe to this mod's changes

create-component is a command published in the GitHub repository armanzeroeight/fastagent-plugins (29 stars, last pushed 1mo ago), licensed MIT. It adds 15 tokens to every session and 1,400 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 commands, from other repositories

react-test

Enforce TDD workflow for React. Write React Testing Library tests first (behavior-focused, accessibility-first), then implement components. Detects Vitest or Jest and verifies coverage targets.

DekaPrayoga/AurixAgent · 36 tokens

react-build

Fix React build failures (Vite, webpack, Next.js, CRA, Parcel, esbuild, Bun) incrementally — JSX/TSX compile errors, hydration mismatches, server/client component boundary failures, missing types. Invokes the react-build-resolver agent for minimal, surgical fixes.

DekaPrayoga/AurixAgent · 59 tokens

react-review

Comprehensive React/JSX code review for hook correctness, render performance, server/client component boundaries, accessibility, and React-specific security. Invokes the react-reviewer agent (and typescript-reviewer alongside on TSX/JSX changes).

DekaPrayoga/AurixAgent · 49 tokens

design-import

Scaffolds React components from a Claude Design handoff bundle and stops at files on disk: no stories, no tests, no pull request. Use when handed a claude.ai/design URL or a local bundle file; when that same scaffold should carry on through test generation, browser verification and an opened PR, run /ork:design-ship…

yonatangross/orchestkit · 74 tokens

tech-debt

Run bun run check:fix and then bunx knip and identify unused files and functions to refactor the project and simplify. Look at the deprecated features and confirm with the user to delete them. Look at the dependencies and remove the ones that are not needed based on knip results.

lobu-ai/lobu · 0 tokens

doctor

Diagnose installation health. Check Node, CDP bridge, rn-fast-runner (iOS), rn-android-runner (Android), maestro-runner, simulators, Metro, CDP, injected helpers, ffmpeg, physical devices, plugin version, Vercel rules sync. Reports what's missing — does NOT modify your project.

Lykhoyda/rn-dev-agent · 68 tokens