---
title: "I Was Wrong About Agent Skills, and How I Restructured Them"
url: "https://zuey.me/articles/toi-da-sai-ve-agent-skills-va-cach-toi-tai-cau-truc-chung?lang=en"
locale: en
access: members
full_text: false
published_at: "2025-11-07T03:43:53.000Z"
tags: ["Claude Code", "AI Agents", "Context Engineering"]
translations:
  vi: "https://zuey.me/articles/toi-da-sai-ve-agent-skills-va-cach-toi-tai-cau-truc-chung.md?lang=vi"
  zh: "https://zuey.me/articles/toi-da-sai-ve-agent-skills-va-cach-toi-tai-cau-truc-chung.md?lang=zh"
  ko: "https://zuey.me/articles/toi-da-sai-ve-agent-skills-va-cach-toi-tai-cau-truc-chung.md?lang=ko"
  ja: "https://zuey.me/articles/toi-da-sai-ve-agent-skills-va-cach-toi-tai-cau-truc-chung.md?lang=ja"
---
# 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%.

![I Was Wrong About Agent Skills, and How I Restructured Them](https://media.zuey.me/research/5e60ccba-64d056e6-da55-452c-b748-dcd6cd9585df-1280x640-png.webp)

> **TIP:** **TL;DR:** I used to treat Agent Skills like documentation dumps: every skill was one giant SKILL.md file, all of it loaded into context. Restructuring around progressive disclosure (metadata → ~200-line entry point → reference files loaded on demand) cut the initial load by 79–85%.

### 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](https://media.zuey.me/research/02d174c2-e0b555a4-32b0-4416-80e1-01d845f0b99f-800x533-svg.webp)

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

> **WARN:** Here's what really bugs me: I wasted two weeks debugging “context growth” issues and slow activation times when the problem was entirely self-inflicted. Every one of those giant SKILL.md files was **loading irrelevant information 90% of the time**.

### Technical details

![I Was Wrong About Agent Skills, and How I Restructured Them](https://media.zuey.me/research/da9a4b24-attachment.png)

#### 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:

```mermaid
flowchart 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*

---

*Phần còn lại dành cho thành viên có quyền đọc toàn bài (Knowledges, Kết hợp, Cộng đồng) — see plans at https://zuey.me/pricing*
