React guide
Put state, Effects, Actions and rendering in the right place.
Use /react-guide in Claude Code or $react-guide in Codex. Read the skill.
Use it while writing, reviewing or refactoring React, especially when itβs unclear which component should hold state, Effects are doing too much, or old responses overwrite newer input. Point it at the component and describe the interaction to preserve.
Example prompts
How it works
The agent checks how components render and share data. It keeps rendering free of side effects and calculates values from existing data instead of storing them in state. User actions belong in event handlers or Actions; Effects synchronize with external systems. It also covers Context, refs, component composition and async data.
API choices follow your installed React and framework versions and React Compiler configuration. Reviews explain the problem; implementation requests fix it and check the affected behavior, including pending requests, failures, rollback or hydration where relevant.
Works well with
- TypeScript guide for props and APIs that preserve type inference.
- Design system for its shared appearance and variants.
- Code smell for a broader cleanup.