MCP vs Skills in AI Coding Tools: A Capability Layering Guide

    This article breaks down the difference between tool-calling protocols (MCP) and skill packages, two concepts often confused in AI coding and agent engineering. It explains what the protocol layer standardizes, how the capability layer packages reusable task methods, and why the two are complementary rather than interchangeable. Readers will also find a recommended adoption sequence and common pitfalls to avoid.

    1. The Conclusion First

    In discussions about AI coding tools and agent engineering, the pair of concepts most easily confused is the “tool-calling protocol” and the “skill package.” They are often compared in the same sentence, yet they sit at different abstraction levels:

    • The tool-calling protocol (commonly known as MCP, Model Context Protocol) belongs to the protocol layer. It defines how a model discovers tools, describes parameters, issues calls, and parses responses.
    • The skill package (Skills) belongs to the capability package layer. It defines how the complete method for a class of tasks is packaged, loaded on demand, and executed.

    To summarize the relationship in one sentence: the protocol solves “whether the hand can reach out,” while the skill package solves “what routine to follow when reaching out.” A skill package can call protocol-based tools internally, but the reverse does not hold. With only a protocol and no skill package, any slightly complex multi-step workflow has to be re-explained to the model in every session.

    2. What the Protocol Layer Actually Specifies

    The core of a tool-calling protocol comes down to three things, none of which can be missing:

    1. Capability discovery: On startup, the client asks the server “what tools do you have, and what does each one do?”
    2. Parameter contract: Each tool uses a structured description (typically a declaration like JSON Schema) to specify inputs, required fields, enum ranges, and the response structure.
    3. Invocation and return: The model produces a structured call intent; the runtime handles authentication, rate limiting, timeouts, and error wrapping, then writes the result back into the context.

    Its design philosophy is deliberately restrained: it only guarantees that “the act of calling works,” and does not judge “why this tool should be called at this moment.” This is similar to a power outlet standard. Once the socket shape is unified, any appliance can draw power; but which appliance to plug in, which one first, and whether to cut power afterward are all outside the standard’s scope.

    The value of this restraint lies in decoupling. Tool providers only need to expose capabilities according to the contract, without caring whether the layer above is a chat assistant, a coding assistant, or an automation pipeline. Callers, in turn, do not have to write a private integration for every internal system. The protocol compresses “integration cost” from O(systems × scenarios) to roughly O(systems + scenarios).

    A schematic capability description can be written like this (illustrating structure only, not a specific product interface):

    1. {
    2. "tools": [
    3. {
    4. "name": "query_metrics",
    5. "description": "Query metric time-series data by time range and dimension labels",
    6. "input_schema": {
    7. "type": "object",
    8. "properties": {
    9. "metric": { "type": "string" },
    10. "range": { "type": "string", "description": "ISO8601 start and end time" },
    11. "labels": { "type": "object" }
    12. },
    13. "required": ["metric", "range"]
    14. }
    15. }
    16. ]
    17. }

    Note that there is nothing here about “first query the dimensions, then validate the metric definition, then draw the chart.” That belongs to the layer above.

    3. The Capability Package Layer Solves “Method Reuse”

    In real business scenarios, most valuable tasks cannot be finished with a single call. Take “competitor analysis” as an example. The complete method includes at least: define comparison dimensions → pull data from multiple sources → cross-validate metric definitions → flag uncertain items → apply a template to produce the report → check against a self-review list. Four kinds of knowledge are embedded here:

    • Process order: which step must come before which, and which steps can run in parallel;
    • Judgment criteria: what conditions data must meet to be considered trustworthy, and whose definition prevails when conflicts arise;
    • Checklists: items that must be confirmed one by one before delivery;
    • Output templates: structure, fields, wording, and chart conventions.

    There used to be only two ways to handle this: paste the whole block of instructions into the system prompt and carry it around repeatedly, or have a human direct the process step by step in real time. The former wastes context budget and is hard to version; the latter does not scale.

    The capability package layer turns the above into a reusable capability unit, typically a directory with metadata:

    1. competitor-analysis/
    2. ├── SKILL.md # name, applicable scenarios, trigger conditions, main instructions
    3. ├── templates/ # output templates
    4. ├── scripts/ # executable scripts (data pulling, validation, rendering)
    5. ├── references/ # reference docs, metric definition dictionary, historical cases
    6. └── checklist.md # pre-delivery self-check items

    At runtime, the content is not loaded into the context all at once. Instead, it is loaded progressively: first only the metadata and summary are read to judge “does this task match?”; only after a match are the main instructions loaded; and only when the instructions explicitly reference them are templates, scripts, or reference documents read. This preserves the completeness of the knowledge while keeping context overhead under control.

    4. The Practical Differences Across Four Dimensions

    Dimension Protocol layer (tool-calling protocol) Capability package layer (skill package)
    Unit of reuse Tool / interface Complete solution for a class of tasks
    Reuse benefit No need to rewrite integration code No need to repeatedly teach the model how to do things
    Cost saved Development and integration cost Communication and trial-and-error cost per task
    Direction of effect Raises the capability floor Raises the capability ceiling
    Change frequency Low; contracts are relatively stable Higher; evolves with business definitions

    An analogy: an agent with only a protocol is like a new hire with a full set of tools but no work manual. They know how to use a wrench and a drill, but on a complex work order they have no idea which screw to start with. Adding a skill package is like handing them a new-hire manual with standard procedures, common pitfalls, and an acceptance checklist.

    It is worth stressing that the two are complementary, not substitutes. Scripts inside a skill package still ultimately access databases, document repositories, message queues, container platforms, or logging services through protocol-based interfaces. The protocol layer, in turn, only moves from “can call” to “calls correctly and systematically” once skill packages exist.

    1. Protocol-first for interfaces. Gradually wrap high-frequency internal interfaces, data queries, document retrieval, ticketing, and release systems into servers that conform to the protocol, with unified authentication, rate limiting, timeouts, and error semantics. The goal at this stage is “reachability,” not intelligence.
    2. Identify tasks worth turning into skills. Three screening criteria: high frequency, relatively stable steps, and verifiable results. Only build one when all three hold.
    3. Extract the method and package it. Make tacit experience explicit as instructions, templates, scripts, and checklists; define trigger conditions and out-of-scope boundaries to avoid false triggering.
    4. Establish governance. Skill packages also need version numbers, change logs, evaluation samples, and rollback plans. When the method changes, scripts, templates, and checklists must be updated in sync; otherwise a hidden failure appears where “instructions and scripts disagree.”
    5. Close the observability and evaluation loop. Use monitoring, alerting, and logging services to record the step trace, failure points, and human intervention points of each task, and use real data to decide which skill packages should be split, merged, or retired.

    6. Common Pitfalls

    • Writing a skill package for every small task. Skill packages carry maintenance cost; overly fine granularity leads to proliferation, trigger conflicts, and difficult evaluation. Fewer and better is preferable.
    • Stuffing methods into tool descriptions. A tool description should focus on “what this call does.” Process knowledge belongs in the skill package; mixing the two causes the contract to change frequently.
    • Ignoring permission boundaries. A skill package can orchestrate multiple tools and must follow the principle of least privilege, keeping human confirmation for sensitive operations.
    • Loading everything at once. Giving up progressive loading lets the context be quickly crowded out by reference documents, which actually lowers execution accuracy.

    7. Conclusion

    The division of labor between the protocol layer and the capability package layer is essentially about governing “connection” and “method” separately: connection pursues stability and generality, while method pursues accumulation and iteration. In engineering practice at platforms such as Baidu AI Cloud, this layering is likewise a foundational approach for building reliable intelligent applications. First make capabilities reachable, then make experience retainable, and only then will an agent move from “being able to use tools” to “delivering reliably.”