Agent Skills vs Knowledge Base: Why Stuffing SOPs Into RAG Doesn't Make an Agent Capable

Yaqin Hei ·

Agent Skills vs Knowledge Base: Why Stuffing SOPs Into RAG Doesn't Make an Agent Capable

Customer-service Agent acceptance review, retail client. Page 12 of the vendor deck lists 320 standard operating procedure (SOP) documents, 1,400 policy clauses, 8,000 frequently asked questions (FAQs), and 60,000 product talking points, all indexed. Recall@K is 92%. Retrieval-augmented generation (RAG) accuracy is 87%. The CEO nods. Then asks, almost in passing: "So if a customer says refund the order I placed yesterday, the Agent can just do that?"

The deck doesn't have a page for that. The vendor says: "We'll add a refund Skill later." Which means: no. Everyone in the room sees it at the same time. 320 SOPs, 1,400 policies, and 92% recall only let the Agent know what the refund policy looks like. None of it lets the Agent actually issue a refund.

Every customer-service, replenishment, or ticket-routing Agent project I've worked on this year has had the same blind spot at technical review. Not the algorithm, not the model, not which vector database to pick. Nobody separates knowing from doing.

The knowledge base fills up, so the team ships. Recall accuracy climbs, so they ship again. The first time a customer asks for a write action, the project derails on the spot.

The first five pieces covered whether a design can ship, how not to abandon it after launch, and what is actually worth measuring. See 28 projects called themselves Agents. Only 4 needed to be built as one., In week two of the pilot, "I want a refund" sent the money out., Why a 70% Critic Beats a 95% Critic, The less you are Apple, the less you can skip this., and Contained is not resolved: how "98% CSAT" gets faked.

Why 90% of "we've shipped our Agent" projects are actually "we've shipped our RAG," and how to tell the two apart, is what this piece is for. It does three things: it shows where brain and hands actually diverge in engineering; it gives a three-line test that exposes the fake Skills in a design; and it explains why the question about a Skill protocol in the style of the Model Context Protocol (MCP) is the wrong question.

Knowledge base is the brain. Skill is the hands.

A knowledge base and a Skill are not two implementations of the same thing. They are two different layers in an Agent architecture. Conflating them is the design's original sin.

A knowledge base answers what the Agent knows. A Skill answers what the Agent can do. The first holds facts, policies, SOPs, product information, conversation corpus. The second has to carry a trigger, tool calls, constraints, and an output contract. A knowledge base is retrieved: a question comes in, a passage comes back. A Skill is invoked: the Agent decides that an action needs to happen.

The failure modes live on different sides of the line. Wrong retrieval produces a wrong answer. A wrong Skill call can refund a customer $980 extra, or send a coupon to the wrong person. Business and ops usually maintain the knowledge base, and they update it when policy changes or a new product lands. Engineering maintains the Skill, and they update it when an API changes or a business rule changes. Audit grain differs too: a document version is enough for the knowledge base; a Skill needs the call trace, plus inputs, outputs, and the basis for the decision.

The last distinction matters most. Write actions are irreversible. A retrieval miss can be fixed next turn with a different prompt. A wrong Skill call leaves money out the door, a ticket already closed, inventory already decremented. That is why you test them differently: recall precision and Recall@K for the knowledge base; end-to-end reconciliation, idempotency, and Critic miss rate for a Skill.

That is also why every Skill needs a Critic (Why a 70% Critic Beats a 95% Critic). A knowledge base does not necessarily.

One sentence: the knowledge base answers why the customer is upset; the Skill decides whether to refund them. The former needs RAG. The latter needs trigger, tool, constraint, and Critic, the whole stack.

Knowledge base answers why the user is upset. Skill decides whether to issue the refund.

Same refund policy. Drop it in a knowledge base and the Agent can tell the customer that a 7-day no-questions-asked refund applies. Wrap it as a Skill and the Agent can actually trigger the refund, reconcile it, leave an audit trail, and let a Critic block the bad cases. In a question-answering setting the gap is almost invisible. Once money starts to move, it decides whether the project ships. That is also where L1 and L2 finally come apart.

Three questions will tell you if that Skill is a knowledge base in disguise

