What problem does it solve?
This Skill helps developers understand the complex relationships and dependencies within Python codebases by generating static call graphs, eliminating the need for manual code tracing or runtime execution.
Core Features & Use Cases
- Static Analysis: Analyzes Python code using Abstract Syntax Trees (AST) without executing it.
- Call Graph Generation: Creates visual representations (Mermaid diagrams) and structured data (JSON) of function and method calls.
- Dependency Mapping: Identifies how different parts of the codebase call each other, aiding in refactoring and debugging.
- Use Case: When onboarding to a new Python project, use this Skill to generate a call graph of the main application entry point to quickly grasp the project's architecture and data flow.
Quick Start
Use the python-call-graph skill to generate a Mermaid and JSON call graph for the local repository located at '/path/to/your/python/project'.