What problem does it solve?
This skill provides a deep analysis of C# code to understand its structure, patterns, complexity, and dependencies, which is crucial before undertaking a migration to another language like Java.
Core Features & Use Cases
- Code Structure Analysis: Identifies classes, interfaces, methods, and their relationships.
- Async Pattern Detection: Locates and maps async/await usage.
- Dependency Analysis: Lists NuGet packages and internal class dependencies.
- Complexity Metrics: Calculates cyclomatic, cognitive complexity, and code health.
- Pattern Recognition: Detects design patterns and anti-patterns.
- Security Assessment: Identifies potential security vulnerabilities.
- Use Case: Before migrating a large C# application to Java, use this skill to get a comprehensive report on the codebase's complexity, identify areas that will be challenging to translate (e.g., heavy async usage, complex design patterns), and estimate the overall migration effort.
Quick Start
Use the csharp-analyzer skill to analyze the file PaymentProcessor.cs.