SkillRegistry manages collections of markdown-based skills and provides search, discovery, and smart loading modes. It’s ideal for building prompt libraries that agents can draw from.
Quick Example
Markdown Skills
A markdown skill is a.md file with YAML frontmatter that provides methodology and instructions — no tools, just expertise.
Frontmatter Fields
Unique identifier for the skill.
Short description shown in the skill catalog.
Semantic version.
Searchable tags for discovery.
Tool names this skill expects to be available.
Skill author.
<skill name="..."> tags in the system prompt for clear delineation.
Loading Skills
From a File
From a String
From a Directory
SkillRegistry Constructor
Explicit skills to include (highest priority, overrides duplicates).
Custom directories to load markdown skills from.
Include the 8 built-in library skills (code-review, data-analysis, debug-code, explain-concept, plan-project, summarize-document, web-research, write-report).
Methods
| Method | Return Type | Description |
|---|---|---|
list_skills() | List[MarkdownSkillMeta] | All skill metadata, sorted by name |
get_skill(name) | Optional[MarkdownSkill] | Look up a skill by name |
search_skills(query) | List[MarkdownSkill] | Search by keyword/tag (scored: name=3, tag=2, desc=1) |
as_eager() | List[Skill] | Return all skills as a list — all injected into system prompt |
as_lazy() | Skill | Return a single wrapper skill with catalog table + read_skill tool |
Eager vs. Lazy Mode
The registry can provide skills in two modes:Eager Mode
Lazy Mode
read_skill(skill_name) tool. The model loads skills on demand. Best for large collections (15+ skills) to avoid bloating the prompt.
Auto Mode
When usingskill_registry= on the Agent, the mode is chosen automatically:
Built-in Library Skills
| Name | Description | Tags |
|---|---|---|
code-review | Systematic code review with severity-ranked findings | code, review, quality |
data-analysis | Structured data analysis with statistical reasoning | data, analysis, statistics |
debug-code | Methodical debugging with hypothesis testing | debug, code, troubleshooting |
explain-concept | Clear explanation of technical concepts | explain, concept, education |
plan-project | Project planning with scope/timeline/risks | plan, project, organization |
summarize-document | Document summarization with key insights | summarize, document, writing |
web-research | Deep research using web search + source synthesis | research, web, search |
write-report | Report writing with structure/clarity/evidence | write, report, documentation |