react-rules

by Matheus Chiodi · ★ 1 · updated 18 Oct 2026

Promptvalidates

0

In React projects, keeps Claude to the rules of hooks, stable keys, derived state and effects only for synchronization

install react-rules

Install

/plugin marketplace add MatheusChiodi/cockpit
/plugin install react-rules@cockpit

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
prompt.compose
API calls
$.fs.read$.session.root
Reach
level 1 of 3 reads files

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/MatheusChiodi/cockpit
Path in repo
mods/react-rules
Source commit
d0a978d the exact code the scan read
Author
Matheus Chiodi @MatheusChiodi
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from MatheusChiodi/cockpit

a11y-rules

MatheusChiodi/cockpit

In web projects, keeps Claude to accessibility rules when editing markup: labels, alt text, keyboard, focus, contrast

★ 1Prompt

activity-status

MatheusChiodi/cockpit

Live status line with the tool Claude is running right now

★ 1Status lineGuards

agent-cap

MatheusChiodi/cockpit

/agentcap caps how many subagents run at once and asks before each one past the cap

★ 1GuardsCommandsAutomation

agent-done-notify

MatheusChiodi/cockpit

Sends a native notification when a subagent that ran for 30 seconds or more finishes

★ 1Automation

agent-model-note

MatheusChiodi/cockpit

A toast naming the model a subagent resolved to when it differs from the main one, and /agentmodels lists them all

★ 1ToastsCommands

agent-pane

MatheusChiodi/cockpit

/crew opens a pane with the session's subagents, their type and status, refreshed while any is running

★ 1PanesCommands

agent-straggler

MatheusChiodi/cockpit

A toast when a subagent has been running more than three times as long as the ones that finished

★ 1Toasts

agent-trivial-note

MatheusChiodi/cockpit

A toast when a subagent is spawned for a task one Read, Bash or Grep call would answer

★ 1Toasts

agent-usage-toast

MatheusChiodi/cockpit

A toast with the tokens a subagent used, and its model, when a run of 10k tokens or more finishes

★ 1Toasts

agents-band

MatheusChiodi/cockpit

Band showing in real time how many subagents are running and which ones

★ 1Bands

alarms

MatheusChiodi/cockpit

/alarm sets daily alarms at a local time, kept across sessions, with a toast and a notification

★ 1ToastsCommands

alias-import-guard

MatheusChiodi/cockpit

Refuses deep ../../ imports when tsconfig paths has an alias for the folder, and names the alias to use

★ 1Guards