What problem does it solve?
This Skill turns an opaque Python codebase into a measurable architecture map by identifying hotspots, integration points, coupling risks, and actionable refactoring opportunities.
Core Features & Use Cases
- Complexity Hotspots: Finds the most critical functions using highest fan-in (most called) and flags likely bottlenecks.
- Architectural Pattern Detection: Surfaces core modules, integration bridges, layering violations, and risk indicators such as unusually large files and orphaned code.
- Dependency Analysis: Analyzes imports and containment relationships to detect circular dependencies, tight coupling, and isolated components.
- Actionable Reporting: Produces both a detailed Markdown report and a JSON snapshot for further review, including critical paths and recommended next steps.
Real-world use case: you suspect performance or maintainability issues in a large Python service and need a structured report pinpointing where changes will have the biggest impact.
Quick Start
Use the command pycodekg analyze . (in your repository directory) after asking for a complete pycodekg analysis to generate the Markdown report and JSON snapshot.