46.1 What Are Skills?
Skills are self-contained, composable AI capabilities that combine a specific prompt/instruction set, one or more tools/functions, input/output schemas, and evaluation criteria into a single, reusable unit.
┌─────────────────────────────────────┐
│ SKILL: Document Analyzer │
│ │
│ Prompt: "Analyze this document..." │
│ Tools: [parse_pdf, extract_tables, │
│ summarize_section] │
│ Input: Document (PDF/DOCX) │
│ Output: AnalysisReport (JSON) │
│ Eval: Accuracy > 95% │
└─────────────────────────────────────┘
46.2 Skills Composition Pattern
Complex tasks decompose into skill calls, and skills themselves can compose other skills:
Complex Task: "Analyze competitor landscape"
│
▼
┌──────────────────┐
│ Orchestrator │
│ (Decomposes into │
│ skill calls) │
└──────┬───────────┘
│
┌────┼────┐────────────┐
▼ ▼ ▼ ▼
Skill: Skill: Skill: Skill:
Web Data Financial Report
Search Extract Analysis Generation
│ │ │ │
└──────┼──────┘ │
▼ │
Skill: Competitive │
Analysis │
│ │
└─────────┬───────┘
▼
Final Deliverable
46.3 Skills Registry
class SkillRegistry:
"""Central registry for discovering and managing skills."""
def __init__(self, vector_index):
self.skills: dict[str, dict] = {}
self.vector_index = vector_index
def register(self, skill):
"""Register a new skill with metadata."""
self.skills[skill.name] = {
"skill": skill,
"version": skill.version,
"input_schema": skill.input_schema,
"output_schema": skill.output_schema,
"description": skill.description,
"dependencies": skill.dependencies,
"evaluation_results": skill.eval_results,
}
self.vector_index.upsert(id=skill.name, text=skill.description)
def discover(self, task_description: str, top_k: int = 5):
"""Find relevant skills for a given task via semantic search."""
matches = self.vector_index.search(task_description, top_k=top_k)
return [self.skills[m.id]["skill"] for m in matches]
46.4 Skills vs. Tools vs. MCP Servers — How They Relate
A useful mental model: an MCP server exposes low-level tools and resources; a skill is a higher-level, composed capability that may internally call one or more MCP tools plus a specific prompt and evaluation criteria; an orchestrator (agent or multi-agent system) composes skills to accomplish a broader goal. Skills add a packaging layer — instructions + tools + schemas + eval — above raw tool definitions, making capabilities independently versionable, testable, and discoverable by description rather than requiring the orchestrator to know implementation details.
Section 46 — Interview Q&A
Q1: How is a “Skill” architecturally different from a raw MCP tool or a plain function-calling tool? A raw tool is a single function with an input/output schema — no attached instructions, no evaluation criteria, no composition semantics. A skill packages a specific instruction set, one or more underlying tools, defined input/output schemas, and evaluation criteria into one discoverable, versionable unit. This means a skill can be discovered by description (semantic search over what it does), tested independently against its own eval criteria, and composed with other skills by an orchestrator — capabilities a bare tool definition doesn’t carry.
Q2: How would you design a skills registry that scales to hundreds of skills without the orchestrator needing to know about all of them upfront? Index each skill’s description in a vector store at registration time; at task-decomposition time, the orchestrator queries the registry with a natural-language description of what it needs and gets back the top-K most relevant skills by semantic similarity, rather than enumerating every registered skill in its prompt. This keeps the orchestrator’s context bounded regardless of registry size and lets new skills become usable immediately upon registration without any orchestrator-side code or prompt change.