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

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/mars-mx/vibesaas/react-nextjs-architect
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.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.svg" alt="Measured on agentmods" 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. 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.00399 $0.02240
Opus 5 $0.00199 $0.01120
Sonnet 5 $0.00080 $0.00448
Haiku 4.5 $0.00040 $0.00224

Measured 3d ago against content hash ae02423d62c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 6mo ago), licensed MIT. It adds 399 tokens to every session and 2,240 once invoked, about $0.0020 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-31.

Related

Other agents, from other repositories

typescript-architect

Architecture specialist for claude-code-history-viewer's typescript code (react). Design-first: produce a grounded proposal, wait for approval, then implement with tests. Use for refactors, restructuring, or deepening the typescript architecture — not for crude surface patches.

jhlee0409/claude-code-history-viewer · 57 tokens

frontend-react-engineer

Use this agent when you need to implement React/TypeScript frontend features, create or modify components, write tests, or work with UI designs. This agent excels at building clean, SSR-first Next.js components with shadcn/ui, implementing Storybook stories, and ensuring proper separation of concerns between logic and…

openstory-so/openstory · 405 tokens

typescript-and-ui

Agent "typescript-and-ui" from icoretech/airbroke, covering typescript and ui, typescript baseline, component boundaries, ui stack and practical rules.

icoretech/airbroke · 0 tokens

implementer

Use proactively when user asks to implement, build, add, create, or fix code. Writes production TypeScript/React code using TanStack Start. Implements slice-by-slice and runs typecheck and lint after each change.

dlupiak/claude-session-dashboard · 48 tokens

frontend

Frontend engineer who implements high-quality React/TypeScript frontend code following project conventions. Writes code, runs builds and formatting, and collaborates with teammates to ensure correctness.

platformplatform/PlatformPlatform · 35 tokens

frontend-engineer

Frontend developer specializing in React/TypeScript with Clean Architecture, component-driven design, and accessibility.

cdeust/ai-architect-mcp-codebase · 22 tokens