● ● ● ● ● ● ● ● ● Lesson 9 of 9 · the finale
Build a docs Skill · A brown-bag
In Lesson 1 we copied an MCP. Then we shipped a skill instead. Now you know enough to say why — and when you'd choose the other.
This is where the whole course bends back on itself. We opened by copying the AWS Docs MCP pattern — search + fetch. But we never shipped an MCP server. We shipped a skill: a thin file. Why the switch? And when would the MCP have been the right call?
You've now felt the answer, lesson by lesson. Lesson 5: embeddings rank by meaning but need a model at query time. Lesson 8: for public docs the skill only ties web search. Both point at the same fork in the road. Let's name it clearly so you can make this call for your own docs.
The two shapes are the same idea — grounded search + fetch — packaged completely differently:
uvx. It has no capability ceiling:
embeddings, a vector database (like Chroma), live queries, fancy indexing — all on the
server, keeping the client "dumb." The price: someone must host it, secure it, and keep
it up.That's exactly why embeddings (Lesson 5) live on the MCP side: they need a model at query time, so they can't ride inside a static file — they need the server an MCP gives you.
Use this table to make the call for any corpus:
| Question | Skill (a file) | MCP server (you run it) |
|---|---|---|
| Who runs it? | the client, for free | you host, or user runs uvx |
| Capability ceiling? | lexical / BM25 static index | embeddings, vector DB, live queries — none |
| Ops cost? | ~zero, offline | hosting, uptime, auth, updates |
| Freshness? | re-ship the index (refresh) | query live / re-embed server-side |
| Distribution? | a file (git, a marketplace) | a running endpoint + config |
| Best when… | public/stable docs, wide reuse, offline, simple | private data, semantic search, central control, heavy queries |
For this story the skill won cleanly: public Teleport docs, a publisher manifest, BM25 is plenty, and the value is offline speed and determinism across many agents. An MCP would have added hosting for no correctness gain. But flip to internal docs that need semantic search and change daily, and the MCP becomes the honest choice.
SKILL.md was slimmed to ~112 lines, hiding index internals behind a
references/ file. As the corpus puts it: "An LLM consumer needs to know
HOW to invoke it and what it's good for, not how the index is built." A short index
that references out to advanced topics lets the agent discover detail
only when it needs it — surfacing info in small bits. That is progressive discovery, and
it applies to both skills and MCP tool descriptions.
You built a real skill by discovering it — minimal design, test, improve:
Through all of it, the same two habits: 🔴→🟢 lock every fix with a test, and ⏱️ ask if it's worth it. The deepest lesson from the corpus: the harness mattered more than the model, and a measurement — not a smarter model — caught the one real flaw.
llms.txt. Sketch the
search → fetch loop. Write three body-only evals before you build anything. Then
decide, honestly: skill, MCP, or just web search? You now have the whole toolkit to make
that call — and to defend it with a number.
Final self-check (recall before you peek):
Skill = thin to ship, zero ops, capped capability. MCP = richer capability (embeddings, vector DB, live), but real ops cost. Distribution vs. power.
Searching with embeddings needs a model at query time, which can't ship in a static file — it needs the server an MCP provides.
Keep the file a short index that references out to advanced topics, so the agent surfaces detail in small bits only when needed — teach a protocol, not a corpus.
When web search already ties you on correctness and the docs are public and stable — skip the build unless offline/determinism/reuse pays for it.