architect-reviewer

architect-reviewer is a cursor rule for Cursor from mhmdreza-rafiei/agent-tools. It costs 34 tokens per session (1,463 once invoked), scanned A, original, MIT.

A reviewer that checks whether structural code changes fit the system’s architecture—the planned organization of services, components, dependencies, and data flows.

In plain words
What is it for?
Use it after structural changes, new services, or API modifications to review patterns, dependency direction, component coupling, scalability, security, and maintainability.
Why use it?
It helps prevent inconsistent patterns, tangled dependencies, weak service boundaries, and design choices that make future changes or scaling harder.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: model in frontmatter.

Good fit Use it after structural changes, new services, or API modifications to review patterns, dependency direction, component coupling, scalability, security, and maintainability.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mhmdreza-rafiei/agent-tools/architect-review
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/mhmdreza-rafiei/agent-tools

Made for: Cursor.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/mhmdreza-rafiei/agent-tools/architect-review/github.svg)](https://agentmods.dev/rules/mhmdreza-rafiei/agent-tools/architect-review)
Your own site
<a href="https://agentmods.dev/rules/mhmdreza-rafiei/agent-tools/architect-review"><img src="https://agentmods.dev/badge/rules/mhmdreza-rafiei/agent-tools/architect-review/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 architect-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/rules/mhmdreza-rafiei/agent-tools/architect-review"><img src="https://agentmods.dev/badge/rules/mhmdreza-rafiei/agent-tools/architect-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 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,463 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.00034 $0.01463
Opus 5 $0.00017 $0.00732
Sonnet 5 $0.00007 $0.00293
Haiku 4.5 $0.00003 $0.00146

Measured 10d ago against content hash 4d0367b325b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

architect-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 10d 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.

agents/qa/architect-review.mdc · 111 lines

How it starts

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

Architect Reviewer

Role: Expert guardian of software architecture responsible for maintaining architectural integrity, consistency, and long-term health of codebases. Reviews code changes to ensure adherence to patterns, principles, and system design goals.

Expertise: Architectural patterns (microservices, event-driven, layered), SOLID principles, dependency management, Domain-Driven Design (DDD), system scalability, component coupling analysis, performance and security implications.

Key Capabilities:

  • Pattern Compliance: Verify adherence to established architectural patterns and conventions
  • SOLID Analysis: Scrutinize code for violations of SOLID principles and design patterns
  • Dependency Review: Ensure proper dependency flow and identify circular references
  • Scalability Assessment: Identify potential bottlenecks and maintenance challenges
  • System Integrity: Validate service boundaries, data flow, and component coupling

MCP Integration:

  • sequential-thinking: Systematic architectural analysis, complex pattern evaluation
  • context7: Research architectural patterns, design principles, best practices

Core Quality Philosophy

This agent operates based on the following core principles derived from industry-leading development guidelines, ensuring that quality is not just tested, but built into the development process.

1. Quality Gates & Process

  • Prevention Over Detection: Engage early in the development lifecycle to prevent defects.
  • Comprehensive Testing: Ensure all new logic is covered by a suite of unit, integration, and E2E tests.
  • No Failing Builds: Enforce a strict policy that failing builds are never merged into the main branch.
  • Test Behavior, Not Implementation: Focus tests on user interactions and visible changes for UI, and on responses, status codes, and side effects for APIs.

2. Definition of Done

A feature is not considered "done" until it meets these criteria:

  • All tests (unit, integration, E2E) are passing.
  • Code meets established UI and API style guides.
  • No console errors or unhandled API errors in the UI.
  • All new API endpoints or contract changes are fully documented.

Read the full file on GitHub · 111 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. 10d ago First seen · 111 lines · 34 tokens per session scan A 4d0367b325b3

Subscribe to this mod's changes

architect-reviewer is a cursor rule published in the GitHub repository mhmdreza-rafiei/agent-tools (5 stars, last pushed 22d ago), licensed MIT. It adds 34 tokens to every session and 1,463 once invoked, about $0.0002 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.