new-component

new-component is a skill for Claude Code from gaia-react/gaia. It costs 108 tokens per session (1,002 once invoked), scanned A, original, MIT.

A guided file generator for new React user-interface components. It can create the component, an optional Storybook example, and Vitest tests, including an accessibility check.

In plain words
What is it for?
Use it to scaffold buttons, cards, forms, or other components under the project's components directory, with typed properties and optional stories or tests.
Why use it?
It removes repetitive setup and helps new components follow the project's folder, typing, story, and testing conventions.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; names the AskUserQuestion tool.

Good fit Use it to scaffold buttons, cards, forms, or other components under the project's components directory, with typed properties and optional stories or tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gaia-react/gaia/new-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 gaia-react/gaia --skill new-component
Clone the repo
git clone --depth 1 https://github.com/gaia-react/gaia

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gaia-react/gaia/new-component"><img src="https://agentmods.dev/badge/skills/gaia-react/gaia/new-component.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,002 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
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.00108 $0.01002
Opus 5.5 $0.00043 $0.00401
Sonnet 5.5 $0.00022 $0.00200
Haiku 4.5 $0.00011 $0.00100

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

Security

Grade A, and why

new-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 1mo 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.

frontend/.claude/skills/new-component/SKILL.md · 34 lines

How it starts

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

new-component

Workflow

  1. Registry check first. Before writing any component by hand, check whether shadcn has it: pnpm shadcn view <name> for a known item, or pnpm shadcn search (for example pnpm shadcn search dialog) to look. A registry counterpart means a button, dialog, tabs, popover, select, table and the like.
  2. If the registry has it, run pnpm shadcn add <name>. The file lands flat in app/components/ui/<name>.tsx and is vendored: do not edit it (see frontend/.claude/rules/shadcn-ui.md). Then compose the added component in a GAIA component or page rather than hand-writing a replacement; add app/components/ui/tests/<name>.stories.tsx for the new ui file. Stop here unless the user still needs a GAIA component around it.
  3. Only when the registry has no counterpart, or the request is app logic around ui parts: confirm with user via AskUserQuestion: name (PascalCase or kebab-case; the folder is kebab-case), parent dir (default app/components), props (or "none").
  4. Run from the repo root: ./.gaia/cli/gaia scaffold component <Name> [flags] (the package comes from the registry, not the working directory).
  5. Verify: pnpm typecheck clean. Open the new files, sanity-check the props.
  6. If user wants more (variants, conditional rendering, complex children): edit the generated files. The skill does not regenerate. Before hand-editing, read one or two existing components with a similar shape and follow their pattern; style with role tokens and cva for variants (frontend/.claude/skills/tailwind/SKILL.md).

Adopter notes

  • Registry hooks land in ~/hooks as kebab-case use-*.ts files, which GAIA's layout accepts.
  • The utils alias in components.json is required by the config schema but unused: registry files import cn from the cn package, so shadcn add writes no util file.

Flags

  • --no-story is refused (exit 1, nothing written): the story is the component's test, so a component cannot be scaffolded without one
  • --parent <dir>, non-default parent dir, an existing app/components[/...] folder (e.g. app/components/form) or app/pages/<path> to colocate the component in a page folder. A parent equal to or under app/components/ui, or outside app/components and app/pages, is refused; the layout rule is in frontend/.claude/rules/coding-guidelines-react.md
  • --props "a:string,b:number", typed props rendered as a Props alias and destructured in the signature. Only top-level commas separate props, so comma-bearing types (Record<K, V>, (a, b) => void, tuples) are supported within a single entry.

Read the full file on GitHub · 34 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. 1mo ago Changed · -2 lines 1d7ef3aa705f
  2. 1mo ago Changed · +1 tokens per session 9c2366b6b8e5
  3. 1mo ago Changed · +7 lines · +27 tokens per session da720fc24612
  4. 1mo ago Changed 0e9ffd354eda
  5. 1mo ago Changed f983a63392e3
  6. 2mo ago Changed 746bc1fe163d
  7. 3mo ago First seen · 29 lines · 80 tokens per session scan A 3954f0933df3

Subscribe to this mod's changes

new-component is a skill published in the GitHub repository gaia-react/gaia (26 stars, last pushed 1mo ago), licensed MIT. It adds 108 tokens to every session and 1,002 once invoked, about $0.0004 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

new-component compared with skills from other repositories

new-component next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
new-componentgaia-react/gaiaSkill261mo agoMITA108Claude Code
writing-react-native-storybook-storiesstorybookjs/react-nativeSkill1.3ktodayMITA83Claude Code
setup-react-native-storybookstorybookjs/react-nativeSkill1.3ktodayMITA102Claude Code
upgrading-react-native-storybookstorybookjs/react-nativeSkill1.3ktodayMITA151Claude Code
typescript-advanced-typesbartstc/vite-ts-react-templateSkill1243d agoMITA57Claude Code, Codex
writing-specbartstc/vite-ts-react-templateSkill1243d agoMITA69Claude Code, Codex
e2e-testingbartstc/vite-ts-react-templateSkill1243d agoMITA49Claude Code