From python-clean-architecture
Find and split god classes into focused collaborators
npx claudepluginhub mktoronto/python-clean-architecture --plugin python-clean-architecturepathAnalyze the code at `$ARGUMENTS` (or the current working directory if no path given) for god classes and generate the split. ## Process 1. **Read the code** — Find and read ALL Python files in the target path recursively. Read every `.py` file. 2. **Identify god classes** — A class is a god class if it has any of: - Too many distinct responsibilities (doing more than one thing) - Methods that cluster into unrelated groups - Too many instance variables - Methods that don't use most of the class's state 3. **Analyze responsibilities** — For each god class: - Group methods b...
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.