modular-code

Installation
SKILL.md

Modular Code Organization

Write modular Python code with files sized for maintainability and AI-assisted development.

File Size Guidelines

Lines Status Action
150-500 Optimal Sweet spot for AI code editors and human comprehension
500-1000 Large Look for natural split points
1000-2000 Too large Refactor into focused modules
2000+ Critical Must split - causes tooling issues and cognitive overload

When to Split

Split when ANY of these apply:

  • File exceeds 500 lines
  • Multiple unrelated concerns in same file
  • Scroll fatigue finding functions
Related skills
Installs
361
GitHub Stars
3.8K
First Seen
Jan 22, 2026