scaffold-component

scaffold-component is a skill for Claude Code from ea-toolkit/architecture-catalog. It costs 18 tokens per session (720 once invoked), scanned A, original, MIT.

A helper for creating a new React user-interface component together with its test file. React is a JavaScript library for building interfaces.

In plain words
What is it for?
It is for scaffolding catalog components in the right folder, with the expected TypeScript structure and a nearby test.
Why use it?
It removes the repeated setup work and helps keep components organized and tested.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Good fit It is for scaffolding catalog components in the right folder, with the expected TypeScript structure and a nearby test.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ea-toolkit/architecture-catalog/scaffold-component
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.

Any agent
npx skills add ea-toolkit/architecture-catalog --skill scaffold-component
Clone the repo
git clone --depth 1 https://github.com/ea-toolkit/architecture-catalog

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ea-toolkit/architecture-catalog/scaffold-component/github.svg)](https://agentmods.dev/skills/ea-toolkit/architecture-catalog/scaffold-component)
Your own site
<a href="https://agentmods.dev/skills/ea-toolkit/architecture-catalog/scaffold-component"><img src="https://agentmods.dev/badge/skills/ea-toolkit/architecture-catalog/scaffold-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 scaffold-component

Your own site · 80×15
<a href="https://agentmods.dev/skills/ea-toolkit/architecture-catalog/scaffold-component"><img src="https://agentmods.dev/badge/skills/ea-toolkit/architecture-catalog/scaffold-component.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 720 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.00018 $0.00720
Opus 5.5 $0.00007 $0.00288
Sonnet 5.5 $0.00004 $0.00144
Haiku 4.5 $0.00002 $0.00072

Measured 3mo ago against content hash c3f066935752, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scaffold-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 3mo 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/skills/scaffold-component/SKILL.md · 92 lines

How it starts

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

Scaffold Component

Scaffold a new React component in catalog-ui/src/components/ with a co-located test file.

Arguments

$ARGUMENTS should be a PascalCase component name (e.g., CapabilityHeatmap, DomainSummaryCard).

If no argument is provided, ask the user for a component name.

Workflow

  1. Parse component name from $ARGUMENTS. Ensure PascalCase.

  2. Determine target directory based on component purpose:

    • Graph/visualization component → catalog-ui/src/components/graphs/
    • Diagram viewer → catalog-ui/src/components/
    • Layout/navigation → catalog-ui/src/components/ (or subdirectory if pattern exists)
    • General → catalog-ui/src/components/
    • Ask the user if unclear.
  3. Read existing context:

    • Read models/registry-mapping.yaml if the component will render registry data.
    • Read an existing similar component in the target directory for pattern reference.
    • Read catalog-ui/src/lib/types.ts for TypeScript interfaces.
  4. Create component file (ComponentName.tsx):

    • Export Props interface: export interface ComponentNameProps { ... }
    • Named export (not default): export const ComponentName: React.FC<ComponentNameProps> = ...
    • CSS via --ec-* variables (never inline styles)
    • Semantic HTML (nav, main, section, article — not div for everything)
    • Accessible: aria labels on interactive elements
    • If rendering registry data: drive all behavior from schema properties (graph_rank, layer, icon), never from type name strings
  5. Create test file (ComponentName.test.tsx in same directory or __tests__/):

    • At minimum: one render/smoke test + one behavioral test
    • Use Vitest (import { describe, it, expect } from 'vitest')
    • Mock external dependencies (ReactFlow, data loaders) if needed
  6. Verify types: cd catalog-ui && npx tsc --noEmit

Template Pattern

// ComponentName.tsx
import type React from 'react';

export interface ComponentNameProps {
  // Define props here
}

export const ComponentName: React.FC<ComponentNameProps> = (props) => {
  return (
    <section aria-label="Component description">
      {/* Component content */}
    </section>
  );
};

Read the full file on GitHub · 92 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. 3mo ago First seen · 92 lines · 18 tokens per session scan A c3f066935752

Subscribe to this mod's changes

scaffold-component is a skill published in the GitHub repository ea-toolkit/architecture-catalog (41 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 720 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

scaffold-component compared with skills from other repositories

scaffold-component next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scaffold-componentea-toolkit/architecture-catalogSkill417mo agoMITA18Claude Code
astrosickn33/agentic-awesome-skillsSkill51ktodayMITA28Claude Code
storyone-ie/oneSkill135todaynoneA28Claude Code, Codex
declare-typesone-ie/oneSkill135todaynoneA49Claude Code, Codex
publishone-ie/oneSkill135todaynoneA50Claude Code, Codex
sellone-ie/oneSkill135todaynoneA47Claude Code, Codex
workflowone-ie/oneSkill135todaynoneA41Claude Code, Codex