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

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 skills/zakelfassi/skills-driven-development/component-scaffold
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.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.svg" alt="Measured on agentmods" 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. 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 $0.00042 $0.00487
Opus 5 $0.00021 $0.00244
Sonnet 5 $0.00008 $0.00097
Haiku 4.5 $0.00004 $0.00049

Measured 3d ago against content hash ad66b5048235, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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

    • pagesrc/pages/{ComponentName}/
    • featuresrc/features/{feature-area}/components/{ComponentName}/
    • uisrc/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. 3d 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 1mo ago), licensed MIT. It adds 42 tokens to every session and 487 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

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

webflow-cli:code-component

Create and deploy reusable React components for Webflow Designer. Configure existing React projects with webflow.json, build and bundle code, validate output, and deploy to workspace using library share. Use when building custom components for designers.

webflow/webflow-skills · 51 tokens

webflow-code-component:convert-component

Convert an existing React component into a Webflow Code Component. Analyzes TypeScript props, maps to Webflow prop types, generates the .webflow.tsx definition file, and identifies required modifications.

webflow/webflow-skills · 49 tokens

webflow-cli:devlink

Export Webflow Designer components to React/Next.js code for external projects. Configure devlink settings in webflow.json, sync design updates with devlink sync, validate generated code, show diffs, and provide integration examples. Use when building with Webflow designs in React/Next.js.

webflow/webflow-skills · 65 tokens

webflow-code-component:component-scaffold

Generate new Webflow Code Component boilerplate with React component, definition file, and optional styling. Automatically checks prerequisites and can set up missing config/dependencies.

webflow/webflow-skills · 40 tokens

webflow-code-component:component-audit

Audit Webflow Code Components for architecture decisions - prop exposure, state management, slot opportunities, and Shadow DOM compatibility. Focused on Webflow-specific patterns, not generic React best practices.

webflow/webflow-skills · 46 tokens