Agent skill

Codegen React

by initializ in initializ/forge

Scaffold and iterate on Vite + React applications. An agent skill from initializ/forge.

Apache-2.0Auto-check passedDevelopment

Install Codegen React

skills CLI
$ npx skills add initializ/forge --skill codegen-react -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install initializ/forge codegen-react --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/initializ/forge.git skills-src && mkdir -p .claude/skills && cp -r skills-src/forge-skills/local/embedded/codegen-react .claude/skills/codegen-react && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codegen-react
GitHub stars
223
Token cost
~1.8k tokens
SKILL.md length
667 words
Files
5 (incl. scripts)
Skills in repo
15
Repo updated
First seen
Licence
Apache-2.0

At a glance

Scaffold and iterate on Vite + React applications. An agent skill from initializ/forge.

  • Works in 6 steps: NEVER modify src/main.jsx — it is the… → ALWAYS use named exports: export… → NEVER create or import index.css — it… → …
  • Tasks that involve Project scaffolding
  • SKILL.md covers Quick Start, CRITICAL: Scaffold Conventions…, Code Style Guide and Tailwind CSS Reference, plus 7 more sections
  • Runs Shell scripts from its folder; calls npm

What it does

Codegen React is an agent skill from initializ/forge. Scaffold and iterate on Vite + React applications

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts (for example `scripts/codegen-react-read.sh`, `scripts/codegen-react-run.sh` and `scripts/codegen-react-scaffold.sh`).

It sits in Development, covering Project scaffolding. It works with React, Vite and Tailwind CSS. The repository describes itself as: Forge is the open-source runtime for Anthropic's Agent Skills standard — built for the agent that runs next to a service, in your environment, on infrastructure you already… The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Project scaffolding

Example prompts

  • “/codegen-react”

Requirements

  • Node.js
  • A Bash shell

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit 3c608d8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codegen React loads about 1.8k tokens when it runs. Until then it costs about 16 tokens; SKILL.md has 667 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~16
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from initializ/forge at commit 3c608d8, republished under its Apache-2.0 licence (© initializ). 667 words, ~1,820 tokens.

Download SKILL.mdSave it as .claude/skills/codegen-react/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
codegen-react
description
Scaffold and iterate on Vite + React applications
icon
⚛️
category
developer
tags
code-generation, frontend, react, vite, ui

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

bash
# 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:

  • Layout: flex, grid, gap-4, max-w-4xl, mx-auto, px-6, py-12
  • Colors: bg-zinc-950, bg-zinc-900, text-zinc-200, text-zinc-400, bg-indigo-500
  • Borders: border, border-zinc-800, rounded-lg, shadow-lg
  • Typography: text-3xl, font-bold, text-center, font-mono
  • Interactive: hover:bg-indigo-400, transition-colors, cursor-pointer

Do NOT write custom CSS classes when Tailwind utilities exist. Do NOT create new .css files.

Safety Constraints

  • Output directory must be under $HOME or /tmp
  • Non-empty directories require force: true to overwrite
  • Path traversal (.., absolute paths) is rejected in read/write operations
  • No network calls during scaffold (all files generated locally)

Iteration Workflow

  1. Scaffold the project with codegen_react_scaffold
  2. Run the dev server with codegen_react_run — installs deps and opens the browser
  3. Read files to understand current state with codegen_react_read
  4. Write updated files with codegen_react_write — Vite hot-reloads automatically
  5. Repeat steps 3-4 to iterate on the UI

When to Use

Use codegen-react when the user wants:

  • A full React application with build tooling (Vite)
  • Component-based architecture with JSX
  • Hot module replacement during development
  • npm package ecosystem access

For simpler needs (single HTML file, no build step), use codegen-html instead.

Show full SKILL.md (297 more words)Show less

Tool: codegen_react_scaffold

Create a new Vite + React project with Forge-themed dark UI.

Input:

ParameterTypeRequiredDescription
project_namestringyesName for the project (used in package.json)
output_dirstringyesAbsolute path for the project directory
titlestringnoPage title. Default: project_name
forcebooleannoOverwrite non-empty directory. Default: false