I have used this in vendor reviews all year. Anything labeled a Skill, push back with these three questions.

First: is it triggered by the Agent's judgment, or by the shape of the user's question? A knowledge-base path looks like this: the user asks how refunds work, an embedding search recalls a policy paragraph, the LLM extracts the key facts, and the system answers. A Skill path looks like this: the user says "refund yesterday's order," the Agent judges that this is a write, that it needs an order_id, and that money is involved, then decides to invoke refund_order. If your Skill is still question comes in, retrieve, say what was retrieved, it is not a Skill. It is a knowledge base under another name.

Second: does it have a write, a side effect, or an external system call? Changing order status through the order API is a side effect. Messaging the customer over IM is a side effect. Tagging the customer in the CRM is a side effect. Reciting the refund policy is not. That is read-only. Any capability that only reads, never writes, never calls an external system, and never changes state is an extension of the knowledge base. Naming that a Skill is marketing language, not an engineering distinction.

Third: is the failure mode a wrong answer, or a wrong action? A wrong answer is usually salvageable with a follow-up; the loss is experience. A wrong action has already changed system state; there is no "ask again to undo" path; the loss is money, tickets, inventory, or compliance. A wrong write is not reversible. That is the real engineering signature of a Skill. If the failure mode is a wrong answer, it is a knowledge base. If it is a wrong action, it is a Skill, and that means you need a Critic, a canary, and an audit trail.

Any no on these three, and that Skill is a knowledge base in disguise. Run this at the next vendor review, and most of the 5 to 8 Skills in the deck collapse to 2 to 3 real ones.

Writing rules in CLAUDE.md does not mean the rules get followed

The same thing bit me running this blog for 18 months.

CLAUDE.md is now ~20k characters, full of rules earned the hard way: don't run npm run build while the dev server is on :3002; in markdown destined for WeChat, **X**:desc strands the colon on mobile, so write **X:** desc instead; DB-backed pages need export const revalidate = N, or the counts freeze at build time; never add an explicit distDir to next.config.mjs.

Every rule is written down clearly, with a rationale and a burn-site reference. The question is: when a new conversation opens, will Claude, or I six months from now, actually follow them?

The answer depends on whether the rule became execution.

Don't run the build while the dev server is on :3002. That sat in the Gotchas section, then became a scripts/check-dev-server.js prebuild hook that detects the port and aborts with a reason. The WeChat colon problem was written up in notes/2026-05-18-wechat-colon-orphan.md, then a one-line regex in scripts/mdx-to-wechat-html.mjs started rewriting the source before marked.parse. API endpoints that touch the Post table must call ensurePostInDB(slug): that was in CLAUDE.md, then lib/db.ts exposed the function and both the view and clap endpoints called it. The first three became scripts, and stopped depending on anyone remembering.

The last three are still prose. Don't add an explicit distDir to next.config. It's in Gotchas, with a six-hour outage note, but no lint or hook enforces it. Don't write <2% in MDX, because it is parsed as JSX and breaks the Vercel build. The case study is in CLAUDE.md, but there is no pre-commit check. When shipping ZH-first, strip alternateLang from the frontmatter. That's in the series production notes, and there is still no script. Every new conversation has a chance of missing them.

A rule that stays in a doc is a hope.

That is the engineering definition of a Skill: a rule that sits in docs is a hope. It only becomes a capability the moment execution-time enforces it.

Customer-service Agents have the same shape. "7-day no-questions-asked refund" sitting in the agent training manual is a knowledge base. The same policy wired into the order page, with a refund button that auto-greys at day 8, is skillified. The first means every agent knows the policy. The second means the policy is enforced by the flow. The line between them is whether code, or a deterministic process, does the enforcing. Same line for Agents.

Why isn't there an MCP-style Skill protocol? That question is backwards

Every two weeks someone asks this at a vendor review. The wording changes: is there an industry Skill standard, should we wait for OpenAI to publish a protocol, does Anthropic's Skills count as an industrial standard. The underlying question is the same: should we wait for a standard before we start?

No. The question is backwards, for three reasons.

