rule-frontend-hooks
CommunityEnforce consistent frontend hook rules for React.
Authorbtabaska
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Frontend hooks are often mispositioned or inconsistently named, leading to brittle code and maintenance challenges. This Skill enforces a predictable hook placement strategy for standalone hooks in src/hooks and service-coupled hooks within services, improving discoverability and reuse.
Core Features & Use Cases
- Standalone hooks in src/hooks/ with consistent naming like use{PascalCase}.ts.
- Service-coupled hooks placed in their service directories and not scattered.
- Guidance for useClientFetch and route-change wrappers, plus centralized auth state via UserProvider.
- Provides guardrails and examples to support onboarding and code reviews.
Quick Start
Audit your frontend/hooks directory and generate a compliant example hook following the rules.
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: rule-frontend-hooks Download link: https://github.com/btabaska/simpler-grants-documentation-automation/archive/main.zip#rule-frontend-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.