Project analysis react

From event4u-app/agent-config · View interactive version

Project analysis react is an AI agent skill from the GitHub repository event4u-app/agent-config. Use for deep React analysis: component tree, state flow, props flow, hooks usage, rendering behavior, and React-specific failure patterns.

How to use this skill

Skill file

project-analysis-react

When to use

Use this skill when:

Do NOT use when:

Core principles

Procedure

1. Identify React setup

Check: React version, framework wrapper (Next.js, Vite, CRA, etc.), TypeScript or JavaScript, routing setup, state libraries (Redux, Zustand, Context).

Validate: React version is explicit, rendering environment is known (client-only vs SSR-capable).

2. Map component tree

Identify: root components, layout structure, nesting hierarchy, shared components, repeated patterns.

Check: deep nesting, prop drilling, duplicated logic across components.

3. Trace state flow

Identify: where state is defined, where it is updated, how it flows across components, what triggers updates.

Check:

4. Analyze hooks usage

Inspect: useState, useEffect, useMemo, useCallback, custom hooks, dependency arrays, side effects.

Check:

5. Analyze rendering behavior

Check: what triggers re-renders, how often components re-render, conditional rendering logic, list rendering and keys.

Validate: unnecessary re-renders, missing keys, expensive renders, incorrect conditional branches.

6. Analyze async behavior

Inspect: data fetching, loading states, race conditions, effect cleanup.

Check: outdated responses overwriting newer state, missing cancellation logic, inconsistent loading/error handling.

7. Detect common React anti-patterns

8. Validate React analysis quality

Check:

Output format

  1. React setup summary
  2. Component tree overview
  3. State flow analysis
  4. Hooks and lifecycle findings
  5. Rendering behavior findings
  6. Async/data flow issues
  7. Key risks and fixes

Gotcha

Do NOT

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.