How Skills Work
You might wonder: an agent isn't human, so how does it know what a Skill can do and how to do it?
** The answer is simple—by reading files.**
Behind every Skill, there's a description file, usually called SKILL.md, like a manual.
How Skills Work
Skills use progressive disclosure, letting the agent load information at different levels of detail at different stages. This design allows the agent to manage a large number of skills without exhausting context space.
Three stages
The agent loads skills in the following three stages:
-
1. Discovery stage:When a conversation starts, the agent scans all available skill folders, reading only each skill's name and description. This is the lightest information, enough for the agent to judge whether a skill might be relevant to the current task.
- ** **
2. Activation stage:When the agent judges that a skill's description matches the user's request, it loads the full SKILL.md file content into the context. At this point the agent reads the complete instructions and descriptions.
-
3. Execution stage:The agent executes the task according to the instructions in SKILL.md. During this process, the agent may call scripts bundled with the skill, read reference materials, or use other resources.
Advantages of progressive loading
| Stage | Loading Content | Typical size |
|---|---|---|
| Discovery stage | name + description | About 100 tokens |
| Activation stage | Full SKILL.md | Recommended not to exceed 5000 tokens |
| Execution stage | Scripts, reference materials, etc. | Loaded on demand |
Before executing a task, the agent first reads this manual to figure out three things:
- What can this Skill do? (capability description)
- To use it, what do I need to provide? (input parameters)
- What are the rules for doing this? (environmental constraints and notes)
After reading, the agent knows: oh, this Skill is suitable for solving the current problem, I'll call it.
The following diagram illustrates this process:
Skill execution flow
-
Starting from the user instruction, Skill intent recognition is performed first to decide whether to enter the controlled execution path.
-
Once a Skill is matched, the system loads SKILL.md, establishes tool permissions and behavioral boundaries, and then reasons with the context.
-
Allowed external tools are called only when truly needed; otherwise, logic is completed within the rules.
-
The final result is output after constraint integration, and the user's next input triggers a new full round of the flow.

How Skills work
After the user makes a request, the Agent first understands the task, then analyzes which capabilities (Skills) should be used to complete the work.
A Skill can be understood as an independent capability module or plugin, such as weather lookup, search, file processing, database access, etc.
The Agent is responsible for thinking and decision-making, while the Skill is responsible for executing actions. After execution, the result is returned to the Agent, which organizes it into an easy-to-understand result for the user and outputs it.
The entire process forms a complete closed loop: understanding → decision → execution → return result.

| Step | Stage | Agent's internal actions | Example |
|---|---|---|---|
| ① | User makes a request | Receive a natural language task | "Help me check the weather in Beijing today" |
| ② | Understand user intent | Analyze what the user really wants to do and extract parameters | Action: query; type: weather; location: Beijing |
| ③ | Make an execution plan | Break down the task into steps | Find a weather service → get weather data → organize the result |
| ④ | Select a Skill | Match the most suitable capability module | Select the Weather Skill |
| ⑤ | Execute the Skill | Call external tools or APIs | Request the weather API |
| ⑥ | Get the execution result | Receive data returned by the Skill | Temperature, humidity, air quality |
| ⑦ | Generate the final reply | Organize and convert to natural language | "Beijing is sunny today, 18°C~30°C" |
| ⑧ | Return to the user | Output the final result | The user sees the complete reply |
Skill types:
| Skill types | Description | Common Scenarios |
|---|---|---|
| Search Skill | Query external information | Search news, Q&A |
| Weather Skill | Get weather data | Weather query |
| File Skill | Read file contents | PDF、Word、Excel |
| Data analysis Skill | Data computation and statistics | Report analysis |
| Database Skill | Query the database | MySQL、PostgreSQL |
| Browser Skill | Automate web pages | Auto-login, scrape content |
| Code Skill | Execute code | Python、Node.js |
| Image Skill | Image processing capability | OCR, image generation |