maestro/skills/modular-code/SKILL.md
Modular Code Organization
npx skillsauth add scooter-lacroix/maestro modular-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Write modular Python code with files sized for maintainability and AI-assisted development.
| 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 |
Split when ANY of these apply:
auth.py → auth/login.py, auth/tokens.py, auth/permissions.pyfeature/
├── __init__.py # Keep minimal, just exports
├── core.py # Main logic (under 500 lines)
├── models.py # Data structures
├── handlers.py # I/O and side effects
└── utils.py # Pure helper functions
data_storage.py not utils2.py)__init__.py files minimal or emptyWhen splitting an existing large file:
Files over 2000 lines that need attention:
tools
Wiring Verification
tools
Create and configure Maestro sub-agents with custom prompts, tools, and models
data-ai
Create and use Maestro slash commands - quick prompts, bash execution, file references
development
Upgrade any skill to v5 Hybrid format using decision theory + modal logic