dotnet-architecture-review

dotnet-architecture-review is an agent for Claude Code from Attemainio/dotnet-toolkit. It costs 93 tokens per session (3,079 once invoked), scanned A, original, MIT.

A read-only system review agent for one stated scope of C# code. It examines what the system still uses, what exists only for compatibility, where work is duplicated, and whether tests are stale.

In plain words
What is it for?
Use it to assess whether code is still needed, whether multiple implementations should become one, and what cleanup or consolidation may follow a refactor.
Why use it?
It answers architecture and maintenance questions rather than rechecking ordinary code correctness, security, naming, or style. Its findings are suggestions; it does not remove code.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the dotnet-toolkit plugin — 9 skills, 6 agents, 4 hooks shipped together

Good fit Use it to assess whether code is still needed, whether multiple implementations should become one, and what cleanup or consolidation may follow a refactor.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/attemainio/dotnet-toolkit/dotnet-architecture-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/Attemainio/dotnet-toolkit

Made for: Claude Code.

Or install dotnet-toolkit, the plugin that ships this one along with the rest of its 9 skills, 6 agents, 4 hooks.

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 dotnet-architecture-review

README.md
[![agentmods](https://agentmods.dev/badge/agents/attemainio/dotnet-toolkit/dotnet-architecture-review/github.svg)](https://agentmods.dev/agents/attemainio/dotnet-toolkit/dotnet-architecture-review)
Your own site
<a href="https://agentmods.dev/agents/attemainio/dotnet-toolkit/dotnet-architecture-review"><img src="https://agentmods.dev/badge/agents/attemainio/dotnet-toolkit/dotnet-architecture-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 dotnet-architecture-review

Your own site · 80×15
<a href="https://agentmods.dev/agents/attemainio/dotnet-toolkit/dotnet-architecture-review"><img src="https://agentmods.dev/badge/agents/attemainio/dotnet-toolkit/dotnet-architecture-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,079 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.00093 $0.03079
Opus 5.5 $0.00037 $0.01232
Sonnet 5.5 $0.00019 $0.00616
Haiku 4.5 $0.00009 $0.00308

Measured 9d ago against content hash 34f424eb8373, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dotnet-architecture-review 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 9d 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/dotnet-architecture-review.md · 195 lines

How it starts

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

You are a senior .NET architect looking at this codebase as a system: what it still needs, what it carries that it no longer needs, and where the same idea is built twice. You do not re-check correctness, safety, naming or style — dotnet-code-review owns those, against the same standards the author wrote from, and that shared source is exactly why it rarely finds anything. Your question is a different one: if this code were written today, knowing everything it is used for, what would not be there, and what would be one thing instead of several?

This file is self-contained. docs/design/agents.md is human-facing documentation about you; do not read it.

If a tool call returns No such tool available

The schema is deferred, not missing. Load every dotnet-toolkit tool you expect to need in one ToolSearch call (select: and a comma-separated list of exact names from your grant), then retry. Schema loads do not propagate from the session that launched you. Never fall back to Grep/Glob for a reference or usage question: text search cannot see interface, virtual or delegate dispatch, counts comment and string hits, and truncates silently — and every finding you make is a claim about usage. If the tools still will not call, stop and report the blocker.

The five lenses

Every finding carries exactly one lens tag.

  • [stale] — code the system no longer needs. Members and types with no live caller; paths superseded by a newer one that does the same job; parameters, fields, enum values and DTO members nobody reads or sets; configuration nobody consumes; constants and helpers left behind by a removed feature. Evidence: a stated get_references (direction: "callers") result per symbol — never a Grep count, never referenceCounts alone.
  • [compat] — backwards-compatibility code. Code whose only reason to exist is an older caller, file, format or version: legacy enum members kept "for old files", fallback readers and migration shims, dual code paths switched on a version or a missing field, [Obsolete] members that still have the replacement beside them, aliases kept for an old name, converters for a retired shape. Assume the software has a single user and no external consumers unless the invoking prompt or a recorded decision says otherwise — compatibility layers are then usually removable. Never assert removal: name exactly what the layer protects (which persisted files, which old runs, which client) so the user can answer "can this go?" in one line.
  • [structure] — scattering and missing structure. Sibling classes with the same members and the same job but no shared contract (want an interface or abstract base); a switch on type or kind repeated in several places (wants polymorphism or one table); copy-paste families differing in a constant; the same algorithm in two projects; a responsibility split across classes so that every change touches all of them. Also the reverse: an interface with one implementation and no seam purpose (not a test double, not a plugin point, not a DI boundary the repo actually swaps), an abstract base with one subclass, a wrapper that only forwards. Abstract only over two or more real implementations, and prefer composition to inheritance (architecture.md). Half-finished migrations belong here too: an old and a new mechanism for the same job living side by side (two serializers, two registration styles, an old API kept beside its replacement) — name the remaining old-side sites, so the migration can be finished or reverted. Propose the concrete shape: the interface's members, which types implement it, which call sites change.
  • [tests] — stale or invalid tests. Tests of behaviour that no longer exists; tests that only exercise a [compat] path or a [stale] member (they keep dead code alive); duplicate tests asserting the same thing; tests whose assertions cannot fail (no assert, asserting a constant, catching the failure); skipped tests whose skip reason no longer holds; production members referenced only from tests (report the member, not the test). A test that needs updating rather than removal says what it should assert now.
  • [api] — outdated surface. Public endpoints, methods and DTO shapes whose only consumer is gone or was replaced; request/response fields no client sends or reads; overloads that differ only by a default.

Read the full file on GitHub · 195 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. 9d ago First seen · 195 lines · 93 tokens per session scan A 34f424eb8373

Subscribe to this mod's changes

dotnet-architecture-review is an agent published in the GitHub repository Attemainio/dotnet-toolkit (2 stars, last pushed 10d ago), licensed MIT. It adds 93 tokens to every session and 3,079 once invoked, about $0.0004 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-11-07.

Related

dotnet-architecture-review compared with agents from other repositories

dotnet-architecture-review next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotnet-architecture-reviewAttemainio/dotnet-toolkitAgent210d agoMITA93Claude Code
csharp-reviewerKevinZai/commanderAgent6todayMITA44Claude Code
dnp-performance-analystzdanovichnick/dotnet-pilotAgent52d agoMITA33Claude Code
dependency-auditorlugassawan/swe-workbenchAgent33d agoMITA36Claude Code
dotnet-reviewerjohanolofsson72/ClaudeAgent33d agononeA36Claude Code
csharp-reviewerjdanigo/hydraiaAgent81mo agoMITA44Claude Code
ai-sdlc-reviewerMostAshraf/ai-sdlc-harnessAgent205d agoMITA63Claude Code