component-scaffold

component-scaffold is a skill for Claude Code, Codex from zakelfassi/skills-driven-development. It costs 42 tokens per session (487 once invoked), scanned A, original, MIT.

A procedure for creating a React UI component with its TypeScript component file, test, Storybook story, styles, and export in one directory.

In plain words
What is it for?
Use it to scaffold page, feature, or UI components with props, a basic test, stories for important variants, and a barrel export.
Why use it?
It keeps new components consistent with the project's folder structure, naming rules, testing approach, and reusable examples.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to scaffold page, feature, or UI components with props, a basic test, stories for important variants, and a barrel export.

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

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zakelfassi/skills-driven-development/component-scaffold"><img src="https://agentmods.dev/badge/skills/zakelfassi/skills-driven-development/component-scaffold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 487 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.00042 $0.00487
Opus 5.5 $0.00017 $0.00195
Sonnet 5.5 $0.00008 $0.00097
Haiku 4.5 $0.00004 $0.00049

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

Security

Grade A, and why

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

examples/webapp-starter/skills/component-scaffold/SKILL.md · 63 lines

What it actually says

Component Scaffold

Create a new React component following project conventions.

Inputs

  • Component name (PascalCase, e.g., UserCard)
  • Component type: page | feature | ui
  • Props (optional: list of prop names + types)

Steps

  1. Determine the directory

    • page → src/pages/{ComponentName}/
    • feature → src/features/{feature-area}/components/{ComponentName}/
    • ui → src/components/ui/{ComponentName}/
  2. Create the component file

    {dir}/{ComponentName}.tsx
    
    • Functional component with TypeScript props interface
    • Export as named export (not default)
  3. Create the test file

    {dir}/{ComponentName}.test.tsx
    
    • Import from Vitest + Testing Library
    • At minimum: renders without crashing + snapshot
  4. Create the story file

    {dir}/{ComponentName}.stories.tsx
    
    • Default story + one variant per significant prop
  5. Create the barrel export

    {dir}/index.ts
    
    • Re-export the component

Conventions

  • All components are functional (no class components)
  • Props interfaces are named {ComponentName}Props
  • Co-locate everything: component, test, story, styles in one directory
  • Use Tailwind for styling (no CSS modules — see archived skill css-module-setup)

Edge Cases

  • Component already exists: Do not overwrite. Ask the user if they want to update or rename.
  • Nested feature components: Use the feature area as a parent directory (e.g., features/auth/components/LoginForm/)
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 First seen · 63 lines · 42 tokens per session scan A ad66b5048235

Subscribe to this mod's changes

component-scaffold is a skill published in the GitHub repository zakelfassi/skills-driven-development (18 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 487 once invoked, about $0.0002 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

Other skills, from other repositories

web-design-engineer

Build or redesign polished browser-rendered visual artifacts with HTML/CSS/JavaScript/React: pages, dashboards, prototypes, slide decks, animations, UI mockups, and data visualizations. Use for visual front-end creation, design-system exploration, design critique, or explicit browser acceptance / QA of a web artifact.…

ConardLi/garden-skills · 96 tokens

nextjs-on-cloudflare

Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext. Use when starting a Next.js project on Cloudflare, moving an existing app to Workers, choosing between vinext and OpenNext, or setting up vinext for Workers. For setup, migration, or deployment, install vinext's upstream skills with npx skills…

cloudflare/skills · 96 tokens

skillshare-ui-website-style

Skillshare frontend design system for the React dashboard (ui/) and Docusaurus website (website/). Use this skill whenever you: build or modify a dashboard page or component in ui/src/, style or layout website pages or custom CSS in website/, create new React components for the dashboard, add pages to the dashboard…

runkids/skillshare · 162 tokens

remotion-best-practices

Best practices and domain knowledge for building videos programmatically with Remotion (videos in React/TypeScript, rendered to MP4). Use whenever writing or editing Remotion code — scaffolding a video project, animating with interpolate/spring over useCurrentFrame(), sequencing scenes and transitions…

guanyang/open-agent-hub · 116 tokens

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance…

CherryHQ/cherry-studio · 67 tokens

airflow-plugins

Builds Airflow 3.1+ plugins that embed FastAPI apps, custom UI pages, React components, middleware, macros, and operator links directly into the Airflow UI. Use when building anything custom inside Airflow 3.1+ that involves Python and a browser-facing interface - creating an Airflow plugin, adding a custom UI page or…

astronomer/agents · 147 tokens