react-generate-skill

react-generate-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 145 tokens per session (3,783 once invoked), scanned A, original, Apache-2.0.

A guided generator for React 18, TypeScript, Vite, and Zustand projects. It plans the application, creates its project structure and configuration, and sets up themes, layouts, assets, and development standards.

In plain words
What is it for?
Use it to start a React single-page application, create its initial files, configure Vite and TypeScript, set up authentication and HTTP request patterns, design core pages, and verify the project.
Why use it?
It turns a broad React idea into a consistent starting application and provides prescribed patterns for requests, authentication, errors, and API responses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to start a React single-page application, create its initial files, configure Vite and TypeScript, set up authentication and HTTP request patterns, design core pages, and verify the project.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/react-generate-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/react-generate-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,783 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.00145 $0.03783
Opus 5.5 $0.00058 $0.01513
Sonnet 5.5 $0.00029 $0.00757
Haiku 4.5 $0.00015 $0.00378

Measured 23d ago against content hash 58cdb3ee13c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

react-generate-skill 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 23d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (references/code-examples/stores/appStore.ts, references/code-examples/stores/userStore.ts, references/code-examples/types/api.ts, …), 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

frontend/react/react-generate-skill/SKILL.md · 412 lines

How it starts

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

React Generate Skill

⚠️ 重要:本 Skill 严格依赖 frontend-request-skill

本 Skill 不重新发明请求层。所有 HTTP / 错误处理 / 鉴权相关代码必须复用 frontend-request-skill 的标准实现:

react-generate-skill 输出 对应 frontend-request-skill 标准
src/api/request.ts frontend-request-skill/references/frontend-spec.md(fetch 标准实现)
src/services/auth.service.ts frontend-request-skill/references/auth-patterns.md(Token 刷新队列)
src/utils/{error,toast,auth}.ts frontend-request-skill/references/error-handling.md + frontend-request-skill/references/auth-patterns.md
src/config/{api,error}.config.ts frontend-request-skill/references/frontend-spec.md(BASE_URL + ERROR_CODE_MAP)
src/hooks/useAuth.ts frontend-request-skill/references/auth-patterns.md
响应信封 { code, message, data } 与 各 init-skill 内置的统一响应规范 一致

接入本 Skill 前,请先阅读 frontend-request-skill 的 SKILL.md 与核心 reference。


Overview

This skill transforms a vague React project idea into a production-ready React 18 + TypeScript SPA with consistent architecture, design tokens, static assets, and coding standards.

  1. Pre-development: brainstorm, scope, and produce a detailed specification.
  2. Project initialization: scaffold the project, directory structure, CLAUDE.md, AGENTS.md, tsconfig.json, vite.config.ts.
  3. Development: install frontend-request-skill's request layer, set up theme system, design the layout, and build core pages.
  4. Post-development: lint, type-check (tsc --noEmit), verify the build.

When to Use

Invoke this skill when the user asks for:

  • "帮我做一个 React 项目"
  • "初始化一个 React + TypeScript 模板"
  • "做一个 React 后台管理系统"
  • "用 React 搭一个 xxx 网站"
  • "帮我生成一个标准的 React 项目结构"
  • Any request that involves creating a new React SPA from scratch (H5 / 后台 / 文档站)

Not for: React Native / 小程序 / Taro / 移动端 hybrid — use react-native-generate-skill instead.

Workflow Summary

Phase 1: Pre-development
  → Ask 3-5 clarifying questions
  → Write spec.md (scope, pages, data model, API outline)

Phase 2: Project Initialization
  → npm create vite@latest scaffold
  → Replace placeholders
  → Create standard directory structure (including src/api/, src/services/, src/config/)
  → Generate CLAUDE.md (≤ 50 lines, references frontend-request-skill)
  → Generate AGENTS.md (≤ 400 lines, on-demand references)
  → Apply tsconfig.json strict template
  → Apply vite.config.ts template (path alias + auto-import)
  → Copy code-examples/ (types / stores / components / pages)

Phase 3: Development
  → Install frontend-request-skill's request layer (copy from references/)
  → Configure src/config/api.config.ts (BASE_URL / PREFIX / SUCCESS_CODES)
  → Configure src/config/error.config.ts (ERROR_CODE_MAP)
  → Set up src/styles/globals.css theme variables
  → Implement core pages using code-examples/ as template
  → Write hooks (useAuth, useFetch, ...)

Phase 4: Post-development
  → npm run lint           # ESLint must pass
  → npm run type-check     # tsc --noEmit must pass
  → npm run build          # Must build successfully
  → Summarize deliverables

Read the full file on GitHub · 412 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. 23d ago Changed 58cdb3ee13c8
  2. 25d ago Changed 99599eb39a2b
  3. 1mo ago Changed · +4 lines d84f6c322d7c
  4. 1mo ago Changed 684ce0083b06
  5. 2mo ago Changed · +1 tokens per session cb40f9016459
  6. 3mo ago First seen · 408 lines · 144 tokens per session scan A 2df459be7130

Subscribe to this mod's changes

react-generate-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 145 tokens to every session and 3,783 once invoked, about $0.0006 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

react-generate-skill compared with skills from other repositories

react-generate-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-generate-skilljiushiwon/wg-skillsSkill1546d agoApache-2.0A145Claude Code, Codex
custom-featuresTanStack/tableSkill29k7d agoMITA35Claude Code, Codex
fast-typescript-checkinternet-development/www-sacredSkill1.6k14d agoMITA84Claude Code, Codex
port-sacred-terminal-ui-to-typescript-cliinternet-development/www-sacredSkill1.6k14d agoMITA0Claude Code, Codex
adding-personhog-rpcPostHog/posthogSkill41ktodaynoneA88Claude Code, Codex
splitting-oversized-modulesPostHog/posthogSkill41ktodaynoneA197Claude Code, Codex
developing-the-cliPostHog/posthogSkill41ktodaynoneA186Claude Code, Codex