What Skills Really Are: From Tool Calling to Task Capability Engineering
This article explains what "Skills" mean in LLM-based applications and why they amount to more than function calling or longer prompts. It clarifies the distinct roles of function calling, Skills, and the Model Context Protocol (MCP), then covers structured output validation, state machines for multi-step tasks, idempotency and recovery, Skill governance across permissions, versioning, and data security, and how to evaluate whether a Skill actually works. Readers will learn how to turn scattered operational knowledge into bounded, reusable, and verifiable task capabilities.
1. Understanding Skills: “Calling a Tool” Is Not “Completing a Task”
When building applications on top of large language models, a common misconception is that once a model can call external functions, it already has the ability to reliably complete business tasks.
In reality, there is a clear gap between the two.
Take “generate a monthly business analysis report” as an example. The model may need to query business data, confirm statistical definitions, handle missing values, compute metrics, explain anomalies, and then output the report in a fixed format. Even if every step has a callable tool, the model still needs to know:
- Which data to fetch first and which calculations to run afterward;
- Whether data from different sources uses the same statistical definitions;
- Whether to continue or pause and ask the user when data is incomplete;
- Which conclusions must be backed by evidence;
- Which operations require additional authorization;
- What conditions must be met for the task to count as complete.
Tools solve “being able to perform an action,” while Skills try to solve “how to reliably complete a class of tasks.”
So a Skill can be understood as: a reusable capability unit that organizes operational knowledge, execution rules, tool dependencies, reference resources, and acceptance criteria around a specific task.
It is worth stressing that there is no single, fully unified technical definition of Skills across all systems. In different implementations, a Skill may appear as a capability description file, a task instruction package, a workflow template, or a set of capabilities made up of documentation and executable resources. When discussing its essence, focus on responsibilities and boundaries rather than mistaking a particular implementation for an industry standard.
2. What Each of the Three Concepts Solves
2.1 Function Calling: Letting the Model Express Execution Intent
Function calling usually means the model outputs a tool name and structured arguments according to the tool definitions provided by the system, and the application performs the actual operation.
For example, when a user asks about the weather in a location, the model can produce a call intent like this:
{"tool": "query_weather","arguments": {"location": "Beijing","unit": "celsius"}}
The fields here only illustrate the call structure and do not represent the interface specification of any specific service.
The model does not directly enter the external system to run the query. What actually completes the network request, permission checks, and result handling is the application runtime.
So the core responsibility of function calling is to connect “language understanding” with “program execution.” It can help the model select a tool and organize arguments, but it cannot shoulder complete business governance on its own.
2.2 Skills: Organizing Actions into Task Capabilities
Skills sit at a higher level of abstraction. They describe not only “what can be called” but also “when to call it, how to combine calls, and how to judge success.”
For example, a “business analysis” Skill might include:
- Scope: analysis of business metrics for a specified time range;
- Input requirements: time range, organizational scope, and metric definitions;
- Operating instructions: query data, validate completeness, compute metrics, explain changes;
- Tool dependencies: data querying, statistical computation, and document output;
- Reference materials: metric definitions and report templates;
- Constraints: estimated values must not be written as confirmed facts;
- Acceptance criteria: key conclusions are traceable, and missing information is clearly stated.
What it encapsulates is not just interfaces but the operational knowledge needed to complete the task.
However, encapsulation does not mean enforcement. Permission requirements, step ordering, and output constraints written in a Skill description will still be missed if they rely solely on the model to follow them. Truly important restrictions must be enforced by the application runtime or backend services.
2.3 Model Context Protocol: Unifying How Capabilities Are Connected
The Model Context Protocol, usually abbreviated as MCP, mainly handles standardized interaction between clients and servers, so that applications can discover and access tools, resources, or prompt templates through a consistent protocol.
It focuses on “how capabilities are discovered and connected,” rather than directly defining how a business task should be completed.
A standardized protocol can reduce repeated adaptation costs, but it cannot automatically guarantee:
- That data returned by tools is accurate;
- That the user has permission to access the relevant resources;
- That multiple tools combined satisfy the business flow;
- That the model interprets results correctly;
- That operations with side effects can be safely retried.
Therefore, protocol compatibility and business reliability are two different things.
2.4 The Three Can Be Combined, but the Dependency Is Not Fixed
A common structure is:
User request↓Task recognition and Skill selection↓Load task instructions, reference resources, and execution constraints↓Model generates tool call intent↓Runtime validates and executes↓Access external capabilities through a standard protocol or internal interface↓Result validation and task delivery
This is not the only architecture. A Skill can call internal interfaces directly, or it can guide text processing only without using external tools; using a standard connection protocol does not mean the system must have a Skill management layer.
3. Why Skills Are Not “Longer Prompts”
Prompts are usually used to describe roles, goals, rules, and output requirements. Skills can contain these too, but a Skill with engineering value also needs to be organized and managed around the task.
3.1 From Generic Instructions to a Task Contract
“You are a professional analyst” is only a role setting and cannot sufficiently bound the task.
A more effective capability description should answer:
- What is the input;
- Which information is required;
- Which resources can be used;
- Which actions are allowed;
- When to refuse or pause;
- How results are verified.
This turns a Skill from broad behavioral guidance into a task contract that can be checked.
3.2 From One-Off Context to a Reusable Asset
If business instructions are assembled ad hoc on every request, it is easy to end up with different entry points using different definitions and different teams repeatedly maintaining similar rules.
Managing task knowledge independently makes it possible to establish version history, test cases, and change review, turning the capability into a maintainable asset rather than strings scattered across application code.
3.3 From Loading Everything to Providing on Demand
As the number of capabilities grows, putting all task instructions, tool definitions, and reference documents into the model context increases context usage and may interfere with capability selection.
A common design is layered loading:
- First provide brief capability names, purposes, and applicable conditions;
- After determining task relevance, load the full operating instructions;
- When execution reaches a specific step, continue reading the necessary materials or resources.
This progressive information supply helps control context size, but it requires handling issues such as missed capability discovery, unavailable resources, and version consistency. It is not as simple as reducing input length to guarantee results.
4. Structured Output Is Only the First Gate of Reliable Execution
In technical discussions, function calling is often reduced to “generating structured data that conforms to a format.” This understanding helps grasp execution boundaries, but engineering still needs to distinguish three levels:
- Whether the output can be parsed syntactically;
- Whether the arguments conform to constraints structurally;
- Whether the arguments are reasonable from a business standpoint.
For example:
{"departure": "Beijing","destination": "Beijing","travel_date": "some day in the past"}
This data may be valid structured text, but it does not necessarily constitute a valid booking request.
4.1 Constrained Decoding Improves Format but Cannot Replace Business Judgment
Inference systems that support constrained decoding can limit candidate outputs according to a grammar or structural definition, reducing problems such as missing brackets, type errors, and out-of-range enum values.
But different implementations support different constraint scopes, and you cannot assume all structural rules can be fully enforced at generation time.
More importantly, even if the structure is completely valid, whether the date is valid, whether the amount exceeds a limit, and whether the resource belongs to the current user still require server-side validation.
4.2 Model Output Must Be Treated as a Request to Be Verified
Applications should not skip traditional interface protection just because the arguments were generated by the model.
Before a tool call enters the execution layer, at minimum check:
- Whether the tool is in the list of allowed calls;
- Whether required arguments are complete;
- Whether argument types, lengths, and value ranges are correct;
- Whether the current user has permission for the operation;
- Whether this operation exceeds resource or rate limits;
- Whether high-risk actions have received explicit confirmation.
For operations like payment, deletion, publishing, and permission changes, validation especially cannot rely only on prompts.
5. Using State Machines to Handle Uncertainty in Multi-Step Tasks
The model can participate in planning, but business state should not be stored only in the conversation text.
Take a booking task as an example; the execution process can be modeled as:
Waiting for additional information↓Query available options↓Waiting for user confirmation↓Create order↓Confirm creation result↓Complete or enter compensation handling
Each state should have clear entry conditions, allowed actions, and exit conditions.
5.1 Distinguishing “Model Judgment” from “Business Fact”
The model saying “the order has been created” cannot be the basis for order creation success. Business facts should come from actual execution results and persisted records.
You can let the model decide the next suggested step based on state, but state updates must be done by trusted execution logic.
5.2 Handling Different Failure Types Separately
Execution failures can be divided into at least:
- Transient failures: network fluctuations, brief service unavailability;
- Input failures: missing arguments, incorrect format;
- Business failures: insufficient inventory, unmet eligibility;
- Permission failures: the user has no permission to execute;
- Uncertain results: the request timed out, but the remote side may have completed the operation.
These failures should not use the same retry strategy.
Insufficient inventory usually requires reselecting an option; insufficient permission should terminate or request authorization; uncertain results should first query the operation status rather than immediately repeating the execution.
6. Idempotency and Recovery Determine Whether a System Can Safely Go Live
For query operations, repeated calls usually just add cost. For creating orders, sending notifications, or deducting resources, repeated calls can cause actual losses.
6.1 Idempotency Keys Should Come from a Trusted Runtime
The system can generate a stable idempotency identifier for a business action and require the execution end to deduplicate within an agreed scope.
This identifier should not be freely generated by the model each time; otherwise retries may produce new identifiers and lose the deduplication effect.
At the same time, the idempotency key needs to be associated with the request content: when the same identifier corresponds to different requests, it should be rejected or raise an error rather than silently reusing an old result.
6.2 The Scope of Idempotency Must Be Explicit
“An interface supports idempotency” does not mean all repeated executions are safe. You need to clarify:
- Which operations participate in deduplication;
- How long deduplication records are kept;
- How simultaneously arriving duplicate requests are handled;
- How success, failure, and in-progress results are recorded;
- Whether external systems have corresponding guarantees.
6.3 Long Tasks Need Persisted Checkpoints
For multi-step analysis or approval tasks, it is recommended to save the current stage, completed actions, key intermediate results, and pending confirmation items.
This way, when the process restarts, the connection drops, or the user resumes later, the system can recover the task without re-executing all steps.
When there are multiple external side effects, compensation actions should also be designed. For example, releasing already-occupied resources after a later step fails. Compensation cannot always fully reverse an operation, so recoverable boundaries must be defined in advance.
7. Skill Governance Must Cover Permissions, Versioning, and Data Security
7.1 Permissions Must Be Enforced at the Execution End
A Skill declaring “read-only” helps the model understand boundaries, but true read-only capability should be implemented through restricted credentials and server-side permission configuration.
Likewise, a standardized connection does not automatically solve multi-tenant isolation. The runtime still needs to pass the user identity, tenant scope, and authorization information to the execution end in a trusted way, and re-verify them when accessing resources.
7.2 Versioning Should Cover the Entire Capability Contract
A Skill’s behavior depends not only on the description text but also on tool arguments, reference materials, output templates, and runtime configuration.
Therefore, version management should cover these dependencies. During task execution, the capability version can be pinned to avoid loading new rules midway through a long task, which would cause inconsistent definitions before and after.
7.3 External Content Cannot Automatically Escalate into Execution Instructions
Retrieved documents, tool returns, and user-uploaded files may all contain inducement text, such as asking to ignore established rules or call unrelated tools.
The system should treat this content as data to be processed, not as higher-priority control instructions. Key operations should also be restricted through tool lists, permission checks, and confirmation mechanisms.
7.4 Observability Must Balance Privacy
Logs can record capability versions, tool calls, state transitions, execution time, and error categories, but should not indiscriminately store complete sensitive arguments.
Desensitization, access control, and retention period management should be implemented according to data type, so that problems can be traced while avoiding logs becoming a new data leakage entry point.
8. How to Judge Whether a Skill Is Truly Effective
You cannot look only at whether the model selected the correct tool, nor only at whether the output is fluent.
It is recommended to build evaluation across four levels:
Task recognition level: Whether the correct capability is selected, whether inapplicable scenarios are recognized, and whether necessary questions are raised when information is insufficient.
Execution correctness level: Whether arguments are valid, whether steps satisfy dependencies, and whether permission and confirmation requirements are followed.
Result quality level: Whether the final output satisfies the task contract, whether facts are traceable, whether calculations are correct, and whether uncertainty is clearly expressed.
System reliability level: Whether duplicate operations occurred, whether the system can recover after failure, and whether the number of calls and time are within a reasonable range.
Test cases should not cover only the ideal path but also include missing information, tool timeouts, unavailable resources, insufficient permissions, malicious input, and duplicate requests.
After the capability description is modified, regression testing should be performed. Changes in prompt text, although not as intuitive as code changes, can likewise change tool selection, step ordering, and result judgment.
9. Start from a Minimal Viable Capability, Not a Complex System
When adopting Skills, a progressive approach can be used:
- Choose tasks with clear boundaries and high repetition frequency;
- Write down input requirements, completion conditions, and prohibited items;
- Connect the minimum necessary tools;
- Put permissions, argument validation, and key steps into deterministic logic;
- Add state recording, idempotency control, and error handling;
- Build a representative test set, then gradually expand the task scope.
For businesses with fixed processes and clear rules, deterministic orchestration should be preferred; for steps with diverse inputs that require understanding and explanation, the model can handle semantic judgment. Combining the two is usually easier to maintain than letting the model freely decide the entire process.
Ultimately, the core value of Skills is not to let the model “know a few more interfaces,” but to turn scattered operational knowledge into bounded, reusable, and verifiable task capabilities. Function calling is responsible for expressing actions, the connection protocol is responsible for connecting capabilities, the application runtime is responsible for safe execution, and Skills are responsible for organizing the knowledge of “how to complete a task.” Only when these responsibilities are clearly divided can an intelligent system move from an occasionally successful demo to a stable and reliable engineering application.
