dotnet-design-pattern-review
하는 일
이 도구는 C#/.NET 코드를 검토해 Command 패턴이나 Factory 패턴 같은 알려진 디자인 패턴을 제대로 사용했는지 확인합니다. 코드 구조를 개선해 더 체계적이고 유지보수하기 쉽게 만드는 방법을 제안합니다.
사용하는 경우
- ✓코드에서 디자인 패턴을 제대로 사용했는지 알고 싶을 때.
- ✓C#/.NET 프로젝트를 더 체계적으로 정리해야 할 때.
- ✓코드가 프로그래밍 모범 사례를 따르는지 확인하고 싶을 때.
스킬 링크
https://github.com/github/awesome-copilot/blob/main/skills/dotnet-design-pattern-review/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 C# 코드를 command 패턴과 factory 패턴 기준으로 검토해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
분석할 코드 조각을 붙여 넣습니다. 도구는 코드를 읽고 디자인 패턴 규칙과 모범 사례에 비추어 비교한 뒤, 잘된 점과 개선할 점을 알려 줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
.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,CommandHandlerOptionsinheritance, staticSetupCommand(IHost host)methods - Factory Pattern: Complex object creation service provider integration
- Dependency Injection: Primary constructor syntax,
ArgumentNullExceptionnull 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.
자주 묻는 질문
어떤 디자인 패턴을 확인하나요?
Command, Factory, Dependency Injection, Repository, Provider, Resource 같은 패턴과 SOLID 같은 원칙, 그리고 일반적인 .NET 모범 사례를 확인합니다.
도구가 제 코드를 바꾸나요?
아니요. 분석하고 개선 사항을 제안할 뿐입니다. 제안을 적용할지, 어떻게 적용할지는 사용자가 결정합니다.
이것을 쓰려면 프로그래밍을 많이 알아야 하나요?
아니요. 간단하게 쓰도록 만들었습니다. 초보자라도 코드가 잘 구조화되어 있는지 이해하도록 도와줍니다.
상세 정보
작성자의 원본 설명
Review the C#/.NET code for design pattern implementation and suggest improvements.
repo: github/awesome-copilot
인기도
- GitHub 스타
- 40k
- 순위
- #7178
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
acquire-codebase-knowledge
40k에이전트가 기존 코드 프로젝트를 이해하고 문서화하도록 돕습니다. 새 구성원을 맞이하거나 아키텍처를 개괄적으로 파악할 때 유용합니다.
acreadiness-assess
40k에이전트가 프로젝트의 AI 준비 상태를 평가하고 보고서를 만들도록 합니다. 프로젝트가 AI 도구를 쓸 준비가 얼마나 되어 있는지 이해하는 데 유용합니다.
acreadiness-generate-instructions
40k에이전트가 평가 결과를 바탕으로 AI 도구를 위한 지침을 만들도록 돕습니다. AI가 코드와 상호작용하는 방식을 개선하고 확인된 공백을 메울 때 유용합니다.
acreadiness-policy
40k에이전트가 AI 프로젝트 평가를 위한 정책을 정의하거나 적용하도록 돕습니다. 프로젝트 평가 방식을 표준화하고 규정 준수를 보장할 때 유용합니다.