plugins/leyline/skills/progressive-loading/SKILL.md
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.
npx skillsauth add athola/claude-night-market progressive-loadingInstall 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.
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.
Use progressive loading when building skills that:
## 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 --help flag to verify availability.
from leyline import ModuleSelector, MECWMonitor
selector = ModuleSelector(skill_path="my-skill/")
modules = selector.select_modules(
context={"intent": "git-catchup", "artifacts": ["git", "python"]},
max_tokens=MECWMonitor().get_safe_budget()
)
Verification: Run the command with --help flag to verify availability.
See modules/selection-strategies.md for detailed strategies:
See modules/loading-patterns.md for implementation patterns:
imbue:catchup loads git/docs/logs modules by contextmodules/selection-strategies.md for choosing modulesmodules/loading-patterns.md for implementation techniquesmodules/performance-budgeting.md for token budget model and optimization workflowmodules/advanced-patterns.md for nested hubs, multi-tier disclosure, and cross-skill module sharingmodules/troubleshooting.md when modules fail to load, context detection misfires, or token budgets are exceededThese modules are loaded on demand by the hub based on detected artifacts and user intent. They are listed in frontmatter so the selector can match them, but the hub should only load the ones whose activation context fires.
Operating-system patterns (load on detected platform):
modules/linux-patterns.md — Linux-specific shell, paths, and process patternsmodules/macos-patterns.md — macOS-specific tooling and platform quirksmodules/windows-patterns.md — Windows shell, path, and PowerShell patternsLanguage and runtime patterns (load on detected ecosystem):
modules/modern-python.md — Python 3.11+ idioms, typing, asyncmodules/legacy-python.md — Python 2 / pre-3.8 compatibility patternsmodules/python-packaging.md — pyproject.toml, uv, pip, hatch, poetrymodules/python-patterns.md — General Python authoring patternsmodules/python-testing.md — pytest, fixtures, parametrization, mockingmodules/cargo-patterns.md — Rust Cargo workspace and dependency patternsmodules/rust-review.md — Rust code-review patternsWorkflow patterns (load on detected task):
modules/api-patterns.md — API design and endpoint conventionsmodules/api-review.md — API surface review patternsmodules/git-patterns.md — Git workflow and history patternsmodules/git-catchup-patterns.md — Catching up on a branch or PR diffmodules/document-analysis-patterns.md — Reading and analyzing documentsmodules/log-analysis-patterns.md — Parsing and reasoning over logsmodules/performance.md — Performance investigation patternsReference material (load only when explicitly cited):
modules/large-reference.md — Large reference tables and lookups (load
last; tokens are non-trivial)This skill provides foundational patterns referenced by:
abstract:modular-skills - Uses progressive loading for skill designconserve:context-optimization - Uses for MECW-compliant loadingimbue:catchup - Uses for context-based module selectionReference in your skill's frontmatter:
dependencies: [leyline:progressive-loading, leyline:mecw-patterns]
progressive_loading: true
Verification: Run the command with --help flag to verify availability.
tools
Detect friction signals; graduate patterns into rules. Use for session retrospectives.
testing
Use when you need a diff-derived test plan for an MR — reads the diff, groups changes by area, runs targeted verifications, and proves revert-tests are genuine guards, not dead assertions.
development
Curate the web-capture index. Use when the capture backlog grows, captures sit unprocessed at seedling/pending, or to surface stored research during work.
testing
Probe memory/summary clarity via dual anchor questions: task progress, info gaps. Use when verifying session state or summary before handoff or compression.