Back to list

An agent's ceiling isn't the model, it's the compression ratio

Jim Lin
AGITech

How does an agent actually learn to "do things"?

Memory systems explain how an agent remembers "who you are". Knowledge compilation explains how it organizes "what you know". The protocol layer explains how agents talk to each other. But "doing things" itself has never had a clean explanation.

The answer is Skills, which is to say procedural memory.

I don't want to write a tutorial on "how to use Skills". I want to make a different point: why Skills matter. Take them apart all the way down and every thread points to the same word: compression.

An agent without Skills: fumbling from zero every time

Take a real scenario.

A routine task (write a WeChat Official Account article for a client and publish it to their website) took an average of 25 tool calls when the agent had no relevant Skills built up. A month later, the same task was down to 8 to 10 calls.

Same model, same tools, same person. What changed was how settled its routine for the job had become.

Without a Skill, the agent fumbles its way through every time:

The user says "write an article about a product"
→ Which tool should I use? Search for a template first
→ Is there a similar article to reference? Check the list of past articles
→ How should the content be structured? Draft an outline first
→ Which generator for the images?
→ Which API do I publish to? What are the parameters?
→ Did the draft get created? Check
→ Did it publish? Confirm again

Every step is a choice, and every choice has several forks. The whole process is like finding your way through a city with no map, circling around before you get there.

With a Skill:

The user says "write an article about a product"
→ Load the matching Skill
→ Run the steps: confirm the topic → gather material → generate content → upload images → create draft → publish
→ Done

The forks are cut away, leaving one main road. The agent no longer has to figure out "what do I do next". It just follows the steps.

The model didn't get smarter. It just doesn't have to find the way again every time.

Why it's essentially compression

Turning a process that took 25 steps to spell out into a fixed 9-step procedure is compression in itself. Same result, shorter description. The compression ratio is about 2.78x, and that's the hard, real value of this Skill.

But there's a key difference from file compression like zip or gzip: file compression has to restore every byte exactly, and a Skill doesn't. Behavior wrapped in a Skill doesn't need to match any particular past execution path. It only has to reach the same goal.

In other words, Skill compression is allowed to be lossy. And the right amount of loss is exactly what generalization is. It doesn't remember "which buttons I clicked last time". It remembers "roughly how this kind of thing gets done". The first is memorizing one route. The second is learning to read the map.

That also explains why Skills that are too terse and Skills that are too detailed both fail:

  • Too terse: the Skill itself is short, but it leaves a pile of edge cases uncovered, and the agent has to improvise every time, so nothing is saved.
  • Too detailed: almost everything is hard-coded, but it's bloated and rigid, and the slightest change in reality breaks it.
  • The best kind: handles the common cases crisply and leaves room for the few exceptions.

In one sentence: as short as possible, as long as it still gets the job done.

For how to actually write one, borrow the idea from video compression:

  • Required steps = keyframes: record the core flow in full
  • Differences = record only where things deviate from the default path, without repeating yourself

The rest is continuous calibration. Every 15 tool calls, my agent runs a self-check to see whether the current Skill library has "situations that keep coming up but haven't been written in yet", then decides whether to add a line or just create a new Skill.

Learning a Skill is the same as the brain learning to ride a bike

This mechanism is almost exactly how the human brain learns skills.

When you first learn to ride a bike, play the piano or write code, you have to think about every move deliberately, and it's exhausting. Once you're fluent, those moves "sink down" and take almost no attention: you can ride and chat at the same time. In neuroscience terms, the skill moves from the prefrontal cortex, which handles deliberate control, to the cerebellum and basal ganglia, which handle automation.

An agent's Skills do the same thing: they push high-frequency actions down from "the model reasons it out on the spot every time" to "a ready-made program that just gets called".

Without Skills, the model has to think it through again every time. With Skills, the things you do often become muscle memory.

What's saved isn't trivial. Every "think it through again" burns tokens and time, while following a ready-made procedure takes almost no thought. That's why the same task can drop from 25 steps to 9 once it's practiced.

What the industry is doing

I'm not the only one thinking about this. Anthropic, OpenAI and the indie developer community have each taken a different route, but they're solving the same thing: don't let the agent start from zero every time.

Anthropic's route is "store it and reuse it". Prompt Caching caches long system prompts and instruction sets so later requests can reference them directly instead of sending them again every time. One level up, MCP (Model Context Protocol) defines an open spec so tools and capabilities can be declared uniformly and reused across platforms.

OpenAI's route is "box it and distribute it". GPTs bundle instructions, knowledge files and tool actions into a publishable unit, essentially pressing one domain's way of doing things into a package you can download and reference.

My own practice is "compile it into a ready-made program". SKILL.md is a pure Markdown procedure file that the agent loads and runs on demand. It sits in the middle: more structured than Prompt Caching, lighter and more open than GPTs.

