codegen-react

codegen-react is a skill for Claude Code, Codex from initializ/forge. It costs 14 tokens per session (1,906 once invoked), scanned A, original, Apache-2.0.

A project starter and editing workflow for building web applications with React, a JavaScript user-interface library, and Vite, a tool that runs and bundles those applications.

In plain words
What is it for?
Use it to create a new React app, start its development server, inspect project files, and make code or interface changes.
Why use it?
It removes the need to create the initial project structure and gives developers a consistent way to update files while developing.

Skill for Claude CodeCodex

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

Good fit Use it to create a new React app, start its development server, inspect project files, and make code or interface changes.

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

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 codegen-react

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/initializ/forge/codegen-react"><img src="https://agentmods.dev/badge/skills/initializ/forge/codegen-react.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,906 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 pass 7 Sept 2026
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.00014 $0.01906
Opus 5.5 $0.00006 $0.00762
Sonnet 5.5 $0.00003 $0.00381
Haiku 4.5 $0.00001 $0.00191

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

Security

Grade A, and why

codegen-react 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 2mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/codegen-react-read.sh, scripts/codegen-react-run.sh, scripts/codegen-react-scaffold.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

forge-skills/local/embedded/codegen-react/SKILL.md · 238 lines

How it starts

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

Codegen React Skill

Scaffold and iteratively build Vite + React applications. Creates a complete project structure with React 19, Vite 6, and a Forge-themed dark UI out of the box.

Quick Start

# Scaffold a new project
./scripts/codegen-react-scaffold.sh '{"project_name": "my-app", "output_dir": "/tmp/my-app"}'

# Install deps and start dev server (opens browser)
./scripts/codegen-react-run.sh '{"project_dir": "/tmp/my-app"}'

# Read a file or list the project
./scripts/codegen-react-read.sh '{"project_dir": "/tmp/my-app", "file_path": "src/App.jsx"}'

# Write/update a file (Vite hot-reloads automatically)
./scripts/codegen-react-write.sh '{"project_dir": "/tmp/my-app", "file_path": "src/App.jsx", "content": "..."}'

CRITICAL: Scaffold Conventions (DO NOT VIOLATE)

These rules prevent build errors. Violating them will break the app:

  1. NEVER modify src/main.jsx — it is the entry point and must not be changed
  2. ALWAYS use named exports: export function ComponentName() {}, NEVER export default
  3. NEVER create or import index.css — it does not exist and will cause a build error
  4. Use Tailwind CSS utility classes for all styling (loaded via CDN in index.html)
  5. Only modify src/App.jsx and create new component files under src/
  6. src/App.css exists for custom styles but prefer Tailwind classes

Code Style Guide

  • Use functional components with hooks (useState, useEffect, useRef, etc.)
  • Use named exports for components: export function App() {}
  • Keep components in separate files under src/
  • Use Tailwind CSS utility classes — the CDN is pre-loaded in index.html
  • Forge dark theme colors: bg-zinc-950 (bg), bg-zinc-900 (cards), border-zinc-800 (borders), text-zinc-200 (text), text-zinc-400 (muted), bg-indigo-500 (accent)
  • Prefer const over let; never use var

Tailwind CSS Reference

Tailwind is loaded via CDN. Use utility classes directly in JSX className attributes:

Read the full file on GitHub · 238 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 238 lines · 14 tokens per session scan A 4a95595faec8

Subscribe to this mod's changes

codegen-react is a skill published in the GitHub repository initializ/forge (235 stars, last pushed yesterday), licensed Apache-2.0. It adds 14 tokens to every session and 1,906 once invoked, about $0.0001 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

codegen-react compared with skills from other repositories

codegen-react next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codegen-reactinitializ/forgeSkill235yesterdayApache-2.0A14Claude Code, Codex
openhuetrpc-group/trpc-agent-goSkill1.9kyesterdayApache-2.0A15Claude Code, Codex
camsnaptrpc-group/trpc-agent-goSkill1.9kyesterdayApache-2.0A16Claude Code, Codex
eightctltrpc-group/trpc-agent-goSkill1.9kyesterdayApache-2.0A16Claude Code, Codex
bluclitrpc-group/trpc-agent-goSkill1.9kyesterdayApache-2.0A19Claude Code, Codex
compiler-orchestratorreact/reactSkill252kyesterdayMITA38Claude Code
migrate-radix-to-baseshadcn-ui/uiSkill127kyesterdayMITA61Cursor