/python-clean-architecture:extract-god-class pathfrom python-clean-architecture
Scans Python files recursively for god classes with too many responsibilities, then proposes a split into focused collaborator classes and applies changes after user confirmation.
Ships in python-clean-architecture. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Analyze the code at $ARGUMENTS (or the current working directory if no path given) for god classes and generate the split.
Read the code — Find and read ALL Python files in the target path recursively. Read every .py file.
Identify god classes — A class is a god class if it has any of:
Analyze responsibilities — For each god class:
Propose extraction — Show:
__init__ parametersAsk before applying — Use AskUserQuestion to confirm the split. The user may want to adjust which methods go where.
Apply changes — Create the new files and update the original class and its callers.
Principles: P1 High Cohesion, P4 Composition over Inheritance. Consult ${CLAUDE_PLUGIN_ROOT}/skills/clean-architecture/references/design-principles.md for refactoring recipes.
7-day visitors to each command page
13 commands in this plugin
/add-endpointScaffold a new endpoint across all three architecture layers/check-qualityQuick code quality check against the 22 design rules/decoupleFind tight coupling and suggest dependency injection improvements/diagnose-smellsDetect code smells and anti-patterns with fix suggestions/learn-architectureLearn an architecture or design topic — theory, the Pythonic way, and how it applies in your code/make-pythonicRefactor code to use Pythonic patternsnpx claudepluginhub mktoronto/python-clean-architecture --plugin python-clean-architectureOther plugins' commands for the same job