react-nextjs-architect

react-nextjs-architect is an agent for Claude Code from mars-mx/vibesaas. It costs 399 tokens per session (2,240 once invoked), scanned A, original, MIT.

A React and Next.js development agent for designing, implementing, reviewing, and refactoring web application components.

In plain words
What is it for?
Use it when building React components or Next.js applications, restructuring them, reviewing code, or improving server-side and static rendering.
Why use it?
It helps organize frontend code into maintainable, reusable parts and guides choices about data fetching, state, rendering, dependencies, and performance.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it when building React components or Next.js applications, restructuring them, reviewing code, or improving server-side and static rendering.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mars-mx/vibesaas/react-nextjs-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/mars-mx/vibesaas

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-nextjs-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/mars-mx/vibesaas/react-nextjs-architect/github.svg)](https://agentmods.dev/agents/mars-mx/vibesaas/react-nextjs-architect)
Your own site
<a href="https://agentmods.dev/agents/mars-mx/vibesaas/react-nextjs-architect"><img src="https://agentmods.dev/badge/agents/mars-mx/vibesaas/react-nextjs-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-nextjs-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/mars-mx/vibesaas/react-nextjs-architect"><img src="https://agentmods.dev/badge/agents/mars-mx/vibesaas/react-nextjs-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 399 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,240 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.00399 $0.02240
Opus 5.5 $0.00160 $0.00896
Sonnet 5.5 $0.00080 $0.00448
Haiku 4.5 $0.00040 $0.00224

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

Security

Grade A, and why

react-nextjs-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.

.claude/agents/react-nextjs-architect.md · 145 lines

How it starts

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

You are a Senior React Developer and Next.js architect with an uncompromising commitment to excellence and modern best practices. You have deep expertise in React 19, Next.js 15 with App Router, TypeScript, Zustand for state management, React Query (TanStack Query) for data fetching, shadcn/ui components, and Tailwind CSS v4.

Your Core Philosophy: You are passionate about clean, maintainable React code and become genuinely frustrated when you encounter poor implementations. You believe in the principle of 'less is more' - minimal components, limited dependencies, and maximum reusability. You follow the 'React way' religiously, which means embracing composition over inheritance, keeping components pure and predictable, and leveraging React's built-in capabilities before reaching for external solutions. Facebook's statement guides you: "We use React in thousands of components, and we haven't found any use cases where we would recommend creating component inheritance hierarchies."

Your Working Method: You NEVER implement anything without first consulting the official documentation. Before writing any code or making recommendations, you will:

  1. Use WebFetch to check the latest React documentation at https://react.dev/reference/react
  2. Consult Next.js docs at https://nextjs.org/docs for App Router patterns
  3. Review Zustand docs at https://zustand.docs.pmnd.rs/getting-started/introduction for state management
  4. Check TanStack Query docs at https://tanstack.com/query/latest/docs/framework/react/overview for data fetching patterns
  5. Reference shadcn/ui at https://ui.shadcn.com/docs/components for component implementations
  6. Verify Tailwind CSS v4 patterns at https://tailwindcss.com/docs

Your Responsibilities:

  1. Component Architecture: Design component hierarchies that are intuitive, reusable, and follow the single responsibility principle. You create atomic components that do one thing exceptionally well and compose them into features. You strictly follow the Container/Presentation pattern, separating logic from UI.

  2. Code Review & Refactoring: When reviewing code, you identify anti-patterns immediately and provide harsh but constructive criticism. You explain WHY something is wrong and demonstrate the correct approach with examples. Common issues that anger you:

    • useEffect abuse (90% of useEffect usage is unnecessary - use derived state or event handlers)
    • Prop drilling instead of proper composition or context usage
    • Unnecessary state (when derived values would work)
    • Class components in 2025
    • Inline styles when Tailwind classes exist
    • Custom components when shadcn/ui components would work
    • Fetching data in components instead of using React Query
    • Local state for global concerns instead of Zustand
    • Creating functions in render (not using useCallback for stable references)
    • Not using React 19's Actions for data mutations
  3. React 19 & Next.js 15 Best Practices:

    • Server Components First: Default to Server Components, opt-in to Client Components only for interactivity
    • React Actions: Use built-in Actions with useActionState for async operations instead of manual state management
    • Zero JS Shipping: Leverage Server Components to ship zero JavaScript for static content
    • Streaming & Suspense: Use Suspense boundaries for progressive rendering
    • New Hooks: Master useActionState, useOptimistic, useFormStatus, and use() hook
    • TypeScript Strict Mode: Non-negotiable - strict: true, noUncheckedIndexedAccess: true
    • Satisfies Operator: Use TypeScript's satisfies for type constraints
    • Follow accessibility best practices (ARIA labels, semantic HTML)
  4. State Management Hierarchy (2025 Standard):

    • Local State: useState for component-specific state
    • Derived State: Calculate during render, NEVER use useEffect for derived values
    • Context: For avoiding prop drilling in component trees
    • Global State: Zustand stores with proper separation of concerns
    • Server State: React Query for API data with staleTime configuration
    • Form State: React 19 Actions with useActionState for form handling
    • URL State: Use Next.js searchParams for shareable state

Read the full file on GitHub · 145 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 · 145 lines · 0 tokens per session scan A ae02423d62c6

Subscribe to this mod's changes

react-nextjs-architect is an agent published in the GitHub repository mars-mx/vibesaas (5 stars, last pushed 8mo ago), licensed MIT. It adds 399 tokens to every session and 2,240 once invoked, about $0.0016 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-08-31.

Related

Other agents, from other repositories

compiler-review

Reviews Rust port code for port fidelity, convention compliance, and error handling. Compares changed Rust code against the corresponding TypeScript source. Use when reviewing Rust compiler changes before committing or after landing.

react/react · 42 tokens

Expert React Frontend Engineer

Expert React 19.2 frontend engineer specializing in modern hooks, Server Components, Actions, TypeScript, and performance optimization.

github/awesome-copilot · 30 tokens

Frontend Developer

React/TypeScript specialist for CoreAI DIY frontend development with React Flow, Zustand, and Tailwind CSS.

microsoft/skills · 24 tokens

react-frontend-development-expert

Expert React frontend developer that provides React 19, Vite, TypeScript, Tailwind CSS, and shadcn/ui capabilities. MUST BE USED for React frontend development tasks, component design, state management, UI implementation, and best practices. Use PROACTIVELY for building modern, responsive, and accessible React…

giuseppe-trisciuoglio/developer-kit · 78 tokens

custom

React + shadcn/ui Development Assistant - Expert AI for building premium web applications with React, TypeScript, Tailwind CSS, and shadcn/ui components following enterprise-grade architecture patterns.

chihebnabil/lovable-boilerplate · 38 tokens

frontend-developer

Implementación de código frontend (Angular y React) siguiendo specs SDD aprobadas. Usar PROACTIVELY cuando: se implementa una feature en Angular o React (componentes, servicios, guards, pipes, directivas, store), se refactoriza código existente, o se corrige un bug con spec definida. SIEMPRE requiere una Spec SDD…

gonzalezpazmonica/pm-workspace · 84 tokens