Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Modular Code Organization
.claude/skills/modular-code/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-11 | ✗→✓ | ▲ Improved | 22% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -21% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -9% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 2% | 0% |
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 functionsdata_storage.py not utils2.py)__init__.py files minimal or emptyWhen splitting an existing large file:
Files over 2000 lines that need attention:
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-11 | fail→pass | 14,390 | 12,080 | -16% | 1 | 1 | 0% | 2,270 | 2,780 | +22% | 0 | 0 | — |
case-01 | fail→fail | 15,719 | 15,879 | +1% | 1 | 1 | 0% | 2,943 | 3,305 | +12% | 0 | 0 | — |
case-02 | fail→pass | 13,706 | 16,307 | +19% | 1 | 1 | 0% | 2,377 | 3,296 | +39% | 0 | 0 | — |
case-03 | fail→pass | 14,351 | 6,470 | -55% | 1 | 1 | 0% | 2,399 | 1,901 | -21% | 0 | 0 | — |
case-04 | pass→pass | 10,146 | 3,491 | -66% | 1 | 1 | 0% | 1,728 | 1,426 | -17% | 0 | 0 | — |
case-05 | fail→pass | 10,776 | 4,376 | -59% | 1 | 1 | 0% | 1,701 | 1,543 | -9% | 0 | 0 | — |
case-06 | pass→pass | 9,235 | 6,655 | -28% | 1 | 1 | 0% | 1,587 | 2,033 | +28% | 0 | 0 | — |
case-07 | pass→pass | 11,350 | 9,113 | -20% | 1 | 1 | 0% | 1,985 | 2,445 | +23% | 0 | 0 | — |
case-08 | pass→pass | 13,878 | 7,700 | -45% | 1 | 1 | 0% | 2,156 | 2,227 | +3% | 0 | 0 | — |
case-09 | pass→pass | 14,559 | 8,363 | -43% | 1 | 1 | 0% | 2,696 | 2,414 | -10% | 0 | 0 | — |
case-10 | pass→pass | 11,349 | 5,535 | -51% | 1 | 1 | 0% | 1,977 | 1,700 | -14% | 0 | 0 | — |
case-12 | pass→pass | 12,603 | 11,742 | -7% | 1 | 1 | 0% | 2,039 | 2,741 | +34% | 0 | 0 | — |
case-13 | fail→pass | 6,991 | 2,552 | -63% | 1 | 1 | 0% | 1,186 | 1,205 | +2% | 0 | 0 | — |
case-14 | pass→pass | 7,233 | 2,093 | -71% | 1 | 1 | 0% | 1,298 | 1,134 | -13% | 0 | 0 | — |
case-15 | fail→pass | 7,145 | 5,068 | -29% | 1 | 1 | 0% | 1,166 | 1,671 | +43% | 0 | 0 | — |
case-16 | fail→fail | 11,233 | 5,273 | -53% | 1 | 1 | 0% | 1,789 | 1,667 | -7% | 0 | 0 | — |
case-17 | pass→pass | 13,202 | 7,008 | -47% | 1 | 1 | 0% | 2,242 | 2,000 | -11% | 0 | 0 | — |
case-18 | pass→pass | 14,645 | 10,366 | -29% | 1 | 1 | 0% | 2,599 | 2,648 | +2% | 0 | 0 | — |
case-19 | fail→pass | 12,922 | 9,600 | -26% | 1 | 1 | 0% | 2,152 | 2,489 | +16% | 0 | 0 | — |
case-20 | pass→pass | 14,727 | 10,875 | -26% | 1 | 1 | 0% | 2,613 | 2,613 | 0% | 0 | 0 | — |
case-21 | pass→pass | 12,328 | 13,268 | +8% | 1 | 1 | 0% | 2,317 | 3,286 | +42% | 0 | 0 | — |
case-22 | pass→pass | 13,530 | 14,315 | +6% | 1 | 1 | 0% | 2,543 | 3,429 | +35% | 0 | 0 | — |
case-23 | pass→fail | 14,345 | 14,782 | +3% | 1 | 1 | 0% | 2,411 | 3,211 | +33% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +26 percentage points is the difference between those two pass rates over the 23 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 7/29/2026 | +20% |
Other measured skills in the registry, with their headline benchmark lift.