AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Codegen React

skill-initializ-forge-codegen-react · by initializ

Scaffold and iterate on Vite + React applications

No reviews yet
0 installs
9 views
0.0% view→install

Install

$ agentstack add skill-initializ-forge-codegen-react

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-initializ-forge-codegen-react)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Codegen React? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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:

  • 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.

Tool: codegenreactscaffold

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

Input:

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | projectname | string | yes | Name for the project (used in package.json) | | outputdir | string | yes | Absolute path for the project directory | | title | string | no | Page title. Default: project_name | | force | boolean | no | Overwrite non-empty directory. Default: false |

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

Response Format

{
  "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: codegenreactread

Read a file or list the project directory.

Input:

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | projectdir | string | yes | Absolute path to the project directory | | filepath | string | yes | Relative path to read, or "." for directory listing |

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

Response Format (file)

{
  "path": "src/App.jsx",
  "content": "export function App() { ... }",
  "size": 245,
  "modified": "2025-01-15T10:30:00Z"
}

Response Format (directory listing)

{
  "path": ".",
  "type": "directory",
  "files": [
    "package.json",
    "vite.config.js",
    "index.html",
    "src/main.jsx",
    "src/App.jsx",
    "src/App.css"
  ]
}

Tool: codegenreactwrite

Write or update a file in the project.

Input:

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | projectdir | string | yes | Absolute path to the project directory | | filepath | string | yes | Relative path to write | | content | string | yes | Complete file content |

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

Response Format

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

Tool: codegenreactrun

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:

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | project_dir | string | yes | Absolute path to the project directory (must contain package.json) |

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

Response Format

{
  "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

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.