Skip to content
API Blog

SKILL.md Reference

SKILL.md is the skill file format used by Lobu. It combines optional YAML frontmatter with markdown instructions.

Use it for:

  • Skill metadata such as name and description
  • Capability declarations such as MCP servers, packages, and network domains
  • Instruction text that is injected into the agent’s system prompt when the skill is active

Tool policy does not live in SKILL.md. Configure that in lobu.toml under [agents.<id>.tools]; see Tool Policy.

Lobu discovers local skills from:

  • skills/<name>/SKILL.md for shared project-level skills
  • agents/<agent>/skills/<name>/SKILL.md for agent-specific skills

If the file exists, Lobu loads it automatically at startup.

---
name: PDF Processing
description: Extract text and metadata from PDF files
---
# PDF Processing
When asked to work with PDFs, use `pdftotext` first.
---
name: My Skill
description: What this skill does
mcpServers:
my-mcp:
url: https://my-mcp.example.com
type: sse
nixPackages:
- jq
- ripgrep
- pandoc
network:
allow:
- api.example.com
---
# My Skill
Instructions and behavioral rules for the agent go here as Markdown.
The body acts as a system prompt extension.
FieldTypeDescription
namestringDisplay name shown in settings and search results
descriptionstringShort summary for the skill registry
mcpServersobjectMCP server connections keyed by server ID
mcpServers.<id>.urlstringServer endpoint URL
mcpServers.<id>.typesse | stdioTransport type
mcpServers.<id>.commandstringCommand for stdio MCP servers
mcpServers.<id>.argsstring[]Arguments for stdio MCP servers
nixPackagesstring[]System packages to install in the worker
network.allowstring[]Domains the worker sandbox can reach
network.denystring[]Domains to block

The markdown body after the frontmatter is appended to the agent’s prompt when the skill is active. Use it for workflows, rules, conventions, and domain-specific instructions.

  • SKILL.md frontmatter does not configure tool approval or pre_approved MCP tools.
  • For MCP servers that should live directly on the agent rather than inside a skill, configure them in lobu.toml.