From leyline
Provides patterns for context-aware progressive module loading in skills using hub-and-spoke architecture to optimize token budget and manage context for multi-workflow scenarios.
How this skill is triggered — by the user, by Claude, or both
Slash command
/leyline:progressive-loadingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#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.
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 workflowThis 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.
Command not found Ensure all dependencies are installed and in PATH
Permission errors Check file permissions and run with appropriate privileges
Unexpected behavior
Enable verbose logging with --verbose flag
npx claudepluginhub athola/claude-night-market --plugin leylineBuilds composable skill modules with hub-and-spoke loading for tight token budgets and high complexity. Includes skill-analyzer, token-estimator, and module-validator tools.
Defines patterns for agents to discover, reference, and compose skills using progressive disclosure to manage context efficiently for large skill sets.
Optimizes Claude Code skills for token efficiency using progressive disclosure, 500-line rule, and three-level loading of metadata, instructions, and resources.