Agent skill
clean-code-god-object-detection
Sub-skill of clean-code: God Object Detection.
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/workspace-hub/clean-code/god-object-detection
SKILL.md
God Object Detection
God Object Detection
A "God Object" knows or does too much. Signs:
- File >600 lines with >8 classes or >15 functions
- Class that imports from 5+ different domain modules
- Function >50 lines with >3 different concerns
- File name that ends in
_utils.py,_helpers.py,_common.pywith >200 lines
# Files with many class definitions (God Object candidates)
grep -l "^class " src/**/*.py | xargs -I{} bash -c \
'count=$(grep -c "^class " {}); [ $count -gt 3 ] && echo "$count classes: {}"' | sort -rn
# Files with many function definitions
grep -l "^def \|^ def " src/**/*.py | xargs -I{} bash -c \
'count=$(grep -cE "^def |^ def " {}); [ $count -gt 15 ] && echo "$count funcs: {}"' | sort -rn
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?