dotnet-clean-architecture

dotnet-clean-architecture is a skill for Claude Code from fmflurry/settings-opencode. It costs 104 tokens per session (5,283 once invoked), scanned A, original, MIT.

A scaffold and architecture guide for building .NET 10 Minimal APIs, small HTTP services, as isolated modules with separate application, domain, and infrastructure code.

In plain words
What is it for?
Use it to create modules, endpoints, and use cases, or refactor an existing .NET API toward self-registering modules and ports-and-adapters architecture.
Why use it?
It gives new features a consistent structure and keeps business rules separate from databases, HTTP clients, queues, and filesystems.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it to create modules, endpoints, and use cases, or refactor an existing .NET API toward self-registering modules and ports-and-adapters architecture.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmflurry/settings-opencode/dotnet-clean-architecture"><img src="https://agentmods.dev/badge/skills/fmflurry/settings-opencode/dotnet-clean-architecture.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 5,283 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.05283
Opus 5.5 $0.00042 $0.02113
Sonnet 5.5 $0.00021 $0.01057
Haiku 4.5 $0.00010 $0.00528

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

Security

Grade A, and why

dotnet-clean-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 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.

.claude/skills/dotnet-clean-architecture/SKILL.md · 425 lines

How it starts

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

.NET Clean Architecture: Minimal API + Hexagonal + Modular

SOURCE OF TRUTH (SoT): Minimal API endpoints self-register via IEndpoint, and each module self-registers its DI via IModule; both are discovered by reflection in GcPlatform.SharedKernel.Modularity.ModuleExtensions. Each module is a hexagon: Domain (pure logic, zero infrastructure) → Application (use cases, ports) ↔ Infrastructure (adapters, EF Core or Marten, RLS). Presentation composes the module (endpoints, the <Module>Module : IModule registrar) and is the only layer allowed to wire Infrastructure. Persistence is chosen per bounded context — EF Core CRUD and event-sourced Marten stores are both first-class; there is no global default (ADR-0037, ADR-0048). Modules communicate asynchronously via serialized integration events over the Wolverine message bus — events are the only inter-module contract (ADR-0014). Per-module language autonomy: the same real-world entity may be named differently across modules, but every module's language MUST be English, and within a module each concept has exactly one name. Database isolation is one PostgreSQL schema per module with FORCE ROW LEVEL SECURITY (RLS), a per-module GUC app.tenant_id, and lightweight per-module roles (ADR-0013/0038).

Optional additive patterns (opt-in per module): DDD (aggregates, value objects, domain events) and CQRS (separate read/write models). Event Sourcing (Marten event stores) is a first-class persistence choice per bounded context, not an optional add-on. See optional-ddd-cqrs.md and optional-event-sourcing.md.

Language & Naming (MANDATORY)

All code MUST be written in English — identifiers, comments, and documentation — regardless of the user's language or the conversation language. French (or any other non-English) identifiers, comments, or docs are a hard violation. This mirrors the commit-message mandate (the git-workflow skill, Canonical spec, Language).

Read the full file on GitHub · 425 lines

Files

What ships with it

6 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 6b03f660fbbc
  2. 1mo ago Changed 1628bd74742d
  3. 2mo ago Changed · +1 lines d80a333e58ec
  4. 2mo ago Changed · +225 lines · +18 tokens per session 0d6cd3e079a9
  5. 3mo ago First seen · 199 lines · 86 tokens per session scan A 967e61783821

Subscribe to this mod's changes

dotnet-clean-architecture is a skill published in the GitHub repository fmflurry/settings-opencode (170 stars, last pushed 25d ago), licensed MIT. It adds 104 tokens to every session and 5,283 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

dotnet-clean-architecture compared with skills from other repositories

dotnet-clean-architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotnet-clean-architecturefmflurry/settings-opencodeSkill17025d agoMITA104Claude Code
agui-dotnet-streaming-chatag-ui-protocol/ag-uiSkill22k2d agoMITA223Claude Code
create-datadriven-aspnetcoredotnet/skillsSkill6.4ktodayMITA147Claude Code
azure-maps-search-dotnetmicrosoft/skillsSkill3.3k3d agoMITA91Claude Code
azure-mgmt-apicenter-dotnetmicrosoft/skillsSkill3.3k3d agoMITA97Claude Code
azure-ai-voicelive-dotnetmicrosoft/skillsSkill3.3k3d agoMITA92Claude Code
omnistudio-callable-apex-generateforcedotcom/sf-skillsSkill1.2k3d agoApache-2.0A176Claude Code, Codex