Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

How Skills Work

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:

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:

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:

How does an agent "understand" a Skill? 🧠 Agent's brain "I need to find a skill that can complete the task" Read 📄 SKILL.md ① What it can do (description) ② What it needs (parameters) ③ What the rules are (constraints) ↓ Read it and you'll understand everything Understand ✅ Got it! Ready to call 💡 An analogy Imagine you've just joined a company and received a Job Operations Manual: 📖 Job description "You are customer service, responsible for handling refunds" 📋 Operation procedure "First verify the order number, then submit the refund" ⚠️ Notes "Over 500 yuan requires supervisor approval" After reading the manual, you know what to do, how to do it, and what you can't do. For an agent, SKILL.md is this very "operations manual."

Skill execution 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