Output: JSON object with status, output_dir, and list of files created.

Response Format
json
{
  "status": "created",
  "output_dir": "/tmp/my-app",
  "project_name": "my-app",
  "files": [
    "package.json",
    "vite.config.js",
    "index.html",
    "src/main.jsx",
    "src/App.jsx",
    "src/App.css",
    ".gitignore"
  ]
}

Tool: codegen_react_read

Read a file or list the project directory.

Input:

ParameterTypeRequiredDescription
project_dirstringyesAbsolute path to the project directory
file_pathstringyesRelative path to read, or "." for directory listing

Output: JSON object with path, content (or listing), size, and modified timestamp.

Response Format (file)
json
{
  "path": "src/App.jsx",
  "content": "export function App() { ... }",
  "size": 245,
  "modified": "2025-01-15T10:30:00Z"
}
Response Format (directory listing)
json
{
  "path": ".",
  "type": "directory",
  "files": [
    "package.json",
    "vite.config.js",
    "index.html",
    "src/main.jsx",
    "src/App.jsx",
    "src/App.css"
  ]
}

Tool: codegen_react_write

Write or update a file in the project.

Input:

ParameterTypeRequiredDescription
project_dirstringyesAbsolute path to the project directory
file_pathstringyesRelative path to write
contentstringyesComplete file content

Output: JSON object with path, action (created/updated), and size.

Response Format
json
{
  "path": "src/App.jsx",
  "action": "updated",
  "size": 312
}

Tool: codegen_react_run

Install dependencies and start the Vite dev server. Automatically opens the browser.

Call this tool after scaffolding to get the app running. It installs node_modules (if not already present) and starts npm run dev in the background. Vite hot-reloads on file changes, so subsequent codegen_react_write calls update the browser automatically.

Input:

ParameterTypeRequiredDescription
project_dirstringyesAbsolute path to the project directory (must contain package.json)

Output: JSON object with status, url, pid, and install status.

Response Format
json
{
  "status": "running",
  "url": "http://localhost:3000",
  "pid": 12345,
  "project_dir": "/tmp/my-app",
  "install": "installed"
}
Tips
  • Call this once after codegen_react_scaffold — the server stays running
  • After the server is running, just use codegen_react_write to update files — Vite hot-reloads automatically
  • The install field is "installed" on first run and "skipped" on subsequent runs
  • The pid can be used to stop the server later with kill <pid>

© initializ, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts) in forge-skills/local/embedded/codegen-react of initializ/forge.

  • SKILL.md
  • scripts/codegen-react-read.sh
  • scripts/codegen-react-run.sh
  • scripts/codegen-react-scaffold.sh
  • scripts/codegen-react-write.sh

Open the folder on GitHubat commit 3c608d8

Compare with similar skills

Codegen React next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codegen React compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codegen React this skillinitializ/forge223—~1.8kAutomated safety check: PassApache-2.0
LangBot Core Developmentlangbot-app/LangBot18k—~1.4kAutomated safety check: NotesApache-2.0
Rtdfany-tdf/any-tdf779—~1.1kAutomated safety check: PassMIT
Admin Template Project Initializersouthliu/south-admin-react580—~519Automated safety check: PassMIT
Cleanup Specialistahaodev/shadmin174—~1.3kAutomated safety check: PassMIT
Pixijs Createpixijs/pixijs-skills347—~3.1kAutomated safety check: PassMIT

