Skip to content
Skill

React frontend

Guides an agent through React + Vite + TypeScript UI work with states and tests

React frontend is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
8
Last commit
License
MIT
Listing updated

Similar skills

About React frontend

This skill gives an agent a set of conventions for building or reviewing React interfaces in a Vite and TypeScript project. It covers how to split a feature into folders, where each kind of state should live, and how to wire server data through a query cache with cancellation and invalidation after mutations.

The guidance pushes the agent to handle every data-driven view explicitly: loading, empty, error and success, plus pending states on submit buttons and partial failure for mutations. It also includes checklists for forms with server-side field errors, accessibility basics such as semantic elements and dialog focus handling, and security points like sanitizing HTML and keeping secrets out of VITE_ variables.

The skill is written as guidance rather than executable tooling. It has no scripts and expects the agent to follow the existing component library, data layer and styling of the repository, using the defaults only where the repo is silent. Tests are described with Vitest, React Testing Library, userEvent and MSW for network mocking, and the commands it lists are npx vitest run, npx tsc --noEmit, npx eslint and npm run build.

When your agent uses it

React + Vite + TypeScript patterns for factory frontend work - component and state structure, server state with a query cache, every UI state (loading, empty, error, success), forms and validation, accessibility, VITE_ env vars, and behavior-focused tests with Vitest and React Testing Library. Use when building or reviewing React UI.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (5 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the forgeline plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add Nabwinsaud/forgeline
/plugin install forgeline@forgeline

Or copy only this skill to ~/.claude/skills/react-frontend:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/react-frontend &&
cp -R "$tmp/skills/react-frontend" ~/.claude/skills/react-frontend &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/react-frontend inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/react-frontend to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/react-frontend &&
cp -R "$tmp/skills/react-frontend" ~/.agents/skills/react-frontend &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/react-frontend inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/react-frontend to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/react-frontend &&
cp -R "$tmp/skills/react-frontend" ~/.cursor/skills/react-frontend &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/react-frontend inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Nabwinsaud/forgeline.git --path skills/react-frontend

Or copy the folder to ~/.gemini/skills/react-frontend yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/react-frontend:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/react-frontend &&
cp -R "$tmp/skills/react-frontend" ~/.copilot/skills/react-frontend &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/react-frontend inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git

Then copy forgeline/skills/react-frontend into your agent's skills folder as react-frontend. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Feature folder structure
Describes how to organize screens, hooks, API calls and shared components in a Vite React project.
State placement rules
Explains which state belongs in a query cache, URL search params, form state, local state or context.
Query and mutation patterns
Shows typed query hooks with request cancellation and cache invalidation after writes.
Complete UI state handling
Covers loading, empty, error and success views plus pending buttons and failed mutations.
Accessibility and forms
Lists semantic markup, labelling, error announcements, dialog focus and server validation display.
Testing with behavior focus
Guides tests with Vitest and React Testing Library that query by role and mock the network.

Good for

  • Build a new order listing page with loading and error states
  • Review a React form for accessibility and validation gaps
  • Set up data fetching with a query cache in a Vite app
  • Write behavior-focused tests for a checkout component
  • Check environment variable usage so no secrets reach the client bundle

React frontend FAQ

What does React frontend need to run?

It has no scripts. It relies on a React, Vite and TypeScript project, and the tests it describes use Vitest, React Testing Library and MSW.

When does the agent use React frontend?

When the agent is building or reviewing React UI, as described in the skill's trigger description.

Does React frontend override my repo's existing conventions?

No. It says to match the repo's component library, folder structure, data layer and styling, and only applies its defaults where the repo is silent.

How do I install React frontend in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/react-frontend to use it in all your projects, or to .claude/skills/react-frontend in one project. Or install the forgeline plugin, which includes it: /plugin marketplace add Nabwinsaud/forgeline, then /plugin install forgeline@forgeline.

Does React frontend run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use React frontend?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to React frontend?

The closest alternatives to React frontend are Frontend engineering edho ferdian, Vue, Vitest skill, JavaScript TypeScript jest and Vue data.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Nabwinsaud/forgeline

  1. Gives agents conventions for designing HTTP/JSON endpoints, errors and pagination

    • Open source
    • 8 GitHub stars
    • Developer tools
  2. Records a human approve, reject or retry decision on a paused Forgeline job

    • Open source
    • 8 GitHub stars
    • Developer tools
  3. Gives a read-only reviewer agent a prioritized procedure for checking factory PRs

    • Open source
    • 8 GitHub stars
    • Developer tools
  4. Guides agents through safe Postgres schema changes, backfills and sqlc regeneration

    • Open source
    • 8 GitHub stars
    • Databases
  5. Turns one sentence into a Forgeline job that runs through to a reviewed PR

    • Open source
    • 8 GitHub stars
    • Developer tools
  6. Checks whether your machine and repo are ready to run the Forgeline factory

    • Open source
    • 8 GitHub stars
    • Developer tools