py-complexity
Installation
SKILL.md
Python Complexity Reduction
Reduce code complexity to improve maintainability and understandability.
Effective use of context windows.
Objectives
- Measure cyclomatic and cognitive complexity
- Identify overly complex functions and modules
- Identify overly long files (no code files >500 lines, unless unavoidable)
- Apply refactoring patterns to reduce complexity
- Track complexity improvements over time
- Enforce complexity thresholds in CI/CD
Required Tools
Add to [dependency-groups] dev: "radon", "lizard", "xenon", "wily"