npx skills add smithery/parcadei --skill modular-code
parcadei/continuous-claude-v3
modular-code
Modular Code Organization
Installation
npx skills add parcadei/continuous-claude-v3 --skill modular-code
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Creates a new Mojo or MAX project. Use when wanting to start a new Mojo or MAX project, initial…
2K installsBuild crypto wallets using Circle Modular Wallets SDK with passkey authentication, gasless tran…
728 installsTypography feels cohesive and intentional when font sizes follow a modular scale — a ratio-base…
7 installsEvaluate and improve code modularization using the Balanced Coupling Model. Analyzes coupling s…
464 installsUpgrades a project's Metabase Modular embedding SDK (@metabase/embedding-sdk-react) or Modular …
313 installsMigrates a project from Metabase Full App / Interactive (iframe-based) embedding to Modular (we…
1 installsAlso in this package
Other skills from parcadei/continuous-claude-v3 · top by installs.
npx skills add parcadei/continuous-claude-v3
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md2,930 B -
docs
SUMMARY.md45 B
History
- First seen on skills.sh
- First recorded snapshot · 555 installs
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
- Tests for the file are hard to organize
- AI tools truncate or miss context
How to Split
Natural Split Points
- By domain concept:
auth.py→auth/login.py,auth/tokens.py,auth/permissions.py - By abstraction layer: Separate interface from implementation
- By data type: Group operations on related data structures
- By I/O boundary: Isolate database, API, file operations
Package Structure
feature/
├── __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
DO
- Use meaningful module names (
data_storage.pynotutils2.py) - Keep
init.pyfiles minimal or empty - Group related functions together
- Isolate pure functions from side effects
- Use snake_case for module names
DON'T
- Split files arbitrarily by line count alone
- Create single-function modules
- Over-modularize into "package hell"
- Use dots or special characters in module names
- Hide dependencies with "magic" imports
Refactoring Large Files
When splitting an existing large file:
- Identify clusters: Find groups of related functions
- Extract incrementally: Move one cluster at a time
- Update imports: Fix all import statements
- Run tests: Verify nothing broke after each move
- Document: Update any references to old locations
Current Codebase Candidates
Files over 2000 lines that need attention:
- Math compute modules (scipy, mpmath, numpy) - domain-specific, may be acceptable
- patterns.py - consider splitting by pattern type
- memory_backfill.py - consider splitting by operation type