component-scaffold

A guide for building React components with shadcn/ui and Tailwind CSS. It covers typed properties, visual variants, shared-state compound components, accessibility, and interaction states.

In plain words
What is it for?
Use it when creating or refactoring React UI components, especially interactive widgets that need a clean interface and keyboard-accessible behavior.
Why use it?
It helps turn a rough component into a reusable one with predictable states such as focus, disabled, loading, empty, and error.

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/m-binimran/dev-pack/component-scaffold
Any agent
npx skills add m-binimran/dev-pack --skill component-scaffold
Clone the repo
git clone --depth 1 https://github.com/m-binimran/dev-pack

Made for: Claude Code, Codex.

Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 371 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.00046 $0.00371
Opus 5 $0.00023 $0.00186
Sonnet 5 $0.00009 $0.00074
Haiku 4.5 $0.00005 $0.00037

Measured 2d ago against content hash 4aa7b2d7d298, 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 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.

skills/component-scaffold/SKILL.md · 30 lines

What it actually says

component-scaffold

Build components that own their code (shadcn model), are accessible, and don't look like defaults.

Process

  1. Classify: presentational (pure, props-in) or container (data/effects)? Keep them separate.
  2. Start from primitives: shadcn/ui (Radix under the hood) for anything interactive — you get a11y for free. Customize in your own components/ui/* file; it's yours.
  3. Variants via cva: define variant/size with a brand variant wired to your theme tokens — don't ship the raw default look.
  4. Compound pattern for widgets with shared state (<Tabs><Tabs.List>…): parent owns state, children consume via context. No prop drilling.
  5. Design the states: hover, focus-visible, active, disabled, loading, empty, error — all intentional.
  6. Accessibility: real semantics, labelled controls, visible focus, keyboard operable. Icon-only buttons get an accessible name.

Output

  • The component file(s), typed props, variants, and the states handled.
  • A one-line note on which states were implemented and which are N/A.

Guardrails

  • Don't reinvent an accessible primitive Radix/shadcn already provides.
  • Don't exceed 800 lines (the file-size-guard hook blocks it) — split sub-components out.
  • No unmodified default styling passed off as finished (anti-template policy).
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 · 30 lines · 46 tokens per session scan A 4aa7b2d7d298

Subscribe to this mod's changes

component-scaffold is a skill published in the GitHub repository m-binimran/dev-pack (2 stars, last pushed 2mo ago), licensed MIT. It adds 46 tokens to every session and 371 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-31.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

material-ui-nextjs

Integrates Material UI with Next.js App and Pages routers using @mui/material-nextjs, Emotion cache providers, next/font, CSS layers with Tailwind/CSS Modules, Link component prop patterns, CSS theme variables SSR notes, and App Router useSearchParams + Suspense. Use when setting up or debugging MUI in a Next.js app.

mui/material-ui · 76 tokens

material-ui-styling

Chooses the right Material UI styling approach (sx, styled, theme overrides, global CSS) from official MUI guidance. Use when styling @mui/material components, customizing themes, overriding slots, or comparing sx vs styled.

mui/material-ui · 52 tokens

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

senior-frontend

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX…

Ohh-889/skyroc · 70 tokens

weapp-tailwindcss-lynx

为 ReactLynx + Rspeedy 配置 @weapp-tailwindcss/lynx 0.3.2 与 Tailwind CSS 4,覆盖 Rspeedy plugin、Lynx 原生 CSS、静态 className、theme 变量静态化、任意值、encoder 警告和 iOS/Android 运行端验证。Use for ReactLynx, Rspeedy, Lynx native CSS, arbitrary value compatibility, or Lynx bundle styling;不用于 React Native、uni-app App、Web 或普通小程序构建。.

sonofmagic/weapp-tailwindcss · 129 tokens