Skip to content
Back to skills

Progressive Disclosure

ASecurity

Structuring modular agent skills and toolsets with progressive disclosure to eliminate prompt bloat and avoid multi-agent sprawl

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsgorailsrefactoringdatabasesecuritydocumentation

Security analysis

A100/100

Scanned November 6, 2026

npx -y skills add bepaldes/heimdall-agent --skill progressive-disclosure --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Progressive Disclosure?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Progressive Disclosure
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bepaldes-progressive-disclosure/badge)](https://www.skillsdirectory.com/skills/bepaldes-progressive-disclosure)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: progressive-disclosure
description: Structuring modular agent skills and toolsets with progressive disclosure to eliminate prompt bloat and avoid multi-agent sprawl
---

# Progressive Disclosure & Modular Skill Architecture

## Overview
This skill operationalizes Anthropic's guidance from *"Building agents: When to fold subagents into your main agent loop"* (October 2026) and Google's agentic engineering standards.

Defaulting to multi-agent org charts (spawning separate agents for planning, routing, and minor domain steps) introduces severe overhead:
- **3–10× Token Inflation**: Every nested subagent call duplicates system prompts and model invocations.
- **Context Degradation (The Telephone Game)**: Nuances are lost across summaries and handoffs.
- **Subagent Sprawl & The Frankenprompt**: Endless accretion of overlapping prompts that contradict one another.

**The Solution**: A **single main agent loop** powered by **Progressive Disclosure**.

---

## 1. The Three Layers of Progressive Disclosure

```mermaid
flowchart TD
    L1["Layer 1: Discovery Metadata (Always in Prompt)<br>• Skill Name (gerund)<br>• 1-line Description (~20 words)"]
    L2["Layer 2: Procedure on Demand (Loaded when triggered)<br>• SKILL.md detailed instructions<br>• Execution steps & guardrails"]
    L3["Layer 3: Auxiliary References (Loaded only if needed)<br>• templates/, scripts/, examples/<br>• Max 1 level deep"]

    L1 -->|Triggered by Task| L2
    L2 -->|Deep Domain Work| L3
```

### Layer 1: Discovery Metadata (Always Present, Ultra-Light)
- Only the YAML frontmatter `name` and `description` are loaded into the agent's baseline system prompt.
- Descriptions must be concise (<25 words) and explicitly state the trigger conditions using active gerunds (e.g., `optimizing-database-queries`, `designing-ui-components`).
- *Impact*: Cuts initial system prompt token consumption by >80%.

### Layer 2: On-Demand Skill Instructions (`SKILL.md`)
- The agent reads `SKILL.md` only when the active task matches the skill's description.
- Detailed step-by-step algorithms, checklists, and edge-case handling reside here.

### Layer 3: Shallow Reference Assets (`references/`, `examples/`)
- Complex reference tables, boilerplate code, or schemas are kept in separate sibling files within the skill directory.
- Keep references **exactly one level deep** directly linked from `SKILL.md`. Never build deeply nested documentation trees.

---

## 2. When to Fold vs. When Subagents Earn Their Place

Use this decision matrix before spawning a child subagent:

| Scenario | Architectural Choice | Reason |
| :--- | :--- | :--- |
| **Sequential domain task** (e.g., write migration, update schema, test endpoint) | **Main Agent Loop + Skill** | Single loop retains unbroken reasoning chain; 3–5× cheaper and faster. |
| **Tool-heavy workflow** (>30 tools available) | **Tool Search / Deferred Loading** | Tool discovery prevents tool hallucination without requiring child agents. |
| **Stateless Adversarial Review** | **Subagent (Goldfish)** | Invariant requires total blinding from conversational backstory ("Elephant"). |
| **Parallel Fan-out** (3+ independent test fixes or audit sweeps) | **Parallel Subagents** | Concurrent execution across isolated failure domains. |
| **Strict Security / Permission Sandbox** | **Subagent** | Subagent runs with restricted credentials or isolated read-only tools. |

---

## 3. Skill Authoring Checklist

When writing or refactoring any skill in `skills/`:
- [ ] **Name**: Gerund format (`writing-plans`, `diagnosing-superpowers`).
- [ ] **Description**: Concise (<25 words), stating when and why to activate.
- [ ] **No Monolithic Injections**: Large schemas or long text examples moved to `examples/` or `references/`.
- [ ] **Direct File Links**: All reference files linked via relative markdown links.
- [ ] **Clean Exit Criteria**: Explicit conditions defining when the skill procedure is complete.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.