react-guidelines
CommunityTurn React code into clean, scalable components.
Authorroeibajayo
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill codifies React frontend guidelines to reduce cognitive load during code reviews, prevent common pitfalls, and keep code consistent across teams.
Core Features & Use Cases
- One file per hook/component: Every hook, component, or modal should have its OWN file to improve maintainability.
- Don't use useState or useEffect directly in components: Always move stateful logic into dedicated custom hooks (e.g., useBot, useBacktesting).
- Function components with default export: Components should be defined as functions and exported via default export.
- Explicit TypeScript types: Avoid any and anonymous types; create explicit types when needed.
- Quality checks on changes: Run type checks and linting when frontend changes are made.
- Guidance for new pages: Follow the instructions in references to structure new pages.
Quick Start
Review a React file and apply the guidelines to identify violations and propose fixes, e.g.: Inspect 'src/components/Login.tsx' and ensure it uses a separate hook, proper file-per-component structure, and explicit types.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: react-guidelines Download link: https://github.com/roeibajayo/claude-tools/archive/main.zip#react-guidelines Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.