dotnet-architecture

dotnet-architecture is a skill for Claude Code from Attemainio/dotnet-toolkit. It costs 133 tokens per session (1,019 once invoked), scanned A, original, MIT.

A system-level review skill for C# and .NET code. It looks across the codebase for stale code, compatibility layers, duplicated abstractions, and tests left behind by refactoring.

In plain words
What is it for?
Use it after substantial architectural changes or when deciding what can be removed, merged, simplified, or replaced across a .NET project.
Why use it?
A normal code review asks whether individual code is correct; this review asks whether the system still needs each part and whether several parts should be consolidated.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

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

Good fit Use it after substantial architectural changes or when deciding what can be removed, merged, simplified, or replaced across a .NET project.

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

Any agent
npx skills add Attemainio/dotnet-toolkit --skill dotnet-architecture
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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/attemainio/dotnet-toolkit/dotnet-architecture"><img src="https://agentmods.dev/badge/skills/attemainio/dotnet-toolkit/dotnet-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,019 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.00133 $0.01019
Opus 5.5 $0.00053 $0.00408
Sonnet 5.5 $0.00027 $0.00204
Haiku 4.5 $0.00013 $0.00102

Measured 23d ago against content hash 03fa0107904f, 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 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 23d 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.

skills/dotnet-architecture/SKILL.md · 79 lines

How it starts

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

Delegating to dotnet-architecture-review

dotnet-architecture-review reviews what the system still needs and how it could be simpler: staleness, compatibility layers, scattering, abstraction fit, stale tests. dotnet-code-review (dotnet-review) judges each piece of code on its own merits against the standards; this agent judges the pieces against each other and against what uses them. Both are read-only and report; acting on a finding is the invoking agent's job, after the user agrees.

Host adapter

Claude Code launches the bundled dotnet-architecture-review agent directly. Codex does not install custom-agent registrations: there, launch the built-in read-only explorer and start its brief with "Read <pluginRoot>/agents/dotnet-architecture-review.md and follow its Markdown body; ignore only the Claude-specific YAML frontmatter." The canonical brief stays under agents/.

Step 0 — workspace readiness

Same gate as skills/dotnet-review/SKILL.md Step 0, and it matters more here: every finding this agent makes is a usage claim, so a workspace that is not loaded turns live code into "stale" code. Call workspace_status yourself before launching; take pluginRoot from it for the briefs.

Partitioning

Coarser than a code review — staleness and scattering only show across files:

  • One project or one subsystem (a removed engine and its callers, a feature folder): one instance.
  • A solution: one instance per project, or per large top-level folder of a big project. Keep a production folder and its test folder in the same slice, so the [tests] lens sees both sides.
  • After a change: diff mode with the baseline, one instance per cluster of changed folders.

Scopes are disjoint and stated as explicit paths.

What to tell each instance

  • Scope and pluginRoot (required); mode (scope by default, or diff with its baseline).
  • Who consumes the code. The agent assumes a single user and no external consumers unless told otherwise. Say so if a library is published, an API has outside clients, or old files on disk must keep loading.
  • Recorded decisions the agent cannot find itself (it has no git): compatibility the user already chose to keep, families the user confirmed as capability, a decision log path.

Read the full file on GitHub · 79 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. 23d ago First seen · 79 lines · 133 tokens per session scan A 03fa0107904f

Subscribe to this mod's changes

dotnet-architecture is a skill published in the GitHub repository Attemainio/dotnet-toolkit (2 stars, last pushed 24d ago), licensed MIT. It adds 133 tokens to every session and 1,019 once invoked, about $0.0005 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 compared with skills from other repositories

dotnet-architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotnet-architectureAttemainio/dotnet-toolkitSkill224d agoMITA133Claude Code
resharper-cltmanagedcode/dotnet-skillsSkill52716d agoMITA107Claude Code, Codex
roslynatormanagedcode/dotnet-skillsSkill52716d agoMITA107Claude Code, Codex
stylecop-analyzersmanagedcode/dotnet-skillsSkill52716d agoMITA142Claude Code, Codex
dotnet-best-practicesPracticalSwan/agent-skillsSkill2515d agoMITA43Codex
exec-csharpanhnguyen0905/codex-mcpSkill44d agoMITA37Claude Code
dotnet-code-reviewbeel-collab/presets.devSkill37d agoMITA50Claude Code, Codex