Prompt file imported from JohnVonDrashek/desales-dungeon-helper (
.claude/commands/analyze-code.md). Fill in{{arguments}}before use. Copyright stays with the author.
Analyze the C# codebase for code quality, patterns, and potential improvements.
Target
{{arguments}}
Analysis Checklist
-
Architecture Review
- Check adherence to SOLID principles
- Identify dependency injection patterns
- Review layer separation (if applicable)
-
Code Quality
- Nullable reference type usage
- Async/await patterns
- Exception handling practices
- Disposal patterns (IDisposable, IAsyncDisposable)
-
Performance Considerations
- LINQ usage and potential N+1 queries
- String concatenation in loops
- Appropriate use of Span and Memory
- Collection initialization
-
Security Review
- Input validation
- SQL injection prevention
- Secrets handling
-
Testing Coverage
- Test file existence for each class
- Test naming conventions
- Assertion quality
Provide actionable recommendations with code examples.