Portable skill loader progressive disclosure

From ychampion/cskill-agents · View interactive version

Portable skill loader progressive disclosure is an AI agent skill from the GitHub repository ychampion/cskill-agents. Keep the universal skill compact yet discoverable by loading minimal frontmatter first and heavy content on demand.

How to use this skill

Skill file

SKILL: Portable Skill Loader Progressive Disclosure

Domain: skill-loading

Trigger: Use when an agent must scan thousands of skills but only load detailed prompts for the handful that are actually invoked.

Source Pattern: Distilled from reviewed command-surface, skill-discovery, and CLI capability implementations.

Core Method

Separate discovery from loading. During startup, scan only lightweight metadata such as the skill name, summary, trigger text, and file location to build a searchable index. Load the full instruction body only after the agent actually selects that skill, and cache the resolved metadata and file identities so repeated lookups stay cheap. Deduplicate by canonical path, and skip invalid or ignored skill directories without failing the whole scan.

Key Rules

Example Application

When building a CLI skill browser for a large monorepo, index every skill folder using only summary metadata at startup, then load the full instructions only for the skills the user or model actually opens.

Anti-Patterns (What NOT to do)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.