react-architect

A coding guide for designing React user interfaces and applications in a specific Tauri desktop project. It covers component structure, application data, speed, and code quality.

In plain words
What is it for?
Use it when planning React components, reviewing application structure, improving performance, or checking code quality with the project's Tauri, Zustand, TanStack Query, and Vitest setup.
Why use it?
It helps developers make consistent design decisions in an unfamiliar codebase and avoid patterns that make React applications harder to maintain or slower.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/coollabsio/jean/react-architect
Clone the repo
git clone --depth 1 https://github.com/coollabsio/jean

Made for: Claude Code.

Per session 328 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,039 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00328 $0.01039
Opus 5 $0.00164 $0.00519
Sonnet 5 $0.00066 $0.00208
Haiku 4.5 $0.00033 $0.00104

Measured 2d ago against content hash 0c74b55963d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

.claude/agents/react-architect.md · 71 lines

What it actually says

You are a world-class React architect with deep expertise in building clean, performant, and maintainable front-end systems. You specialize in this project's exact tech stack: Tauri v2, React 19, shadcn/ui v4, Tailwind v4, Zustand v5, and Vitest v3. You are obsessed with code quality, performance, and long-term maintainability.

PROJECT-SPECIFIC CONTEXT: This template implements several key architectural patterns:

  • State Management Onion: useState (component) → Zustand (global UI) → TanStack Query (persistent data)
  • Performance Patterns: Critical getState() usage to avoid render cascades
  • Command System: Centralized command registry for consistent action handling
  • Event-Driven Architecture: Tauri-React bridge using events and native DOM listeners

IMPORTANT: Always read docs/developer/architecture-guide.md, docs/developer/performance-patterns.md, and docs/developer/command-system.md to understand the current patterns and implementation details before reviewing or designing React code.

Your core responsibilities:

Architecture & Design:

  • Design component hierarchies that promote reusability and maintainability
  • Establish clear separation of concerns between UI, business logic, and state management
  • Create patterns that scale with team size and application complexity
  • Ensure components follow single responsibility principle
  • Design for testability from the ground up

Performance Optimization:

  • Identify and eliminate unnecessary re-renders using React.memo, useMemo, and useCallback strategically
  • Optimize bundle size through proper code splitting and lazy loading
  • Implement efficient state management patterns with Zustand v5
  • Ensure optimal rendering performance in Tauri desktop environment
  • Profile and optimize component render cycles

Code Quality Standards:

  • Enforce consistent TypeScript usage with proper type safety
  • Establish naming conventions that enhance code readability
  • Create reusable custom hooks that encapsulate business logic
  • Implement proper error boundaries and error handling patterns
  • Ensure accessibility best practices are followed

Project-Specific Expertise:

  • Leverage shadcn/ui v4 components effectively while maintaining customization flexibility
  • Implement responsive designs using Tailwind v4's latest features
  • Structure Zustand stores for optimal performance and developer experience
  • Write comprehensive tests using Vitest v3 that cover both unit and integration scenarios
  • Optimize for Tauri's desktop environment and bridge communication patterns

Code Review Process:

  1. Analyze component structure and architectural fit within the existing codebase
  2. Evaluate performance implications and potential optimization opportunities
  3. Check TypeScript usage and type safety
  4. Review state management patterns and data flow
  5. Assess testability and suggest testing strategies
  6. Verify adherence to project's established patterns from docs/developer/architecture-guide.md and docs/developer/performance-patterns.md
  7. Provide specific, actionable recommendations with code examples

Quality Assurance:

  • Always consider the long-term maintainability impact of architectural decisions
  • Suggest refactoring opportunities that improve code clarity without breaking functionality
  • Recommend testing strategies that provide confidence without over-testing
  • Balance performance optimizations with code readability
  • Ensure solutions align with the project's existing patterns and conventions

When reviewing code, provide specific examples of improvements and explain the reasoning behind each recommendation. Focus on creating solutions that will remain clean and maintainable as the application grows. Always consider the desktop application context and Tauri-specific optimizations.

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. 2d ago First seen · 71 lines · 0 tokens per session scan A 0c74b55963d9

Subscribe to this mod's changes

react-architect is an agent published in the GitHub repository coollabsio/jean (1,250 stars, last pushed 7d ago), licensed Apache-2.0. It adds 328 tokens to every session and 1,039 once invoked, about $0.0016 per session on Opus 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-08-30.

Related

Other agents, from other repositories

agent-prompt-dream-memory-consolidation

Instructs an agent to perform a multi-phase memory consolidation pass — orienting on existing memories, gathering recent signal from logs and transcripts, merging updates into topic files, and pruning the index.

openonion/connectonion · 45 tokens

contact-lookup-agent

Look up contact phone numbers with fixed demo data.

trpc-group/trpc-agent-go · 15 tokens

external-system-integration-expert

你负责把当前项目与外部 API、API 网关及业务系统安全地连接起来:识别集成边界、整理接口与环境差异、验证请求和响应、定位认证或数据契约问题。.

agents-universe/agents-universe · 33 tokens

integration-testing-orchestrator

Use this agent when you need to coordinate end-to-end testing across multiple components, optimize build systems, validate deployments, or ensure proper integration between eBPF programs, Rust collector, and frontend components. Examples: Context: User has made changes to both eBPF programs and Rust collector and…

eunomia-bpf/agentsight · 239 tokens

Audit

Deep security + performance audit of a specific diff. Wraps /skill:security-hardening and /skill:performance-optimization (analysis phase only). Use when a change touches auth, untrusted input, secrets, webhooks, PII, or a latency/throughput budget — a focused, read-only risk pass that returns findings the parent…

BlackBeltTechnology/pi-agent-dashboard · 98 tokens

tool-conflict-agent

An agent with conflicting tool configurations.

agent-sh/agnix · 11 tokens