From Model to Skills: A Single Thread Through AI Terminology
This article connects the core AI terms—Model, Token, Prompt, Function Call, RAG, Agent, MCP, and Skills—into one progression: encapsulation keeps getting coarser while handoff interfaces become more standardized. It explains the constraints each layer inherits, the mechanism and failure handling it adds, and the trade-offs involved, plus a three-part framework for answering "how does it work" interview questions.
1. Why Terminology Gets More Confusing: What’s Missing Is a Thread, Not Definitions
Most AI explainers don’t fail because they’re wrong. They fail because they only deliver conclusions: a term appears, a one-line definition follows, then the text jumps to the next term. Readers memorize ten acronyms and still can’t explain how they relate. In an interview, the moment someone asks “why do we need this,” the answer collapses.
A more effective approach is to establish one thread first: the granularity of capability encapsulation keeps getting coarser, and the handoff surfaces keep getting more standardized. From “a model that predicts the next token,” to “a retrieval pipeline that can read external material,” to “an agent that can call tools and plan steps,” and finally to “reusable packaging of workflows and knowledge.” Every new term is a patch for the shortcomings of the layer beneath it.
This thread also explains recent interview questions directly. For example: “A platform (2026.02.28): discuss the underlying principles of tool integration protocols and skill packaging,” or “An internet company (2026.01.30): what is a tool integration protocol, and how does it differ from traditional function calls?” The questions look new, but they test the same progression.
2. Layer One: Model and Token, the Foundation of Everything
A large model is essentially a parameterized function: it takes a sequence of tokens as input and outputs a probability distribution over the next token. What we call “understanding” and “reasoning” is, from an engineering perspective, the result of probabilistic generation plus external constraints.
Three consequences follow, and they are the root of every later problem:
- Knowledge is frozen into the parameters, so the model knows nothing about events after the training cutoff;
- The context window is limited, so anything beyond it must be handled by retrieval or compression;
- It can only “speak,” not “act,” so any side effect must be executed externally.
One clarification: the model itself guarantees neither factual correctness nor stable formatting. That is why the common engineering split is “the model generates, the program validates,” as sketched below:
// Model output cannot be trusted directly; the program must validate structure and business rulesconst raw = await model.generate(prompt);const parsed = schema.parse(JSON.parse(raw)); // structural validationif (!parsed.items.length) return fallback();
3. Layer Two: Prompt and Context Engineering, Writing Constraints into the Input
Since the model only consumes context, “how to organize the input” becomes an engineering discipline in its own right. System prompts, few-shot examples, structured output constraints, retrieved material, and conversation history together form the context budget.
The core of context engineering is not piling on words but making trade-offs: which information must stay resident, which should be injected on demand, and which should be compressed into a summary. In practice this is usually managed in layers—resident role and rules, domain material retrieved on demand, and rolling compressed history. The longer the context, the more obvious the problems of diluted attention and rising cost, so “lean and precise” beats “broad and complete.”
4. Layer Three: Function Call, the Model Can Finally “Do” Something
Function calling solves the side-effect problem. The model no longer executes directly; it emits a structured call intent, and the host program executes it and feeds the result back.
{"tool":"queryOrder","arguments":{"id":"A1024"}}
The key point: the model only proposes; execution authority and permission checks always stay on the program side. This also explains the difference from a tool integration protocol—a function call is “an output form and convention of the model,” while a protocol solves “how tools are described, discovered, and invoked in a standardized way,” which belongs to the integration layer across processes and implementations. If asked to compare them in an interview, answer along three dimensions: level of concern (model output vs. integration specification), reuse scope (within a single application vs. across applications and languages), and governance focus (prompting and parsing vs. authentication, versioning, discoverability).
5. Layer Four: RAG, Trading Retrieval for Freshness and Control
Frozen model knowledge and a limited context window are the two constraints that together gave rise to retrieval-augmented generation: retrieve first, splice the results into the context, then generate an answer with sources. Its value is not only “updating knowledge” but, more importantly, verifiability—an answer can be traced back to a specific passage.
A minimal pipeline usually looks like this: split documents, vectorize and store them, recall by similarity, rerank, assemble the prompt, generate, and attach citations. The easiest pitfalls in engineering are the chunking strategy and recall quality: chunks that are too small lose context, chunks that are too coarse introduce noise; vector-only recall tends to miss exact matches, so keyword retrieval and reranking are often mixed in.
6. Layer Five: Agent, Closing the Plan–Act–Observe Loop
When a task requires multiple steps and the strategy must adjust based on intermediate results, a single call is not enough, so the agent appears: the model produces a plan, calls tools, observes the results, and decides the next step until a termination condition is met.
for (let step = 0; step < maxSteps; step++) {const action = await plan(context); // the model decides the next stepif (action.done) return action.result;const observation = await runTool(action); // the program executes and leaves a tracecontext = summarize(context, observation); // compress history to control the budget}throw new Error("step budget exceeded");
The hard part of an agent is not “being able to loop” but staying controllable: step and cost ceilings, failure retries and rollbacks, human confirmation steps, and full-chain logging with monitoring and alerting. Without these, a demo looks impressive and production spins out of control.
7. Layer Six: MCP and Skills, Standardization and Reuse
Once tools multiply, integration cost explodes: every application has to write an adapter for every tool. This is why the industry arrived at the idea of a general integration protocol, describing tools and resources in a unified way so the same set of tools can be reused by different hosts, turning “N×M adaptation” into “N+M integration.” That is the value of the protocol layer: decoupling, discoverability, and governability.
Skills are a higher level of encapsulation: packaging the workflow, constraints, and domain knowledge for a class of tasks into a reusable unit that is loaded into context on demand. The protocol solves “how to connect”; the skill solves “how to do it.” Only when the two are combined does an agent move from demo to a maintainable engineering asset. Deploying this in the cloud usually lands on general categories: a container platform hosts the runtime, object storage holds material and artifacts, a message queue handles asynchronous decoupling, and logging plus monitoring and alerting provide observability.
8. How to Answer in an Interview: A Three-Part Framework
For questions like “walk us through the underlying principles” or “how is this different from the traditional approach,” a fixed three-part structure works well:
- State the constraint: what bottleneck existed in the previous layer before this appeared;
- State the mechanism: inputs and outputs, execution boundaries, failure handling;
- State the trade-offs: how latency, cost, controllability, and observability are balanced.
Along this thread, Model through Skills is no longer ten isolated terms but a progression in which encapsulation gets coarser and handoff surfaces get more standardized. Being able to explain that chain is more convincing than memorizing any glossary.