MCP and Skill are not at the same layer. MCP solves transport: how the Agent calls external tools, how tools expose capability, how auth, channels, and serialization work. That is protocol-layer work, and it can be standardized. Skill is policy: whether this tool is allowed at all in your customer-service context, whether to check membership tier before calling, whether failures should auto-compensate, what threshold escalates to a human. That is business-rule packaging, not transport.

The industry is not going to publish a unified protocol that tells you "customer-service Agent refunds above $500 should escalate to a human," because every company is different. If your AOV is $30, the threshold might be $50. Your competitor's AOV is $300, theirs is $5,000. A unified protocol at that layer does not exist, and it shouldn't.

MCP has already covered the layer most teams are actually worried about. I'm integrating five SaaS systems, each with its own API, and none of it reuses: MCP solved that. Order system, ticket system, logistics, CRM, IM: each exposes capability through an MCP server, and the Agent calls them all the same way. That is real protocol-level standardization. What's left, how this tool gets used in this scenario, when to call it, what to do first, is supposed to be your company's own asset. It should not wait for an external standard.

And waiting is not starting. Every company I've heard say they will wait for Skill standards to settle has shipped exactly nothing six months later. They are not waiting for a protocol. They are using the wait as a reason not to begin.

The real layer map is already visible. Tool transport, meaning MCP, OpenAPI, and function-calling schema, is mature; you can just integrate. Knowledge retrieval, meaning embedding, RAG, and rerank, is mature, with plenty of open and closed options. Skill definition, meaning YAML, plus prompt, tool references, and a Critic, has no external standard, and you do not need one. Multi-agent orchestration, meaning A2A, OpenAI Swarm, and LangGraph, is still early; the designs are still converging.

The middle two layers are your company's internal muscle. No external protocol can tell you how your customer-service Agent should handle refunds. It has the same shape as the ERP and OMS era: SAP did not ship a protocol telling you how to tag SKUs. It gave you the fields and the workflow, and you defined the tagging. Skills sit at the equivalent position in the Agent era.

A real Skill is more than YAML, and more than a thin wrapper

Most people see "Skill defined in YAML" and think they are done. Not enough. A shippable Skill has at least six blocks. Below is the minimum spec my projects have converged on, for anyone who has to implement it. The logic is the same one already spoken above; the YAML does not invent a second definition.

skill:
  name: "refund_order"
  description: "Initiate a refund for an unshipped order, or one within 7 days"

  # 1. Trigger: who calls it, how it knows to fire
  trigger:
    intents: ["refund_request", "cancel_order"]
    required_entities: ["order_id"]
    optional_entities: ["refund_amount", "reason"]
    # Critical: trigger isn't just intent match — required entities must
    # also be present. Missing order_id → route to "clarify intent" branch,
    # not this Skill.

  # 2. Knowledge refs: what policies to check before / during the call
  knowledge:
    must_check:
      - "refund_policy.7day_no_reason"       # 7-day no-questions-asked
      - "refund_policy.shipped_status"        # shipped vs unshipped
      - "member_tier.refund_priority"         # tier impacts processing

  # 3. Tool calls: what gets called, with what args, what to do on failure
  tools:
    - server: "order-service"
      action: "query_order_status"
      timeout_ms: 1500
      on_failure: "escalate_to_human"

    - server: "order-service"
      action: "initiate_refund"
      idempotency_key: "refund:{order_id}:{timestamp}"
      timeout_ms: 3000
      on_failure: "rollback_and_escalate"   # rollback must be possible

  # 4. Constraints: what this Skill is NOT allowed to do, in this company,
  #    in this scenario. Business sign-off lives here.
  constraints:
    - "refund_amount must be <= order_total_paid"
    - "refund_amount > 500 → must escalate to human for second approval"
    - "same order_id cannot be called twice within 24h"
    - "user is not KYC-verified → cannot invoke"
    - "02:00-08:00 local time → escalate (risk control window)"

  # 5. Critic: pre-call + post-call double review
  critic:
    pre_call:
      - check: "amount reconciles: amount == queried_order_total"
      - check: "status reconciles: order_status in ['paid','shipped_not_delivered']"
      - check: "time window: now - order_create_time <= 7 days"
      timeout_action: "fail_closed"          # timeout = escalate (series 3)

    post_call:
      - verify: "refund record written"
      - verify: "user notified"
      - verify: "third-party reconciliation matches"
      timeout_action: "alert_human"

  # 6. Output contract: how the result flows back to the conversation
  output:
    success:
      template: "Refund initiated. Expected X business days to settle. Order: {order_id}"
    failure:
      template: "[Routing to human] Connecting you to an agent who'll follow up on the refund. One moment."
      attach_context: true                   # human sees the Agent's decision chain

