react-patterns

Detect Manos React pattern deviations in .tsx and .ts PR files.

1|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/brianmontero18/astral --skill react-patterns-brianmontero18
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-patterns
Source: https://github.com/brianmontero18/astral/tree/main/.claude/skills/react-patterns
Command: npx skills add https://github.com/brianmontero18/astral --skill react-patterns-brianmontero18

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Verify React code adheres to Manos patterns, helping teams maintain consistent patterns across hooks, effects, data fetching, and state management.

Core Features & Use Cases

  • Enforces TanStack Query for data fetching instead of useEffect-based fetching.
  • Guides proper state placement between server data, shared client state, and local UI state.
  • Flags common hook/useEffect anti-patterns and suggests modularization by extracting reusable logic into hooks.

Quick Start

Run a pattern-check on the PR to identify deviations from Manos React patterns and generate actionable fixes.

Frequently Asked Questions about react-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce React patterns for data fetching in pull requests?

To enforce React patterns for data fetching in pull requests, analyze .ts and .tsx files to detect useEffect-based fetching and mandate TanStack Query. This ensures server data fetching logic remains separate from component effects.

What is the best way to manage state placement for server data in React components?

Proper state placement for server data involves guiding developers to place server data in the correct store, separating it from shared client state and local UI state. This prevents state management anti-patterns during code review.

Does this pattern checker flag React hooks rules violations in .tsx files?

Yes, this pattern checker flags React hooks rules violations in .tsx and .ts files. It detects disabled hooks rules and reports these deviations alongside other common hook anti-patterns found in PR code.

How do I identify when to extract complex logic into reusable React hooks?

To identify when to extract complex logic into reusable React hooks, review component code for heavy useEffect usage and convoluted state management. The checker flags these areas and suggests modularization through logic extraction.

When should I avoid using useMemo and useCallback in my React components?

You should avoid using useMemo and useCallback excessively by applying memoization judiciously. The checker reviews your PR code to ensure memoization is only used when necessary, preventing unnecessary complexity in shared client state.