ronnythedev/dotnet-clean-architecture-skills/01-dotnet-clean-architecture
Claude Code and agent skill by ronnythedev/dotnet-clean-architecture-skills
- community
Checking that the SKILL.md file is still in the repository.
Scaffolds a complete .NET solution following Clean Architecture principles with proper layer separation (API, Application, Domain, Infrastructure). Creates project structure, dependency injection setup, and cross-cutting concerns configuration.
Install
npx vskill@latest install ronnythedev/dotnet-clean-architecture-skills/01-dotnet-clean-architectureSKILL.md
.NET Clean Architecture Project Scaffolder
Overview
This skill generates a complete .NET solution following Clean Architecture (also known as Onion Architecture or Hexagonal Architecture). The architecture enforces separation of concerns through distinct layers with unidirectional dependencies pointing inward.
Architecture Layers
Dependency Rule: Dependencies point inward. Domain has no dependencies. Application depends only on Domain. Infrastructure implements interfaces from Domain/Application.
Quick Reference
| Task | Command/Action | |
|---|---|---|
| Create solution | dotnet new sln -n {SolutionName} | |
| Create Domain project | dotnet new classlib -n {name}.domain | |
| Create Application project | dotnet new classlib -n {name}.application | |
| Create Infrastructure project | dotnet new classlib -n {name}.infrastructure | |
| Create API project | dotnet new webapi -n {name}.api | |
| Add project to solution | dotnet sln add src/{project}/{project}.csproj | |
| Add project reference | dotnet add reference ../other/other.csproj |
Project Structure
Step 1: Create Solution and Projects
Step 2: Domain Layer Setup
Entity Base Class
Domain Event Interface
Unit of Work Interface
Result Pattern (see result-pattern skill for full implementation)
Step 3: Application Layer Setup
Package References
CQRS Abstractions
Dependency Injection
Step 4: Infrastructure Layer Setup
Package References
Application DbContext
Dependency Injection
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/01-dotnet-clean-architecture/SKILL.md
Popularity
- Repository stars
- 64
- Repository forks
- 11
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ronnythedev/dotnet-clean-architecture-skills/01-dotnet-clean-architecture)