clean-architecture SKILL.md skillA

clean-architecture from alexander-danilenko/cortex-claude-code-plugins is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add alexander-danilenko/cortex-claude-code-plugins/clean-architecture@git:20261013.ecfffa1

Pins git:20261013.ecfffa1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
alexander-danilenko/cortex-claude-code-plugins
Path
plugins/engineering/cortex-dotnet/skills/clean-architecture/SKILL.md
Versions recorded
1
Latest version
git:20261013.ecfffa1, committed Oct 13, 2026
Size
4,396 bytes
Repository stars
17
License
MIT

Apply these opinionated .NET 8 architecture conventions whenever structuring or reviewing a backend service: clean architecture layering and which direction dependencies point, when CQRS with MediatR is worth it, cross-cutting concerns as pipeline behaviours, minimal APIs grouped by feature, keeping DbContext in Infrastructure, health checks and structured logging, WebApplicationFactory integration tests, and when AOT pays off.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# .NET Core Architecture

House architecture conventions for .NET 8 backend services. This covers how a service is _structured_; for language-level conventions see the `csharp` skill.

## Layering

Dependencies point inward only. Domain knows nothing about anything else, and Infrastructure is the one layer allowed to reference a database or an SDK — which is what lets the inner layers be tested without either.

```text
Domain          entities, value objects, domain events, interfaces  → no dependencies
Application     use cases, CQRS handlers, DTOs, validators          → Domain
Infrastructure  EF Core, external APIs, implementations of Domain interfaces → Domain + Application
Api             endpoints, DI wiring, middleware                    → all of the above
```

The test that keeps this honest: if `Domain` compiles with no package references beyond the BCL, the boundary is intact.

Entities enforce their own invariants: private setters, a private parameterless constructor for EF Core's materialiser, and a static factory that validates. Public setters mean any layer can put the entity into an invalid state, and then "the domain guarantees X" is just a comment.

```csharp
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add alexander-danilenko/cortex-claude-code-plugins/clean-architecture@sha256:6cd3e04a52478844

The line at the top of this page pins the label git:20261013.ecfffa1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_t6x7swgl75zjswj5.svg)](https://markdownregistry.com/a/art_t6x7swgl75zjswj5)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Oct 13, 2026.

versioncommittedcommitsizeaudit
git:20261013.ecfffa1 latest2026-10-13 ecfffa1 4,396 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4396 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

alexander-danilenko/cortex-claude-code-plugins · 17 stars · license MIT · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_t6x7swgl75zjswj5
GET https://markdownregistry.com/api/v1/resolve?ref=alexander-danilenko/cortex-claude-code-plugins/clean-architecture
GET https://markdownregistry.com/api/v1/blob/6cd3e04a524788448d66a21b0f03d549d086f3a5aa46da18396dd301c5c14fc4

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from alexander-danilenko/cortex-claude-code-plugins

CLAUDE.md CLAUDE.md file
alexander-danilenko/cortex-claude-code-plugins · CLAUDE.md
git:20261013.35be08e · audit A · 17 stars
answer-buzzkill SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/common/cortex-communication/skills/answer-buzzkill/SKILL.md · Write a short, fact-checked reply that answers a colleague's question in one meaning only, ready to copy and paste. The…
git:20261013.ecfffa1 · audit A · 17 stars
humanize-text SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/common/cortex-communication/skills/humanize-text/SKILL.md · Remove signs of AI-generated writing from text. Use after drafting to make copy sound more natural and human-written…
git:20261013.ecfffa1 · audit A · 17 stars
simple-english SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/common/cortex-communication/skills/simple-english/SKILL.md · Write or audit technical text against ASD-STE100 Simplified Technical English so a tired, non-native reader understands…
git:20261013.ecfffa1 · audit A · 17 stars
resolve-feedback SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/engineering/cortex-coderabbit/skills/resolve-feedback/SKILL.md · Resolve CodeRabbit review feedback on a GitHub pull request. Collects every open CodeRabbit finding (inline threads…
git:20261013.ecfffa1 · audit A · 17 stars
csharp SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/engineering/cortex-dotnet/skills/csharp/SKILL.md · Apply these opinionated C# conventions whenever writing or reviewing C# 12 / .NET 8+ code: nullable enabled with…
git:20261013.ecfffa1 · audit A · 17 stars
qa-scope SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/engineering/cortex-jira/skills/qa-scope/SKILL.md · Draft the QA scope and plain-language Given/When/Then test scenarios for a Jira ticket, built from the full ticket, the…
git:20261013.ecfffa1 · audit A · 17 stars
report-comment SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/engineering/cortex-jira/skills/report-comment/SKILL.md · Turn the git commits for a Jira ticket into a short, business-friendly implementation report and save it as local…
git:20261013.ecfffa1 · audit A · 17 stars
documentation SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/engineering/cortex-knowledge/skills/documentation/SKILL.md · ALWAYS invoke for any task involving docstrings, JSDoc/TSDoc, or REST API documentation — even when the request seems…
git:20261013.ecfffa1 · audit A · 17 stars
learn-with-docs-refresh SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/engineering/cortex-knowledge/skills/learn-with-docs-refresh/SKILL.md · Audit and maintain the learnings in `docs/solutions/` against the current codebase — fix drifted paths and links, merge…
git:20261013.ecfffa1 · audit A · 17 stars
learn-with-docs SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/engineering/cortex-knowledge/skills/learn-with-docs/SKILL.md · Capture a solved, verified problem as a durable learning in `docs/solutions/` so the next agent or engineer does not…
git:20261013.ecfffa1 · audit A · 17 stars
legacy SKILL.md skill
alexander-danilenko/cortex-claude-code-plugins · plugins/engineering/cortex-modernization/skills/legacy/SKILL.md · Apply this opinionated workflow when modernizing legacy systems: strangler fig pattern, branch by abstraction…
git:20261013.ecfffa1 · audit A · 17 stars

Every file in alexander-danilenko/cortex-claude-code-plugins

Other files named clean-architecture

clean-architecture SKILL.md skill
ciembor/agent-rules-books · clean-architecture/SKILL.md · Apply Robert C. Martin-inspired architecture rules when separating business policy from frameworks, databases, UI, or…
git:20260909.802595f · audit A · 3,089 stars
clean-architecture SKILL.md skill
wondelai/skills · plugins/systems-architecture/skills/clean-architecture/SKILL.md · Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to…
v1.4.0 · audit A · 2,472 stars
clean-architecture SKILL.md skill
wondelai/skills · clean-architecture/SKILL.md · Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to…
v1.4.0 · audit A · 2,472 stars
clean-architecture SKILL.md skill
wondelai/skills · plugins/wondelai-skills/skills/clean-architecture/SKILL.md · Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to…
v1.4.0 · audit A · 2,472 stars
clean-architecture SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-php/skills/clean-architecture/SKILL.md · Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven…
git:20260223.c6d4db1 · audit A · 359 stars
clean-architecture SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-typescript/skills/clean-architecture/SKILL.md · Provides implementation patterns for Clean Architecture, Domain-Driven Design (DDD), and Hexagonal Architecture (Ports…
git:20260323.227390f · audit A · 359 stars
clean-architecture SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-python/skills/clean-architecture/SKILL.md · Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven…
git:20260223.c6d4db1 · audit A · 359 stars
clean-architecture SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-java/skills/clean-architecture/SKILL.md · Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven…
git:20260324.a02e282 · audit A · 359 stars

Browse by kind, by grade A, or by owner.