react-conventions

Standardize React SPA component structure, hooks usage, and patterns.

9|1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill react-conventions-aratkruglik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-conventions
Source: https://github.com/AratKruglik/antigravity-sdlc/tree/main/plugins/react-plugin/skills/react-conventions
Command: npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill react-conventions-aratkruglik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardizes React SPA conventions to improve consistency, readability, and maintainability across components, hooks usage, and project structure.

Core Features & Use Cases

  • Structure a component or feature folder.
  • Apply hooks correctly (rules, naming, dependency arrays).
  • Compose components via children, render props, or compound patterns.
  • Write effects only when needed (and avoid common misuses).
  • Pick performance escape hatches (memo, useMemo, useCallback) when justified.

Do NOT use this skill for:

  • State management lib choice (see react-state-management).
  • Routing primitives (see react-routing).
  • Form patterns (see react-forms).
  • Testing (see react-testing).

Quick Start

Adopt these conventions when starting a React SPA to align component structure, hooks usage, and pattern choices across your project.

Frequently Asked Questions about react-conventions

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

FAQPage Schema
How do I structure a React SPA project for maintainability?

Structure your React SPA by adopting standardized conventions for component folders, feature organization, and pattern usage. This ensures consistency and readability across medium- and large-scale projects by specifying requirements for project layout and naming.

What are the rules for applying React hooks correctly in a large project?

Apply React hooks correctly by following standardized rules for naming, dependency arrays, and usage patterns. These conventions guide teams to standardize hook implementation and avoid common misuses across complex single-page applications.

When should I use performance escape hatches like useMemo and useCallback in React?

Use performance escape hatches like memo, useMemo, and useCallback only when justified by specific optimization needs. Standardized conventions help you pick these patterns appropriately to prevent unnecessary performance overhead in your React components.

How do I compose React components using compound patterns?

Compose React components using children, render props, or compound patterns to standardize structure across your project. These conventions guide pattern choices to improve component composition and maintainability in complex applications.

What is the best way to organize effects in a React single-page application?

Organize effects in a React single-page application by writing them only when needed and avoiding common misuses. Following standardized conventions ensures effects are applied correctly without introducing unnecessary complexity.

Does this React conventions skill cover state management and routing?

This React conventions skill does not cover state management or routing. It focuses exclusively on standardizing component structure, hooks usage, and patterns, directing state management, routing, forms, and testing to specialized skills.