archunitnet

archunitnet is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 104 tokens per session (1,097 once invoked), scanned A, original, MIT.

A guide for using ArchUnitNET, a free .NET library that tests whether code follows defined architecture rules.

In plain words
What is it for?
Use it to add architecture tests, configure ArchUnitNET in a project, and check assemblies against naming or dependency rules.
Why use it?
It helps verify boundaries and dependencies between parts of a .NET application when simple checks are not enough.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to add architecture tests, configure ArchUnitNET in a project, and check assemblies against naming or dependency rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/managedcode/dotnet-skills/archunitnet
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 managedcode/dotnet-skills --skill archunitnet
Clone the repo
git clone --depth 1 https://github.com/managedcode/dotnet-skills

Made for: Claude Code, Codex.

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 archunitnet

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/archunitnet"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/archunitnet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,097 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00104 $0.01097
Opus 5.5 $0.00042 $0.00439
Sonnet 5.5 $0.00021 $0.00219
Haiku 4.5 $0.00010 $0.00110

Measured 1mo ago against content hash 5fb6b3d70ded, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

archunitnet 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 1mo 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.

Origin

Copies of this mod

4 near-identical copies found in the catalogue:

catalog/Libraries/ArchUnitNET/skills/archunitnet/SKILL.md · 107 lines

How it starts

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

ArchUnitNET for .NET

Trigger On

  • the repo uses or wants ArchUnitNET
  • architecture testing needs richer modeling than simple dependency checks

Value

  • produce a concrete project delta: code, docs, config, tests, CI, or review artifact
  • reduce ambiguity through explicit planning, verification, and final validation skills
  • leave reusable project context so future tasks are faster and safer

Do Not Use For

  • the lightest possible architecture rule checks

Inputs

  • the nearest AGENTS.md
  • target assemblies
  • architecture boundaries and naming conventions

Quick Start

  1. Read the nearest AGENTS.md and confirm scope and constraints.
  2. Run this skill's Workflow through the Ralph Loop until outcomes are acceptable.
  3. Return the Required Result Format with concrete artifacts and verification evidence.

Workflow

  1. Load the architecture once per test assembly where possible.
  2. Encode a small number of durable, high-value architecture rules first.
  3. Use the test-framework-specific integration package that matches the repo.
  4. Enforce clear architectural boundaries between agent loops, tools, and domain models as detailed in building AI agents with .NET.

Bootstrap When Missing

If ArchUnitNET is not configured yet:

  1. Detect existing setup:
    • rg -n "TngTech\\.ArchUnitNET" -g '*.csproj' .
  2. Add packages to the architecture test project:
    • dotnet add TEST_PROJECT.csproj package TngTech.ArchUnitNET
    • add one framework bridge package: TngTech.ArchUnitNET.xUnit, TngTech.ArchUnitNET.xUnitV3, TngTech.ArchUnitNET.MSTestV2, or TngTech.ArchUnitNET.TUnit
  3. Add at least one durable boundary rule test.
  4. Wire architecture tests into the standard test command in AGENTS.md and CI.
  5. Run dotnet test TEST_PROJECT.csproj and return status: configured or status: improved.
  6. If NetArchTest already covers the same boundary policy and no gap exists, return status: not_applicable.

Read the full file on GitHub · 107 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +3 lines 5fb6b3d70ded
  2. 1mo ago First seen · 104 lines · 104 tokens per session scan A a78a5ee4c1c6

Subscribe to this mod's changes

archunitnet is a skill published in the GitHub repository managedcode/dotnet-skills (492 stars, last pushed yesterday), licensed MIT. It adds 104 tokens to every session and 1,097 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-08-30.

Related

Other skills, from other repositories

author-test

Generate a test given sample. Parameters: C# SDK repository root; Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; the sample to use as a starting point for the test.

Azure/azure-sdk-for-net · 68 tokens

clean-architecture-dotnet

Use when domain logic leaks into API/Infrastructure, project references violate layer boundaries, or you need to decide between CQS (always), CQRS bus (complex domains), and DDD patterns (invariants and events).

SebastienDegodez/copilot-instructions · 50 tokens

creating-dotnet-mcp-servers

Use when building Model Context Protocol (MCP) servers in .NET, configuring tools, transports (SSE/stdio), JSON serialization for AOT, or testing MCP endpoints.

SebastienDegodez/copilot-instructions · 43 tokens

rust-development

Idiomatisk Rust-utvikling med cargo, clippy, error handling, async/tokio, unsafe og testing.

navikt/copilot · 27 tokens

dotnet-testing-advanced

A guide that routes advanced .NET testing questions to the right specialist instructions. It covers API and integration tests, database and other container-based tests, microservices, .NET Aspire, and related testing tools.

kevintsengtw/dotnet-testing-agent-skills · 95 tokens

dotnet-testing-autodata-xunit-integration

A guide for using AutoFixture, a .NET library that creates test data, with xUnit, a .NET testing framework. It explains attributes such as AutoData, InlineAutoData, and MemberAutoData for supplying values to parameterized tests.

kevintsengtw/dotnet-testing-agent-skills · 136 tokens