| name | progressive-loading |
| description | Implements hub-and-spoke lazy loading to minimize token usage in large skills. Use when building multi-module skills that need conditional on-demand loading. |
| alwaysApply | false |
| category | infrastructure |
| tags | ["progressive-disclosure","context-management","modularity","token-optimization","lazy-loading"] |
| dependencies | ["leyline:mecw-patterns"] |
| tools | [] |
| provides | {"infrastructure":["progressive-loading","context-based-selection","load-on-demand"],"patterns":["hub-and-spoke","conditional-loading","context-awareness"]} |
| usage_patterns | ["skill-optimization","context-aware-loading","dynamic-module-selection","token-budget-management"] |
| complexity | intermediate |
| model_hint | standard |
| estimated_tokens | 800 |
| progressive_loading | true |
| modules | ["modules/selection-strategies.md","modules/loading-patterns.md","modules/performance-budgeting.md","modules/advanced-patterns.md","modules/api-patterns.md","modules/api-review.md","modules/cargo-patterns.md","modules/document-analysis-patterns.md","modules/git-catchup-patterns.md","modules/git-patterns.md","modules/large-reference.md","modules/legacy-python.md","modules/linux-patterns.md","modules/log-analysis-patterns.md","modules/macos-patterns.md","modules/modern-python.md","modules/performance.md","modules/python-packaging.md","modules/python-patterns.md","modules/python-testing.md","modules/rust-review.md","modules/troubleshooting.md","modules/windows-patterns.md"] |
Table of Contents
Progressive Loading Patterns
Overview
Progressive loading provides standardized patterns for building skills that load modules dynamically based on context, user intent, and available token budget. This prevents loading unnecessary content while ensuring required functionality is available when needed.
The core principle: Start minimal, expand intelligently, monitor continuously.
When To Use
Use progressive loading when building skills that:
- Cover multiple distinct workflows or domains
- Need to manage context window efficiently
- Have modules that are mutually exclusive based on context
- Require MECW compliance for long-running sessions
- Want to optimize for common paths while supporting edge cases
When NOT To Use
- Project doesn't use the leyline infrastructure patterns
- Simple scripts without service architecture needs
Quick Start
Basic Hub Pattern
## Progressive Loading
**Context A**: Load `modules/loading-patterns.md` for scenario A
**Context B**: Load `modules/selection-strategies.md` for scenario B
**Always Available**: Core utilities, exit criteria, integration points
Verification: Run the command with flag to verify availability.