Knowledges 5 min

I Was Wrong About Agent Skills, and How I Restructured Them

Two weeks of cramming everything into 1,000+ line SKILL.md files, a bloated context window, and I still thought that was the right way. Then one weekend of restructuring with progressive disclosure cut the initial load by 85%.

Also in: Tiếng Việt · 中文 · 한국어 · 日本語

I Was Wrong About Agent Skills, and How I Restructured Them

What happened

Agent Skills launched on October 16. I started building them right away. Within two weeks I had a cloudflare skill at 1,131 lines, a shadcn-ui skill at 850 lines, a nextjs skill at 900 lines, and a chrome-devtools skill at >1,200 lines. My repo quickly passed 400+ stars.

I Was Wrong About Agent Skills, and How I Restructured Them

But... every time Claude Code activated several related skills, I saw the context window balloon. Loading 5-7 skills meant 5,000-7,000 lines flooding the context window instantly.

I thought this was simply how it had to be done: put everything into one giant SKILL.md file so the agent has all the information up front. More information = better results, right? Wrong.

The truth…

The embarrassing part is that the solution was right in front of me the whole time. I was treating agent skills like documentation dumps instead of what they really are: a context engineering problem.

The frustrating part is that I had even documented the “progressive disclosure” principle in my own skill-creator skill. I wrote it down. I just didn't understand what it actually meant in practice.

Technical details

I Was Wrong About Agent Skills, and How I Restructured Them

Before 🫣

text.claude/skills/
├── cloudflare/           1,131 lines
├── cloudflare-workers/   ~800 lines
├── nextjs/               ~900 lines
├── shadcn-ui/            ~850 lines
├── chrome-devtools/      ~1,200 lines
└── (30 more similarly bloated files)

Total: ~15,000 lines across 36 skills (roughly 120K to 300K tokens).

The problem: Activating a devops context (Cloudflare, Docker, or GCloud, constantly) meant loading 2,500+ lines instantly. Most of it never got used.

After: Progressive Disclosure architecture

I restructured everything around a 3-tier loading system:

mermaidflowchart TD
    T1["Tier 1: Metadata - always loaded"] -->|"Is the skill relevant?"| T2["Tier 2: SKILL.md entry point - loaded when the skill activates"]
    T2 -->|"Need details?"| T3["Tier 3: Reference files and scripts - loaded on demand"]
The 3-tier loading system of progressive disclosure

Locked section: The numbers

Locked section: Restructuring the claude-code skill

Locked section: Full reorganization, Phases 1 & 2

Locked section: Real-world impact

Locked section: Root cause analysis

Locked section: Lessons learned

Locked section: 1. The 200-line rule matters

Locked section: 2. Progressive disclosure isn't optional

Locked section: 3. References are first-class citizens

Locked section: 4. Test the cold start

Locked section: 5. Metrics never lie

Locked section: In short

The rest is for Knowledges members

Plus 12 more sections (about 3 min) for members

You are reading roughly the first third. Knowledges, Combo and Community plans unlock paid articles in full; the Zuey AI plan reads previews only.