DimensionAnthropicOpenAILocal Skill files
Core approachCache & reusePackage & distributeCompile into programs
Spec formatMCP (open)OpenAPI + GPT StoreSKILL.md + YAML

The three routes solve the same problem at different levels, and they can absolutely coexist: caching solves "repeated transmission", packaging solves "how to distribute", and compiling solves "how to wrap up a way of working precisely".

What a good Skill looks like

Enough theory, on to practice. A Skill that works well roughly meets five criteria.

The trigger has to be precise

The trigger is the Skill's "street address": it decides when the agent will use it. The more precisely it's written, the faster the match.

❌ "Used for querying data"
✅ "Use this skill when the user queries customer, project, sales, purchasing or inventory data in the ERP/CRM"

The content has to be layered

Don't stuff everything into one file. The mature approach keeps the entry file lean (8 to 15k characters) and splits details into sub-documents that load only when needed.

skill-name/
├── SKILL.md          # Entry: trigger, routing rules, core flow
├── references/       # Detailed reference docs (split by module)
├── scripts/          # Executable scripts
└── assets/           # Static assets

The steps have to be explicit

Break the task into a sequence of definite actions, so the model doesn't keep agonizing over "what am I supposed to do now".

Write down the pitfalls

The pitfalls you've hit aren't an optional appendix. They're one of the most valuable parts of a Skill. For example: "When the body HTML contains Chinese text, write it to a file instead of using a shell heredoc, to avoid encoding problems." The kind of thing you only know after getting burned: write it in directly, and the agent can route around it.

Delivery has to be self-checkable

Give the agent a checklist so it can verify its own work before every output, instead of "done when it's written".


Here's a real example. I have a "report output" Skill that pulls content out of a conversation and renders it as PDF / HTML / PPTX and other formats. A few things about it are worth mentioning:

First, extract first, then render. Every format shares the same intermediate data, so adding a new format just means writing one renderer. At heart, this separates "what to write" from "what format to output", each handled on its own, neither dragging the other down.

Second, layered quality checks. From content quality down to visual details, it's split into several layers, and every layer is a concrete, executable rule, like "never use pie charts, under any circumstances" or "right-align numeric columns, left-align text columns". These rules turn the agent from "generating by feel" into "executing to spec".

Third, parameterized style. Brand colors and logos are passed in as parameters instead of being buried in the prompt. Reports in different styles share the same rendering logic with different parameters, which is yet another layer of compression.

Skills transfer, and that's the key

From here we can think one step deeper.

What lets people cross domains isn't memorizing every domain's SOP. It's carrying the patterns learned in one domain into a new one. A chef who has mastered "heat control" doesn't start from zero when learning to bake, because temperature control works the same way.

If an agent's Skills can do that too, it gets genuinely interesting.

I've seen the beginnings of this transfer in my own Skill library. Take the pattern "the entry point only dispatches, and the concrete logic sinks into sub-modules". It first showed up in a Skill for querying business data. Later, completely different Skills, like report output and investment analysis, grew into the same structure on their own. I didn't design that on purpose. The pattern just works, so it fits wherever it goes.

Or "extract into a uniform format first, then render on demand": that pattern moved from report output to data analysis, and then to content publishing. The pattern spans tasks. Only the specific fields differ.

When an agent's Skill library starts reusing patterns across domains, it's no longer just "remembering how to do things". It's "understanding the structure of doing things".

It's a bit like design patterns in programming. Strategy, Observer and Factory aren't valuable because they're silver bullets. They're valuable because they compress "these problems are the same underneath" into a name that can spread. The agent Skill ecosystem will probably go the same way: instead of every domain writing its own from scratch, it'll recognize the few general patterns underneath and reuse and combine them everywhere.

My take

Writing this made a few conclusions clearer.

Skills aren't an optional feature. They're where agents are inevitably headed. An agent without Skills is like a person with no long-term memory, starting from zero in every conversation. You wouldn't hand serious work to a system that never grows up.

"Writing Skills" is a craft in its own right. Once you've internalized "as short as possible, as long as it still gets the job done", you naturally know what a good Skill looks like: not piling on words, but finding the balance point that's "concise yet covers enough cases". Precise triggers, layered structure, explicit steps, written-down pitfalls, self-checking: all five are ways of closing in on that balance.

The ceiling isn't in model parameters, it's in the compression ratio. Two agents on the same model can differ by an order of magnitude depending on whether they've built up good Skills. The parameter race is hitting its ceiling, but there's still huge room in how well you compress the routines of doing work.

Skill transfer is the endgame. The agent ecosystem only truly matures when good Skills can not just be reused but carry their underlying patterns across domains. It's a bit like npm for JavaScript: what circulates isn't just "I can use code someone else wrote", it's "the whole community's ways of solving problems".

References