react-code

Enforce React 19 patterns and Conform-based form validation for GAIA components.

21|4|Updated Sep 4, 2024
One-click install
npx skills add https://github.com/gaia-react/gaia --skill react-code-gaia-react
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-code
Source: https://github.com/gaia-react/gaia/tree/main/.claude/skills/react-code
Command: npx skills add https://github.com/gaia-react/gaia --skill react-code-gaia-react

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill eliminates inconsistent code patterns, common React anti-patterns, and technical debt by enforcing strict architectural standards and platform-first development practices.

Core Features & Use Cases

  • Standardized Hook Usage: Provides clear gates for when to use hooks like useEffect, useCallback, and useMemo to prevent stale closures and unnecessary re-renders.
  • Form & Validation Logic: Enforces the use of Conform and Zod for robust, type-safe form handling while preventing common React 19 integration errors.
  • Platform-First Development: Guides developers to leverage native Web APIs and existing GAIA components before introducing new dependencies or custom primitives.

Quick Start

Use the react-code skill to review my component implementation for React 19 compliance and proper hook usage.

Frequently Asked Questions about react-code

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

FAQPage Schema
What are the best practices for React 19 hook usage to prevent stale closures and unnecessary re-renders?

Standardized React 19 hook usage requires clear gates for when to apply useEffect, useCallback, and useMemo to prevent stale closures and unnecessary re-renders. Production-grade conventions enforce strict dependency rules to eliminate common anti-patterns.

How do I enforce type-safe form validation and logic using React 19?

Type-safe form validation in React 19 is enforced by integrating Conform and Zod. This combination ensures robust form handling while preventing common integration errors during component creation and refactoring.

When should I use custom React component primitives versus native Web APIs?

Platform-first development principles guide you to leverage native Web APIs and existing ecosystem components before introducing new dependencies or custom primitives. This architectural convention reduces technical debt and enforces standardized patterns.

How do I review my React component implementation for production-grade architectural compliance?

Reviewing React component implementations for architectural compliance involves checking strict hook dependency rules, platform-first principles, and Conform-based form validation. This standardization eliminates inconsistent code patterns and technical debt.

Does this React 19 development approach work with TypeScript and Conform?

Yes, the React 19 development approach fully supports TypeScript and Conform. It enforces strict architectural standards and type-safe form handling within the ecosystem, ensuring robust state management and UI component implementation.