The four critical blocks are constraints, critic, the output contract, and handling for irreversible actions.

Constraints are your company's risk policy, packaged. "Above $500 escalates" is your threshold; the company down the street's is $5,000. Only you can set this. No external standard helps.

The Critic is the write-op safety net. pre_call checks that the arguments reconcile; post_call checks that the state changed correctly. Any failure escalates to a human (Why a 70% Critic Beats a 95% Critic). A Skill without a Critic is a production incident on a delay timer.

The output contract decides whether the Agent can hand context back to the rest of the conversation, including the failure template and the payload when a human takes over. Vendors skip this by default, because a demo only shows the happy path, and nobody writes the failure contract.

Leave those out, and the remaining YAML is a thin API wrapper. It is not a Skill.

Why a RAG-only design crashes six months later

The projects I've worked on this year often started with a vendor pitch of putting the SOPs in the knowledge base, adding an LLM, and calling that enough. Five typical failure modes show up about six months out.

Knowledge drift. Policy changes, the knowledge base does not get updated, and the Agent recites the old policy. This happens weekly in customer service: a SKU is delisted, a promo expires, a rule changes. RAG cannot catch this architecturally. It has no concept of knowledge going stale. The skillified version has the pre_call Critic query the live policy endpoint, instead of relying on the embedded copy. But the durable fix is organizational, not only architectural: drift keeps recurring whenever no single role owns the knowledge base. The embedded copy goes stale because nobody's job is to keep it fresh.

Hallucinated execution. The Agent retrieves the "7-day no-questions-asked refund" policy and fabricates a response that the refund has already been initiated. The customer thinks it is done. Two days later they notice no money, and come back furious. I have seen this in at least three projects this year. RAG cannot stop it: in a read-only chain, the LLM saying "refund initiated" costs nothing to invent. Once it is a Skill, the Agent literally cannot say that string without calling initiate_refund.

No audit trail. A customer asks why they were refunded $200 over, and the company wants to know who approved it and why. RAG mode only shows which policy paragraphs were retrieved, nothing about why this number was chosen. Skill mode logs the whole chain: trigger, critic, tool call, response, with inputs and outputs at every step. That trace decides whether you can assign responsibility in an incident review.

Prompt-only governance. All the constraints live in the prompt: always escalate amounts over $500, no refunds overnight, remember to check membership tier. LLMs comply about 70 to 80 percent of the time. The other 20 to 30 percent they don't. The longer the prompt, the worse this gets. In a Skill, constraints are code if-then: deterministic enforcement, not LLM self-discipline.

Version rollback is impossible. In a RAG system, you tweak one policy document, rebuild the whole embedding index, learn nothing reliable about the impact, and roll back by rebuilding again. In a Skill, the YAML lives in git. Every change diffs. The canary is controllable. Rollback is one button.

The common thread: pure RAG has no engineering safety net for write actions. All of the safety is "the prompt reminds the LLM to behave." When the LLM doesn't behave, the failure hits production users.

That is why L1 can be RAG-only and L2 and L3 cannot (28 projects called themselves Agents. Only 4 needed to be built as one.). Higher levels mean more writes, more reliance on engineering, and a harder requirement to skillify.

Path to production: five Skills first, then a library in three months

Don't wait for a protocol. Don't try to define 50 Skills at once. Start with the five that hurt most.

Month one: inventory the write actions your customer-service Agent actually performs. A typical L2 has 5 to 8: check order, initiate refund, create ticket, change address, grant coupon, mark complaint, escalate to a human. Write a full YAML for each, with all five blocks in place: trigger, knowledge, tools, constraints, critic.

Month two: put the YAML in git. Make a skills/ directory. One Skill is one PR, with code review. Two sign-offs are required: constraints signed by business, critic signed by engineering. If either side does not sign, it does not ship.

