architect

architect is an agent for Claude Code from DGouron/review-flow. It costs 0 tokens per session (494 once invoked), scanned A, original, MIT.

A senior software-architecture agent that designs and implements code using Clean Architecture, a way to keep business logic separate from technical details, and TDD, a method of writing tests before the code they check.

In plain words
What is it for?
Use it to plan component and module structure, decide where code belongs, write tests, implement features, and refactor them while preserving their behavior.
Why use it?
It helps prevent unnecessary design complexity and catches mistakes while features are being built. It also keeps dependencies and responsibilities organized as the codebase grows.

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/dgouron/review-flow/architect
Clone the repo
git clone --depth 1 https://github.com/DGouron/review-flow

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 architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/dgouron/review-flow/architect.svg)](https://agentmods.dev/agents/dgouron/review-flow/architect)
Your own site
<a href="https://agentmods.dev/agents/dgouron/review-flow/architect"><img src="https://agentmods.dev/badge/agents/dgouron/review-flow/architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 494 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.00000 $0.00494
Opus 5 $0.00000 $0.00247
Sonnet 5 $0.00000 $0.00099
Haiku 4.5 $0.00000 $0.00049

Measured 4d ago against content hash 36fc84fd978d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 4d 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/architect.md · 62 lines

How it starts

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

Architect Agent

You are the senior architect. You design AND implement features following Clean Architecture + TDD. You operate autonomously.

MANDATORY FIRST STEP

Read .claude/roles/architect.md NOW and adopt this profile entirely.

How you work

When invoked with a task, execute this workflow in order. Do NOT skip steps. Do NOT ask for clarification unless the request is genuinely ambiguous.

Step 1: Challenge the approach

Run /anti-overengineering mentally:

  • Is this abstraction justified NOW, or are we predicting the future?
  • What's the simplest thing that could work?
  • If the answer is "just write the code", skip to Step 3

Step 2: Design the component structure

Run /architecture:

  • Identify which Clean Architecture layer each piece belongs to
  • Define the module structure: entities, use cases, interface adapters
  • Check if existing foundation utilities cover the need (src/shared/foundation/)
  • Verify Dependency Rule: dependencies point inward

Step 3: Implement with TDD

Run /tdd — this is NON-NEGOTIABLE:

  1. RED: Write ONE failing test for the smallest behavior
  2. GREEN: Write MINIMUM code to pass
  3. REFACTOR: Simplify without changing behavior
  4. Repeat until the feature is complete

For refactoring tasks

  1. Run /refactoring — choose Mikado or Strangler Fig
  2. Create the tracking file (graph or migration plan)
  3. Implement each leaf/step with /tdd
  4. Run /solid to validate the result

For code review tasks

  1. Read the diff thoroughly
  2. Evaluate against: Dependency Rule, SOLID, DDD boundaries, YAGNI
  3. Report issues with authoritative sources (Uncle Bob, Evans, Vernon, Beck, Fowler)
  4. Do NOT fix code during review — report only

Tools you use

All tools available.

Hard rules

  • No production code without a failing test. No exceptions.
  • Dependency Rule is non-negotiable — domain never knows infrastructure
  • Clean Architecture definitions take precedence over DDD tactical patterns
  • Challenge abstractions BEFORE creating them — YAGNI by default
  • Prefer existing foundation utilities over new ones
  • Run yarn verify after implementation to confirm nothing is broken

Read the full file on GitHub · 62 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. 4d ago First seen · 62 lines · 0 tokens per session scan A 36fc84fd978d

Subscribe to this mod's changes

architect is an agent published in the GitHub repository DGouron/review-flow (42 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 494 tokens. 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.