Similar skills

  • LangBot Core Development

    langbot-app/LangBot

    Covers developing the LangBot core backend and web UI: dev setup, repo layout, API auth types, adding endpoints, migrations and keeping the MCP server in step.

    18k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check: notes
  • Rtdf

    any-tdf/any-tdf

    Build, review, and troubleshoot RTDF React applications using exact component APIs, themes, icons, localization, and scaffolding.

    779 GitHub stars~1.1k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Admin Template Project Initializer

    southliu/south-admin-react

    Removes the south-admin-react template's demo pages, components and menu entries, after a dry-run preview and your confirmation, and cleans up the matching imports.

    580 GitHub stars~519 tokensUpdated 17 days ago
    Frontend & DesignAuto-check passed
  • Cleanup Specialist

    ahaodev/shadmin

    Safe cleanup of Shadmin's Go backend, React frontend, Go CLI, and docs — remove dead code, consolidate duplication, and improve maintainability without changing behavior or adding features.

    174 GitHub stars~1.3k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Pixijs Create

    pixijs/pixijs-skills

    A skill your agent uses when scaffolding a new PixiJS v8 project with the create-pixi CLI or adding PixiJS to an existing project.

    347 GitHub stars~3.1k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Convex Quickstart

    waynesutton/markdown-site

    Initialize a new Convex project from scratch or add Convex to an existing app.

    628 GitHub stars~1.2k tokensUpdated 4 mo ago
    Frontend & DesignAuto-check: notes

More from initializ/forge

All 15 skills in this repo
  • Code Plan

    initializ/forge

    Turn a task description and repository into a structured implementation plan (files to create, files to modify, tests to add, risks).

    223 GitHub stars~1.9k tokensUpdated 6 days ago
    Auto-check passed
  • Code Review

    initializ/forge

    AI-powered code review for diffs and individual files using LLM analysis

    223 GitHub stars~3k tokensUpdated 6 days ago
    Auto-check passed
  • Codegen HTML

    initializ/forge

    Scaffold and iterate on standalone Preact + HTM applications with zero build dependencies

    223 GitHub stars~1.5k tokensUpdated 6 days ago
    Auto-check passed
  • Code Agent

    initializ/forge

    General-purpose coding agent that reads, writes, and edits code, and searches codebases.

    223 GitHub stars~2.5k tokensUpdated 6 days ago
    Auto-check: warnings
  • K8s Cost Visibility

    initializ/forge

    Estimate Kubernetes infrastructure costs by querying cluster node, pod, PVC/PV, and LoadBalancer data, applying cloud pricing models, and producing cost attribution reports with storage and…

    223 GitHub stars~2.7k tokensUpdated 6 days ago
    Auto-check passed
  • K8s Pod Rightsizer

    initializ/forge

    Analyze Kubernetes workload metrics and produce policy-constrained CPU/memory rightsizing recommendations with optional patch generation and rollback-safe apply.

    223 GitHub stars~4.3k tokensUpdated 6 days ago
    Auto-check passed

Questions about Codegen React

What does Codegen React do?

Scaffold and iterate on Vite + React applications. An agent skill from initializ/forge. Codegen React is an agent skill from initializ/forge.

When should I use Codegen React?

Codegen React fits situations like: tasks that involve Project scaffolding.

How do I install Codegen React in Claude Code?

Run `npx skills add initializ/forge --skill codegen-react -a claude-code`. Or copy the skill folder (forge-skills/local/embedded/codegen-react in initializ/forge) into .claude/skills/codegen-react in your project. Claude Code loads it when a task matches its description.

How do I install Codegen React in Codex?

Run `npx skills add initializ/forge --skill codegen-react -a codex`. Or copy the skill folder (forge-skills/local/embedded/codegen-react in initializ/forge) into .agents/skills/codegen-react in your project. Codex loads it when a task matches its description.

Can I use Codegen React in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add initializ/forge --skill codegen-react -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codegen-react, .gemini/skills/codegen-react, .github/skills/codegen-react and .opencode/skills/codegen-react in your project.

What does Codegen React need to run?

Going by SKILL.md and its folder, Codegen React needs a shell for the scripts in its folder and the command-line tools its instructions call (npm). Our summary lists: Node.js; A Bash shell.

Does Codegen React access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Codegen React safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Codegen React use?

Codegen React is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codegen React use?

About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Codegen React?

Skills that share tags, products or a category with Codegen React: LangBot Core Development (langbot-app/LangBot, 18k stars), Rtdf (any-tdf/any-tdf, 779 stars), Admin Template Project Initializer (southliu/south-admin-react, 580 stars) and Cleanup Specialist (ahaodev/shadmin, 174 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codegen React?

initializ (a GitHub organization) maintains it in initializ/forge, which has 223 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 1, 2026.

Source: initializ/forge on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.