Month three: the same template, in non-customer-service scenarios. Replenishment, slow-mover alerts, scheduling: same YAML, new triggers and tools. Three months in, you have an enterprise Skill spec.

This does not need an external protocol. Every company that has been "waiting" is still waiting three months later.

Five questions for vendors who say they already have N Skills

Next time a vendor deck says they have built X Skills, ask these five. Any can't-answer means that still isn't a Skill.

Show me the YAML for five of your Skills. What you want to see is at least trigger, tools, constraints, and critic. If what they show you is "we have skill_refund.py" plus some API-calling code, that is a wrapper, not a Skill.

Where is the Critic for each Skill? What does pre_call check, what does post_call check, and what happens on timeout? You want those three landed in actual checks. "We don't have a Critic, the LLM decides" is the moment to end the review (Why a 70% Critic Beats a 95% Critic).

Who sets the constraints, and what is the process to change them? A good answer is: business and engineering both sign, the change goes through a PR and code review, it rolls out behind a canary, and it can be rolled back with one button. "They're in the prompt" means there are no constraints.

When a Skill call fails, how does context get handed to a human? You want the human agent to see which Skill triggered, what knowledge was retrieved, what tool was attempted, and why it failed. "We just escalate to a human" strips the context and makes the human start from zero.

Of your N Skills, how many are write-ops, and how many are read-only? Make the vendor draw the line. If six of eight are "query and answer" and only two are real writes, the design covers L1 and L1.5. The L2 part is essentially undone.

Ten things to do this week

List every "capability" claim in your team's current Agent design and run each through the three-line test. Mark the fake Skills and the real ones.

Pick the one write action most likely to fail first, usually refund, address change, or coupon grant, and fill in the 6-block YAML.

Pull the constraints into a separate document for business sign-off. This is governance signing, not a technical signature. Pull the pre_call and post_call Critic checks into a separate document for engineering sign-off.

Before launch, run a miss-rate test: 100 boundary cases, including an amount of exactly $500, an order on day 8, and a 02:01 timestamp. Count how many the Critic catches.

Write a Skill-review checklist for the wall, and make new-Skill PRs walk through it. Reconcile knowledge-base content against Skill constraints: anywhere the knowledge base says "cannot," "must," or "if over X then Y," the Skill constraints must have the equivalent if-then.

In your team's CLAUDE.md or SOP, pick the rule that gets forgotten most, and write it as a script or hook so it cannot be forgotten. Add idempotency keys to every write-op Skill, typically <action>:<entity_id>:<timestamp>, to prevent duplicate triggers. And bring the five vendor questions to your next review.

Brains can memorize SOPs. Hands need the flow to enforce them.

The distinction between a knowledge base and a Skill is not a naming exercise. It decides whether your design has any safety net when the first write-op incident hits.

"We ingested all our SOPs" means every agent has memorized that policy. That can be true, and still be entirely separate from the refund flow working. The latter needs a button press to trigger a real refund, a reconciliation that matches, and an error that is traceable to a person. That is what Skillification engineers. It is not knowledge-base engineering.

People will keep asking where the MCP-style Skill protocol is. Let them wait. The companies that started defining their 5 to 8 Skills this year have real L2 Agents running three months in. They have stopped asking that question.

If your vendor's deck claims five or more Skills, but the real write-op Skills are two or fewer, and none of them has a full Critic, that is a fake-Agent pitch. Hand them the 5-block YAML above. Fixing one Skill until it can actually ship is far easier than fixing five, and far cheaper than one production incident.

If you want the tools from this piece for your next vendor review or for your own Skill definitions, I put together a PDF kit. Send me the keyword "SKILL KIT" and I'll send the pack: a full 6-block Skill YAML template, plus four filled examples for refund, cancel, address change, and coupon grant; the three-line "real Skill vs knowledge base in disguise" test; a Skill review checklist with the nine items every PR should walk through, plus the two sign-off fields; and the five vendor questions, with good and bad answer samples.

A year of work in customer-service Agent projects, compressed into one toolkit. Yours.

Channels are in the footer. X or email both work.

Building an agent right now?

Send me your worst conversation. Free failure teardown.

Get a teardown →

Comments