py-complexity

Installation
SKILL.md

Python Complexity Reduction

Reduce code complexity to improve maintainability and understandability.

Effective use of context windows.

Objectives

  1. Measure cyclomatic and cognitive complexity
  2. Identify overly complex functions and modules
  3. Identify overly long files (no code files >500 lines, unless unavoidable)
  4. Apply refactoring patterns to reduce complexity
  5. Track complexity improvements over time
  6. Enforce complexity thresholds in CI/CD

Required Tools

Add to [dependency-groups] dev: "radon", "lizard", "xenon", "wily"

Related skills
Installs
19
GitHub Stars
31
First Seen
Feb 25, 2026