본문으로 건너뛰기
Skillpedia
일반 코딩40k · #7178

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/dotnet-design-pattern-review/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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, 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.

자주 묻는 질문

어떤 디자인 패턴을 확인하나요?

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