# Frontend react

> Frontend react is an open-source agent skill for developer tools. Guides an agent through React web rules: pure render, hooks, keys and DOM-level tests. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/JasGujral/mokata-oss/tree/main/src/mokata/skills/frontend-react
- **Repository:** https://github.com/jasgujral/mokata-oss
- **GitHub stars:** 19
- **License:** Apache-2.0
- **Skill name:** frontend-react
- **Collection:** https://github.com/JasGujral/mokata-oss
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

A rule pack for React web work, organised as an index that points to one reference file per rule. Each rule has an impact level, the React version branch it applies to, an Incorrect and a Correct code example, and a way to verify it. The agent is meant to open only the rules that touch the change at hand rather than loading the whole pack.

The skill starts by having the agent read the touched package's package.json for the exact React major version and whether the React Compiler is enabled, then reads the framework config instead of assuming defaults. Rules are sorted by impact, with critical items such as pure rendering, hook placement and server-to-client props first. Behaviour changes are expected to start from a failing component test queried by role or label, and review passes walk the critical and high rules against the diff, reporting findings with file and line.

It is meant for projects that depend on react-dom or Next and is not intended for React Native or Expo. It assumes a Node-style project with a package.json and expects the agent to be running inside the mokata pipeline, which handles spec routing and approval gates.

## When your agent uses it

> mokata · React (web) rule pack — impact-ordered rules, loaded by the spec's routing, each with an Incorrect/Correct pair.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/frontend-react)
- [License: Apache-2.0](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/frontend-react)

## Features

- **Impact-ordered rule index:** Lists React rules from critical to low impact, each pointing to its own reference file.
- **Version-aware branches:** Separates guidance for React 19 with the Compiler on, React 19 with it off, and earlier versions.
- **Incorrect and Correct examples:** Each rule pairs a bad pattern with a corrected one and explains how to verify it.
- **Test-first component workflow:** Asks for a failing component test queried by role or label before component code changes.
- **Review checklist:** Gives a verification checklist and asks reviewers to cite the rule file behind each finding.

## Good for

- Review a React component diff for render side effects and hook misuse
- Remove unnecessary useMemo calls in a React 19 project with the Compiler on
- Fix list rendering that uses array indexes as keys on reorderable data
- Replace an effect that copies props into state with a derived value
- Write a component test that queries by role and label before implementing a feature

## Install

### Claude Code

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

```sh
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/frontend-react &&
cp -R "$tmp/src/mokata/skills/frontend-react" ~/.claude/skills/frontend-react &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/frontend-react &&
cp -R "$tmp/src/mokata/skills/frontend-react" ~/.agents/skills/frontend-react &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/frontend-react &&
cp -R "$tmp/src/mokata/skills/frontend-react" ~/.cursor/skills/frontend-react &&
rm -rf "$tmp"
```

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

### Gemini CLI

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

```sh
gemini skills install https://github.com/JasGujral/mokata-oss.git --path src/mokata/skills/frontend-react
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/frontend-react &&
cp -R "$tmp/src/mokata/skills/frontend-react" ~/.copilot/skills/frontend-react &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git
```

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

## FAQ

### What does the agent need before applying these rules?

It reads the touched package's package.json for the React major version and checks whether the React Compiler is enabled, using the framework config rather than assuming defaults. If it cannot confirm these, it says so.

### When is Frontend react meant to trigger?

It is routed by the approved spec's domains or by mokata's per-turn routing when a change touches a .jsx or .tsx file in a package depending on react-dom or next. It should not engage for React Native or Expo projects, plain TypeScript libraries without React, or backend-only changes.

### Does Frontend react run any scripts or tools?

No scripts are included, and the skill does not set allowed tools. Its gates for linting and bundle checks are not backed by this skill.

### Which clients does Frontend react work with?

The content does not tie it to a specific client beyond a Claude Code plugin marketplace listing, so it is described as a plain skill folder.

### How do I install Frontend react in Claude Code?

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

### Does Frontend react 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 Frontend react?

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 Frontend react?

The closest alternatives to Frontend react are Vercel react best practices, Vercel react native skills, Vercel composition patterns, Frontend security and React19 source patterns.

## Where this comes from

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

## Alternatives

- [Vercel react best practices](https://ai-powered.com/skills/vercel-react-best-practices): Vercel react best practices is an open-source agent skill for cloud and infrastructure.
- [Vercel react native skills](https://ai-powered.com/skills/vercel-react-native-skills): Vercel react native skills is an open-source agent skill for cloud and infrastructure.
- [Vercel composition patterns](https://ai-powered.com/skills/vercel-composition-patterns): Vercel composition patterns is an open-source agent skill for cloud and infrastructure.
- [Frontend security](https://ai-powered.com/skills/frontend-security): Frontend security is an open-source agent skill for security.
- [React19 source patterns](https://ai-powered.com/skills/react19-source-patterns): React19 source patterns is an open-source agent skill for developer tools.
- [React18 dep compatibility](https://ai-powered.com/skills/react18-dep-compatibility): React18 dep compatibility is an open-source agent skill for developer tools.
- [Backend nestjs](https://ai-powered.com/skills/backend-nestjs): Backend nestjs is an open-source agent skill for developer tools.
- [Readable code](https://ai-powered.com/skills/readable-code): Readable code is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/frontend-react
