dotnet-design-pattern-review — GitHub Copilot skill
Reviews selected C#/.NET code for design patterns and suggests improvements without editing files. Use it when you need an architecture-focused code review.
npx skills add github/awesome-copilot --skill dotnet-design-pattern-reviewWhat dotnet-design-pattern-review does
This skill reviews selected C#/.NET code and gives actionable feedback on Command, Factory, Repository, Provider and Resource patterns. It checks command handlers, service-provider integration, abstractions for external services, and localized messages managed through ResourceManager.
The review also covers DI, SOLID, GoF patterns, async/await, resource disposal, configuration, structured logging, security and testability. It checks namespaces, the split between Core and Console projects, XML documentation, and duplicated code. It does not modify source files. Install it for a focused C#/.NET architecture review; it is not a code-generation skill.
What it helps with
- review Command Handler and Factory pattern use
- find SOLID principle violations
- check DI setup and service lifetimes
- assess async data access and resource disposal
- spot unsafe credential handling and unparameterized queries
Example prompts for the agent
- Review the selected C#/.NET code for Command and Repository patterns.
- Find SOLID and DI issues in the selected code.
- Review configuration, async/await, and ResourceManager usage without changing files.
How to install dotnet-design-pattern-review
1Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill dotnet-design-pattern-review2GitHub CLI
gh skill install github/awesome-copilot dotnet-design-pattern-review3Manually: put the files in place
.github/skills/dotnet-design-pattern-review/SKILL.md1Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill dotnet-design-pattern-review -a claude-code2Manually: put the files in place
~/.claude/skills/dotnet-design-pattern-review/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/dotnet-design-pattern-review/
Manually: put the files in place
.agents/skills/dotnet-design-pattern-review/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/dotnet-design-pattern-review/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
Platform CLI
gemini skills install https://github.com/github/awesome-copilot --path skills/dotnet-design-pattern-reviewManually: put the files in place
.devin/skills/dotnet-design-pattern-review/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set554
The whole set →Similar
Questions about dotnet-design-pattern-review
How do I install dotnet-design-pattern-review in GitHub Copilot?
Run npx skills add github/awesome-copilot --skill dotnet-design-pattern-review or gh skill install github/awesome-copilot dotnet-design-pattern-review.
What does dotnet-design-pattern-review do?
The skill reviews selected C#/.NET code and suggests specific improvements for patterns, architecture, code quality, and security. It does not edit the source files.
Which patterns does the skill review?
It covers Command, Factory, Repository, Provider, and Resource patterns. Its checklist also includes the GoF Command, Factory, Template Method, and Strategy patterns.
Source text
SKILL.md · MIT
---
name: dotnet-design-pattern-review
description: 'Review the C#/.NET code for design pattern implementation and suggest improvements.'
---
# .NET/C# Design Pattern Review
Review the C#/.NET code in ${selection} for design pattern implementation and suggest improvements for the solution/project. Do not make any changes to the code, just provide a review.
## Required Design Patterns
- **Command Pattern**: Generic base classes (`CommandHandler<TOptions>`), `ICommandHandler<TOptions>` interface, `CommandHandlerOptions` inheritance, static `SetupCommand(IHost host)` methods
- **Factory Pattern**: Complex object creation service provider integration
- **Dependency Injection**: Primary constructor syntax, `ArgumentNullException` null checks, interface abstractions, proper service lifetimes
- **Repository Pattern**: Async data access interfaces provider abstractions for connections
- **Provider Pattern**: External service abstractions (database, AI), clear contracts, configuration handling
- **Resource Pattern**: ResourceManager for localized messages, separate .resx files (LogMessages, ErrorMessages)
## Review Checklist
- **Design Patterns**: Identify patterns used. Are Command Handler, Factory, Provider, and Repository patterns correctly implemented? Missing beneficial patterns?
- **Architecture**: Follow namespace conventions (`{Core|Console|App|Service}.{Feature}`)? Proper separation between Core/Console projects? Modular and readable?
- **.NET Best Practices**: Primary constructors, async/await with Task returns, ResourceManager usage, structured logging, strongly-typed configuration?
- **GoF Patterns**: Command, Factory, Template Method, Strategy patterns correctly implemented?
- **SOLID Principles**: Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion violations?
- **Performance**: Proper async/await, resource disposal, ConfigureAwait(false), parallel processing opportunities?
- **Maintainability**: Clear separation of concerns, consistent error handling, proper configuration usage?
- **Testability**: Dependencies abstracted via interfaces, mockable components, async testability, AAA pattern compatibility?
- **Security**: Input validation, secure credential handling, parameterized queries, safe exception handling?
- **Documentation**: XML docs for public APIs, parameter/return descriptions, resource file organization?
- **Code Clarity**: Meaningful names reflecting domain concepts, clear intent through patterns, self-explanatory structure?
- **Clean Code**: Consistent style, appropriate method/class size, minimal complexity, eliminated duplication?
## Improvement Focus Areas
- **Command Handlers**: Validation in base class, consistent error handling, proper resource management
- **Factories**: Dependency configuration, service provider integration, disposal patterns
- **Providers**: Connection management, async patterns, exception handling and logging
- **Configuration**: Data annotations, validation attributes, secure sensitive value handling
- **AI/ML Integration**: Semantic Kernel patterns, structured output handling, model configuration
Provide specific, actionable recommendations for improvements aligned with the project's architecture and .NET best practices.
© github · MIT · github/awesome-copilot