progressive-loading
БесплатноБез исполняемых скриптовНе проверенImplements hub-and-spoke lazy loading to minimize token usage in large skills
от athola1 921 установка в других каталогахОб этом скилле
Night Market Skill: ported from claude-night-market/leyline. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
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 --help flag to verify availability.
Context-Based Selection
Modules are declared in the skill's YAML frontmatter and
loaded on demand with a @modules/ directive. The hub reads
the detected context, then loads only the spokes that match:
---
modules:
- modules/git-catchup-patterns.md
- modules/python-testing.md
---
When the intent is a branch or PR catch-up, load
`@modules/git-catchup-patterns.md`. When the artifacts include
Python tests, also load `@modules/python-testing.md`.
To keep loads within the MECW token budget, check whether a
module fits before pulling it in. The MECWMonitor in
plugins/leyline/src/leyline/mecw.py exposes the methods used
here:
from leyline.mecw import MECWMonitor
monitor = MECWMonitor()
monitor.track_usage(current_context_tokens)
# module_estimated_tokens comes from the module frontmatter
can_load, reasons = monitor.can_handle_additional(module_estimated_tokens)
Load the next module only when can_load is true. Each
module records its cost in its frontmatter estimated_tokens
field.
Hub-and-Spoke Architecture
Hub Responsibilities
- Context Detection: Identify user intent, artifacts, workflow type
- Module Selection: Choose which modules to load based on context
- Budget Management: Verify MECW compliance before loading
- Integration Coordination: Provide integration points with other skills
- Exit Criteria: Define completion criteria across all paths
Spoke Characteristics
- Single Responsibility: Each module serves one workflow or domain
- Self-Contained: Modules don't depend on other modules
- Context-Tagged: Clear indicators of when module applies
- Token-Budgeted: Known token cost for selection decisions
- Independently Testable: Can be evaluated in isolation
Selection Strategies
See modules/selection-strategies.md for detailed strategies:
- Intent-based: Load based on detected user goals
- Artifact-based: Load based on detected files/systems
- Budget-aware: Load within available token budget
- Progressive: Load core first, expand as needed
- Mutually-exclusive: Load one path from multiple options
Loading Patterns
See modules/loading-patterns.md for implementation patterns:
- Conditional includes: Dynamic module references
- Lazy loading: Load on first use
- Tiered disclosure: Core → common → edge cases
- Context switching: Change loaded modules mid-session
- Preemptive unloading: Remove unused modules under pressure
Common Use Cases
- Multi-Domain Skills:
imbue:catchuploads git/docs/logs modules by context - Context-Heavy Analysis: Load relevant modules only, defer deep-dives, unload completed
- Plugin Infrastructure: Mix-and-match infrastructure modules with version checks
Best Practices
- Design Hub First: Define all possible contexts and module boundaries
- Tag Modules Clearly: Use YAML frontmatter to indicate context triggers
- Measure Token Cost: Know the cost of each module for selection
- Monitor Loading: Track which modules are actually used
- Validate Paths: Verify all context paths have required modules
- Document Triggers: Make context detection logic transparent
Module References
Core (always available to the hub)
- Selection Strategies: See
modules/selection-strategies.mdfor choosing modules - Loading Patterns: See
modules/loading-patterns.mdfor implementation techniques - Performance Budgeting: See `modules/performance
Установить progressive-loading в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл progressive-loading?
Implements hub-and-spoke lazy loading to minimize token usage in large skills
Как установить скилл progressive-loading?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл progressive-loading запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic