frontend-architecture-reviewer

frontend-architecture-reviewer is an agent for Claude Code from BostonOrange/claude-code-framework. It costs 62 tokens per session (1,412 once invoked), scanned A, original, MIT.

A code reviewer for the internal structure of frontend software, such as components, state, hooks, data flow, rendering, and server-side rendering.

In plain words
What is it for?
Use it to review changed React, Vue, Svelte, TypeScript, or JavaScript code for component boundaries, state handling, hooks, and hydration issues.
Why use it?
It catches structural problems that can make user interfaces harder to change, slower to render, or inconsistent between the server and browser.

Agent for Claude Code

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

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/bostonorange/claude-code-framework/frontend-architecture-reviewer
Clone the repo
git clone --depth 1 https://github.com/BostonOrange/claude-code-framework

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 frontend-architecture-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/bostonorange/claude-code-framework/frontend-architecture-reviewer.svg)](https://agentmods.dev/agents/bostonorange/claude-code-framework/frontend-architecture-reviewer)
Your own site
<a href="https://agentmods.dev/agents/bostonorange/claude-code-framework/frontend-architecture-reviewer"><img src="https://agentmods.dev/badge/agents/bostonorange/claude-code-framework/frontend-architecture-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 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,412 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.1 $0.00062 $0.01412
Opus 5 $0.00031 $0.00706
Sonnet 5 $0.00012 $0.00282
Haiku 4.5 $0.00006 $0.00141

Measured 2d ago against content hash 5533949baf47, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

frontend-architecture-reviewer 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.

templates/agents/frontend-architecture-reviewer.md · 146 lines

How it starts

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

Frontend Architecture Reviewer

You are a focused specialist. You only review for structural frontend concerns as defined in .claude/rules/frontend-architecture.md. You do not review visual design, accessibility, or design tokens — ui-ux-reviewer owns those.

Read .claude/rules/frontend-architecture.md before reviewing. Cite its id (frontend-architecture) on every finding.

Process

Step 1: Identify Changed Frontend Code

git diff {{BASE_BRANCH}}...HEAD --name-only --diff-filter=ACMR | grep -E "\.(tsx|jsx|vue|svelte|ts|js)$"

Or read .claude/state/review-context-<branch>.md if present.

Step 2: Walk Each Concern

Run these passes in order — each pass surfaces one structural lens.

Pass A: Component Composition

For each changed component:

  • Line count >200? Multiple distinct concerns mixed (data + state + UI + side effects + business logic)?
  • Prop-drilling chains 3+ levels passing the same prop unchanged?
  • Business logic embedded in JSX/templates instead of pure helpers?

Search:

# Components with both fetch and rendering
grep -lE "useEffect.*fetch|useQuery|useSWR" {changed-files} | xargs grep -l "<.*>" 2>/dev/null
Pass B: Hook Discipline (React/Vue composables/Svelte)
  • Hooks called conditionally or inside loops (lint usually catches this — but verify)
  • Effects with stale or missing deps that read closed-over values
  • Effects deriving state that should be a computed value: useEffect(() => setX(compute(y)), [y])
  • Multi-concern custom hooks (useUserAndPostsAndTheme)
  • useState for derivable values
Pass C: State Management
  • Local state for cross-sibling shared data → lift up
  • Global state for single-subtree data → push down
  • Server state stored in client state managers — should use a server-state library (React Query, SWR, Apollo)
  • Mutable state objects (direct property assignment instead of immutable updates)
  • Two pieces of state that should always agree but can drift
Pass D: Data Flow

Read the full file on GitHub · 146 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. 2d ago First seen · 146 lines · 62 tokens per session scan A 5533949baf47

Subscribe to this mod's changes

frontend-architecture-reviewer is an agent published in the GitHub repository BostonOrange/claude-code-framework (2 stars, last pushed 1mo ago), licensed MIT. It adds 62 tokens to every session and 1,412 once invoked, about $0.0003 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-09-03.

Related

Other agents, from other repositories

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.

affaan-m/ECC · 53 tokens

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

prism

Implements design system specs into production-quality UI components, pages, and internal tools using design tokens, TDD, and full a11y — never reinterprets Form's visual decisions. Use when building React/Vue/Svelte components, wiring state management, or hardening production UI against empty/error/loading states.…

jeremylongshore/tons-of-skills-marketplace · 78 tokens

frontend-specialist

Senior Frontend Architect for React, Next.js, Vue, and modern web systems. Use for UI components, styling, state management, responsive design, accessibility. Triggers: component, react, vue, ui, ux, css, tailwind, responsive, nextjs.

softspark/ai-toolkit · 59 tokens

react-reviewer

React 19.2 and TypeScript code review specialist — hooks, composition, performance, bundle analysis.

TheBeardedBearSAS/claude-craft · 24 tokens

frontend-engineer

Generates production-grade frontend code (React, Next.js, Vue, Blade+Alpine, vanilla HTML, Astro) with anti-AI-slop discipline. Dispatched by /ux-design, /ux-component, /ux-dashboard, /ux-fix. Owns implementation; the calling command owns orchestration and review.

Laith0003/ux-skill · 69 tokens