forge-react-hooks
CommunityStop React hook order bugs before they ship.
Authorf4rkh4d
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents React hook order violations that can break state alignment across renders and cause runtime errors like "Rendered fewer hooks than expected."
Core Features & Use Cases
- AST-precise Rules of Hooks verification: Detects conditional/loop/ternary/short-circuit/try-catch/early-return patterns with hook-level accuracy.
- React component and custom hook enforcement: Ensures hooks are only called at the top level of function components or other custom hooks.
- Scope coverage for similar ecosystems: Applies to React and compatible hook-based libraries referenced by the skill (e.g., preact/solid-js patterns with the same discipline).
Quick Start
Use the forge-react-hooks skill to check a React or TypeScript file and fix any hooks called conditionally, in loops, via short-circuits/ternaries, inside try/catch, or after early returns.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: forge-react-hooks Download link: https://github.com/f4rkh4d/forge-skill/archive/main.zip#forge-react-hooks 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.