react-19-component-scaffolder

react-19-component-scaffolder is a skill for Claude Code, Codex from pproenca/dot-skills. It costs 153 tokens per session (1,967 once invoked), scanned A, original, MIT.

A template-based generator for React 19 and React 19.2 TypeScript code, including components, pages, hooks, providers, reducers, and form actions.

In plain words
What is it for?
Use it when creating a new React component, route, client section, form, context provider, custom hook, reducer, or document metadata.
Why use it?
It provides a consistent starting structure for newer React patterns, reducing repeated setup when adding common pieces to an application.

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/pproenca/dot-skills/react-19-component-scaffolder
Any agent
npx skills add pproenca/dot-skills --skill react-19-component-scaffolder
Clone the repo
git clone --depth 1 https://github.com/pproenca/dot-skills

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 react-19-component-scaffolder

README.md
[![agentmods](https://agentmods.dev/badge/skills/pproenca/dot-skills/react-19-component-scaffolder.svg)](https://agentmods.dev/skills/pproenca/dot-skills/react-19-component-scaffolder)
Your own site
<a href="https://agentmods.dev/skills/pproenca/dot-skills/react-19-component-scaffolder"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/react-19-component-scaffolder.svg" alt="Measured on agentmods" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,967 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.00153 $0.01967
Opus 5 $0.00077 $0.00983
Sonnet 5 $0.00031 $0.00393
Haiku 4.5 $0.00015 $0.00197

Measured 5d ago against content hash 0e4752edc573, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

react-19-component-scaffolder 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 5d 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/.curated/react-19-component-scaffolder/SKILL.md · 98 lines

How it starts

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

React 19 Component Scaffolder

Generate React 19/19.2 components, pages, hooks, and supporting files from parameterized templates. Every template enforces the patterns codified in the sibling react skill — refs as regular props (never forwardRef), Context rendered directly as provider (never .Provider), form actions with useActionState + useFormStatus, inline document metadata, useSyncExternalStore for external subscriptions, and YMNNAE-compliant hook bodies.

When to Apply

  • Creating a new React component (Server, Client, or unspecified — defaults to Server)
  • Adding a new route/page in a React 19 app
  • Building a form that needs progressive enhancement, optimistic UI, or pending state
  • Setting up a new Context provider with state + dispatch split
  • Writing a custom hook that subscribes to external state or wraps async work
  • Modeling complex state with a typed reducer
  • Adding document metadata (<title>, <meta>, <link>) or resource hints (preload, preconnect, prefetchDNS)
  • The user says "scaffold", "boilerplate", "generate", "new component", "new page", "new hook", or names any of the template types

Available Templates

All filenames are kebab-case; the exported React identifier ({Name}, use{Name}) is PascalCase / camelCase.

# Template When to use Files generated
1 function-component Generic reusable component (works in Server or Client) {name-kebab}.tsx, {name-kebab}.test.tsx
2 server-component-page Route page with server data fetch + Suspense + metadata page.tsx
3 client-island 'use client' interactivity nested inside a server page {name-kebab}-island.tsx, {name-kebab}-island.test.tsx
4 form-action Mutation form with useActionState + Zod schema + server action {name-kebab}-form.tsx, actions.ts, schema.ts
5 context-provider Shared state with state/dispatch split and accessor hook {name-kebab}-context.tsx
6 custom-hook YMNNAE-compliant hook (external subscription or composed effect) use-{name-kebab}.ts, use-{name-kebab}.test.ts
7 reducer Typed reducer with discriminated-union actions + exhaustive switch {name-kebab}-reducer.ts, {name-kebab}-reducer.test.ts
8 head-and-hints Document metadata + resource hints for above-the-fold assets {name-kebab}-head.tsx

Read the full file on GitHub · 98 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. 5d ago First seen · 98 lines · 153 tokens per session scan A 0e4752edc573

Subscribe to this mod's changes

react-19-component-scaffolder is a skill published in the GitHub repository pproenca/dot-skills (202 stars, last pushed 20d ago), licensed MIT. It adds 153 tokens to every session and 1,967 once invoked, about $0.0008 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

client-setup

Create a vanilla tRPC client with createTRPCClient (), configure link chain with httpBatchLink/httpLink, dynamic headers for auth, transformer on links (not client constructor). Infer types with inferRouterInputs and inferRouterOutputs. AbortController signal support. TRPCClientError typing.

trpc/trpc · 63 tokens

adapter-express

Mount tRPC as Express middleware with createExpressMiddleware() from @trpc/server/adapters/express. Access Express req/res in createContext via CreateExpressContextOptions. Mount at a path prefix like app.use('/trpc', ...). Avoid global express.json() conflicting with tRPC body parsing for FormData.

trpc/trpc · 67 tokens

trpc-router

Entry point for all tRPC skills. Decision tree routing by task: initTRPC.create(), t.router(), t.procedure, createTRPCClient, adapters, subscriptions, React Query, Next.js, links, middleware, validators, error handling, caching, FormData.

trpc/trpc · 59 tokens

frontend-conventions

Coding conventions, architecture patterns, and testing rules for the SkillHub React frontend. Ensures agents follow Feature-Sliced Design and use the generated OpenAPI types.

iflytek/skillhub · 36 tokens

frontend-dev-guidelines

Frontend development guidelines for React/TypeScript applications. Modern patterns including Suspense, lazy loading, useSuspenseQuery, file organization with features directory, MUI v7 styling, TanStack Router, performance optimization, and TypeScript best practices. Use when creating components, pages, features…

diet103/claude-code-infrastructure-showcase · 76 tokens

fast-typescript-check

Keep www-sacred's TypeScript fast to type-check and fast to run. Use when touching the ASCII/canvas animation components (the only real per-frame code here), tightening type-check wall-clock, or auditing a change for runtime or compiler regressions. Scoped to this repo — a React 19 / Next.js 16 component library plus…

internet-development/www-sacred · 84 tokens