Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
athola avatar

Progressive Loading

  • 92 installs
  • 325 repo stars
  • Updated August 2, 2026
  • athola/claude-night-market

Design hub-and-spoke and advanced progressive-loading for large agent skills—adaptive tiers, DAG modules, caches, and load-failure recovery.

About

Progressive Loading is advanced documentation for skill authors who already understand basic hub-and-spoke loading and selection strategies. It explains when to escalate beyond simple splits: oversized skills that cannot be decomposed, module DAGs instead of flat lists, long sessions that require eviction, and graceful degradation when a module file is missing or fails to parse. Pattern one walks through an AdaptiveSelector that reads telemetry hits and demotes low-use modules to lower tiers. The module assumes familiarity with loading-patterns.md, selection-strategies.md, and performance-budgeting.md in the same night-market library. Solo builders shipping multi-file Claude skills use it to keep context lean without dropping capabilities. This is meta procedural knowledge—not a user-facing product generator—aimed at intermediate-to-advanced authors optimizing agent sessions.

  • Covers adaptive loading driven by per-session module hit-rate telemetry
  • Resolves directed acyclic graph dependencies across skill modules
  • Documents multi-tier caches with eviction for long sessions
  • Defines recovery when a module load fails mid-session instead of aborting
  • Explicit gate: use only when skills exceed ~800–1500 token targets or need DAG/cache semantics

Progressive Loading by the numbers

  • 92 all-time installs (skills.sh)
  • Ranked #270 of 782 Skill Development skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/athola/claude-night-market --skill progressive-loading

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs92
repo stars325
Security audit3 / 3 scanners passed
Last updatedAugust 2, 2026
Repositoryathola/claude-night-market

What it does

Design hub-and-spoke and advanced progressive-loading for large agent skills—adaptive tiers, DAG modules, caches, and load-failure recovery.

Files

SKILL.mdMarkdownGitHub ↗

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 --help flag to verify availability.

Context-Based Selection

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.

Hub-and-Spoke Architecture

Hub Responsibilities

1. Context Detection: Identify user intent, artifacts, workflow type 2. Module Selection: Choose which modules to load based on context 3. Budget Management: Verify MECW compliance before loading 4. Integration Coordination: Provide integration points with other skills 5. Exit Criteria: Define completion criteria across all paths

Spoke Characteristics

1. Single Responsibility: Each module serves one workflow or domain 2. Self-Contained: Modules don't depend on other modules 3. Context-Tagged: Clear indicators of when module applies 4. Token-Budgeted: Known token cost for selection decisions 5. 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:catchup loads 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

1. Design Hub First: Define all possible contexts and module boundaries 2. Tag Modules Clearly: Use YAML frontmatter to indicate context triggers 3. Measure Token Cost: Know the cost of each module for selection 4. Monitor Loading: Track which modules are actually used 5. Validate Paths: Verify all context paths have required modules 6. Document Triggers: Make context detection logic transparent

Module References

Core (always available to the hub)

  • Selection Strategies: See modules/selection-strategies.md for choosing modules
  • Loading Patterns: See modules/loading-patterns.md for implementation techniques
  • Performance Budgeting: See modules/performance-budgeting.md for token budget model and optimization workflow
  • Advanced Patterns: See modules/advanced-patterns.md for nested hubs, multi-tier disclosure, and cross-skill module sharing
  • Troubleshooting: See modules/troubleshooting.md when modules fail to load, context detection misfires, or token budgets are exceeded

Context-Specific Pattern Modules

These 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 patterns
  • modules/macos-patterns.md: macOS-specific tooling and platform quirks
  • modules/windows-patterns.md: Windows shell, path, and PowerShell patterns

Language and runtime patterns (load on detected ecosystem):

  • modules/modern-python.md: Python 3.11+ idioms, typing, async
  • modules/legacy-python.md: Python 2 / pre-3.8 compatibility patterns
  • modules/python-packaging.md: pyproject.toml, uv, pip, hatch, poetry
  • modules/python-patterns.md: General Python authoring patterns
  • modules/python-testing.md: pytest, fixtures, parametrization, mocking
  • modules/cargo-patterns.md: Rust Cargo workspace and dependency patterns
  • modules/rust-review.md: Rust code-review patterns

Workflow patterns (load on detected task):

  • modules/api-patterns.md: API design and endpoint conventions
  • modules/api-review.md: API surface review patterns
  • modules/git-patterns.md: Git workflow and history patterns
  • modules/git-catchup-patterns.md: Catching up on a branch or PR diff
  • modules/document-analysis-patterns.md: Reading and analyzing documents
  • modules/log-analysis-patterns.md: Parsing and reasoning over logs
  • modules/performance.md: Performance investigation patterns

Reference material (load only when explicitly cited):

  • modules/large-reference.md: Large reference tables and lookups (load

last; tokens are non-trivial)

Integration with Other Skills

This skill provides foundational patterns referenced by:

  • abstract:modular-skills - Uses progressive loading for skill design
  • conserve:context-optimization - Uses for MECW-compliant loading
  • imbue:catchup - Uses for context-based module selection
  • Plugin authors building multi-workflow skills

Reference 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.

Exit Criteria

  • Hub clearly defines all module loading contexts
  • Each module is tagged with activation context
  • Module selection respects MECW constraints
  • Token costs measured for all modules
  • Context detection logic documented
  • Loading paths validated for completeness

Related skills

FAQ

Is Progressive Loading safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Skill Developmentagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.