OSS4AI AI Stack · Season1 · #9
by Yujian Tang

An illustrated introduction to Skill vs MCP vs RAG vs Agent. Treat the headline as a topic introduction, not a universal performance or capability claim. Open full-size image
Four names, four responsibilities
Skills, MCP, RAG and agents are often discussed as competing ways to make a language model useful. They are better understood as components with different responsibilities. One supplies task instructions, one standardizes connections, one retrieves evidence, and one manages a sequence of decisions.
A system can use all four, or only one. Start by identifying what is missing from your application rather than adopting the most fashionable label. Does it lack facts, access to another system, a repeatable procedure, or a way to decide the next step?
RAG brings evidence into the request
Retrieval-augmented generation fetches relevant material at question time and supplies it to the model. The evidence might come from product documentation, policies or previous reports. The model's weights do not have to contain those particular documents for the application to use them.
The retrieval stage can use keyword search, vectors or a combination. Its job is to find material worth reading; generation then uses that material to produce an answer. Neither step guarantees accuracy. A search can miss the relevant passage, and a model can misinterpret a passage it receives.
Use RAG when the answer depends on a document collection, especially one that changes or is private. Verify both retrieval quality and whether the answer is supported by the retrieved evidence.

An Agent Skills integration can discover metadata, load relevant instructions and access resources as needed. Open full-size image
MCP standardizes the connection
The Model Context Protocol is an open protocol for connecting AI applications to tools and data. It describes an integration interface, not a reasoning method or a replacement for your application logic.
A search service can sit behind an MCP server, so MCP and RAG can work together. A plain API can also provide that search. The protocol choice and the retrieval method answer different questions.
Likewise, connecting a ticket system does not authorize every operation available in it. Authentication, permissions and review of consequential actions remain application responsibilities. A plug or adapter is a better analogy for MCP itself: it connects components but does not grant permission.
Skills supply a procedure
An Agent Skill is a package containing instructions in a SKILL.md file and potentially supporting resources or scripts. The standard recommends progressive disclosure for integrations: discover the name and description, read the full instructions when relevant, and load supporting resources as needed during execution.
That makes a skill more like a task-specific how-to than a callable function. A tool exposes an operation; a skill explains how to approach a class of work. A skill may direct an agent to use tools, but instructions alone do not create access to those tools.
Use a skill when a repeatable procedure matters: how to format a report, what checks to perform, or which steps belong in a particular workflow. It reduces how much task-specific material must be loaded at once; it does not eliminate context limits or guarantee compliance.

In this support-report example, an agent coordinates retrieved documents, ticket access and reusable report instructions. Open full-size image
The agent decides what happens next
An agent loop selects actions, observes results and decides whether to continue. ReAct is a foundational reference for interleaving reasoning and action. An agent is an architectural idea, not a single product.
Consider "write this week's support report." Retrieval supplies policies and earlier reports. An integration supplies ticket data. A skill describes the report's format and review checklist. The agent coordinates these steps and responds to missing data or a tool error.
If the sequence never changes, a fixed workflow may be easier to test than an open-ended agent. Use a decision-making loop when intermediate results genuinely determine what should happen next, then define its stop conditions and escalation behavior.
Choose the smallest combination that solves the problem
For a document-answering assistant, start with retrieval and generation. Add a protocol integration if it improves how you connect your data sources. Add a skill if the procedure needs reusable instructions. Add an agent loop only when the task requires decisions across steps.
The distinctions also help diagnose failure. Unsupported facts suggest an evidence problem; failed calls suggest an integration problem; inconsistent procedure suggests an instruction problem; endless retries suggest a control-loop problem. Naming the failing responsibility is more useful than replacing the entire stack.
Sources and scope
Research date: November 9, 2026. Historical results refer to the dates and conditions of the cited studies; product details describe the cited source snapshot, not a promise of current availability or pricing.
