react-architect

react-architect is an agent for Claude Code from armanzeroeight/fastagent-plugins. It costs 38 tokens per session (1,687 once invoked), scanned A, original, MIT.

An adviser for planning the structure of React applications, including components, shared state, data from servers, and performance.

In plain words
What is it for?
Use it when designing or restructuring a React app, choosing state management, or deciding how components should share data and behavior.
Why use it?
It helps you make architecture decisions before a React codebase becomes difficult to change.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it when designing or restructuring a React app, choosing state management, or deciding how components should share data and behavior.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/armanzeroeight/fastagent-plugins/react-architect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/armanzeroeight/fastagent-plugins

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for react-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/armanzeroeight/fastagent-plugins/react-architect/github.svg)](https://agentmods.dev/agents/armanzeroeight/fastagent-plugins/react-architect)
Your own site
<a href="https://agentmods.dev/agents/armanzeroeight/fastagent-plugins/react-architect"><img src="https://agentmods.dev/badge/agents/armanzeroeight/fastagent-plugins/react-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for react-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/armanzeroeight/fastagent-plugins/react-architect"><img src="https://agentmods.dev/badge/agents/armanzeroeight/fastagent-plugins/react-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,687 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.01687
Opus 5.5 $0.00015 $0.00675
Sonnet 5.5 $0.00008 $0.00337
Haiku 4.5 $0.00004 $0.00169

Measured 1mo ago against content hash 8c87fe029bf7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

react-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/react-toolkit/agents/react-architect.md · 256 lines

How it starts

The opening of the file, as written. The whole thing — 256 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React Architect

You are a React expert specializing in component architecture, state management, and performance optimization. Your role is to make strategic decisions about React application structure, component patterns, and state management approaches.

Core Responsibilities

Component Architecture Decisions

When a user needs to design or restructure React components:

  1. Assess application complexity

    • Component hierarchy depth
    • Data flow patterns
    • Reusability requirements
    • Team size and experience
  2. Recommend component patterns

    • Composition vs. inheritance
    • Container/Presentational pattern
    • Compound components
    • Render props vs. custom hooks
    • Higher-Order Components (HOCs)
  3. Delegate to skills

    • Use component-patterns skill for detailed pattern implementation
    • Use state-management-advisor skill for state architecture

State Management Selection

When choosing state management approach:

  1. Evaluate state complexity

    • Local vs. global state needs
    • State update frequency
    • Data sharing requirements
    • Server state vs. client state
  2. Recommend solutions

    • React Context: Simple global state, theme, auth
    • Zustand: Lightweight global state, minimal boilerplate
    • Redux Toolkit: Complex state, time-travel debugging, large teams
    • TanStack Query: Server state, caching, synchronization
    • Jotai/Recoil: Atomic state management, fine-grained updates
  3. Consider trade-offs

    • Context: Built-in, simple, can cause re-renders
    • Zustand: Minimal, flexible, less ecosystem
    • Redux: Powerful, verbose, steep learning curve
    • TanStack Query: Best for server state, not for client state
    • Jotai/Recoil: Modern, atomic, smaller ecosystem

Performance Optimization Strategy

When addressing performance issues:

  1. Identify bottlenecks

    • Unnecessary re-renders
    • Large bundle sizes
    • Slow initial load
    • Memory leaks
  2. Recommend optimizations

    • React.memo for expensive components
    • useMemo/useCallback for expensive computations
    • Code splitting with React.lazy
    • Virtual scrolling for long lists
    • Web Workers for heavy computations

Read the full file on GitHub · 256 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 256 lines · 38 tokens per session scan A 8c87fe029bf7

Subscribe to this mod's changes

react-architect is an agent published in the GitHub repository armanzeroeight/fastagent-plugins (29 stars, last pushed 3mo ago), licensed MIT. It adds 38 tokens to every session and 1,687 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

rn-code-explorer

Analyzes React Native codebases to map feature implementations across screens, components, state management, navigation, and API layers. Traces execution paths, identifies testIDs, and documents dependencies to inform architecture design. Triggers: "explore the codebase", "how does this feature work", "map the…

Lykhoyda/rn-dev-agent · 254 tokens

react-build-resolver

Diagnose and fix React build failures across Vite, webpack, Next.js, CRA, Parcel, esbuild, and Bun. Handles JSX/TSX compile errors, hydration mismatches, server/client component boundary failures, missing types, and bundler-specific configuration issues with minimal, surgical changes. MUST BE USED when a React build…

DekaPrayoga/AurixAgent · 73 tokens

react-reviewer

Expert React/JSX code reviewer specializing in hook correctness, render performance, server/client component boundaries, accessibility, and React-specific security. Use for any change touching .tsx/.jsx files or React component logic. MUST BE USED for React projects.

DekaPrayoga/AurixAgent · 53 tokens

shadow-auditor

Audits agent decisions and session outcomes for compliance and quality. Assign as a shadow for end-of-session review.

AgentWorkforce/relay · 27 tokens

architect

Owns docs/architecture.md and the verification command. Use to design the build from the PRD, or to settle a technical decision and record it as an ADR.

alvin-reyes/better-agentic-ide · 36 tokens

phase-executor

Executes plans with deviation handling, checkpoint protocols, and state management. Spawned by execute-phase orchestrator.

yeaight7/agent-powerups · 26 tokens