Skip to content

Skills

A skill is a named bundle of prompt instructions, MCP server definitions, and tool manifests. Attach skills to personas to extend their capabilities without bloating the system prompt.

Talon injects only the skill’s name and one-line description into the system prompt. When the agent needs a skill’s full instructions, it calls the skill_load tool. The full content loads on demand.

Skills can opt into eager loading with eager: true in their manifest. By default, only metadata is injected.

This lazy loading keeps system prompt size low regardless of how many skills are attached. A persona with 7 skills attached uses about 3.7k tokens for skill metadata — compared to ~21k if all content were eager-loaded.

Background agents are an exception: they load all skills eagerly at startup to ensure full access without needing to call skill_load.

The skill_load tool is available on all providers, including openai-compatible and codex-cli.

ScenarioEager loadingLazy loading
7 skills, using 1~21k tokens~3.7k tokens
20 skills, using 0~60k tokens~2k tokens

When a skill sets eager: true, its full body is merged into the persona system prompt at startup instead of waiting for a skill_load call.

Use eager loading for skills with reflexive triggers — for example, a memory skill that should search before answering. Smaller models sometimes miss behavior cues when only the description is available, so loading the full instructions upfront ensures the trigger fires reliably.

---
name: talon-memory
description: Search persistent memory before answering
eager: true
---

Background agents already load all skills eagerly. This flag only affects the main agent path.

A persona’s system.md and personality files go into the system prompt on each run. A skill adds only its name and description until the agent loads it. Put knowledge or a procedure that only some tasks need in a skill. Keep identity, tone, user preferences, and privacy and safety rules in system.md or a personality file, because the agent must follow those without a decision to load them. The full placement rule is in Personas.


Single file with YAML frontmatter:

skills/web-search/
SKILL.md # YAML frontmatter + markdown instructions
mcp/brave.json # MCP server definition (optional)
tools/*.yaml # tool manifests (optional)
migrations/*.sql # DB migrations (optional)

SKILL.md structure:

---
name: web-search
description: Search the web using Brave Search
eager: false
requiredCapabilities:
- net.http
mcpServers:
- brave
---
# Web Search
Use the `brave_web_search` tool to search the web. Prefer specific queries.
Always include source URLs in your response.
skills/web-search/
skill.yaml # metadata and required capabilities
prompts/
01-instructions.md
02-examples.md
mcp/brave.json

skill.yaml:

name: web-search
description: Search the web using Brave Search
requiredCapabilities:
- net.http

Both formats support the same features. Use SKILL.md for new skills.


Terminal window
# SKILL.md format (recommended)
npx talonctl add-skill --name web-search --persona assistant --format skillmd
# Legacy YAML format
npx talonctl add-skill --name web-search --persona assistant

This creates the skill directory structure and attaches the skill to the persona in talond.yaml.


Skills can bundle MCP server definitions. Place JSON files in the mcp/ subdirectory:

skills/web-search/mcp/brave.json
{
"command": "npx",
"args": ["@modelcontextprotocol/server-brave-search"],
"env": {
"BRAVE_API_KEY": "${BRAVE_API_KEY}"
}
}

MCP servers from skills connect at daemon startup — they don’t wait for skill_load. The environment variable substitution uses the same ${ENV_VAR} syntax as the main config.


Skills can declare required capabilities. At startup, Talon intersects the skill’s requirements with the persona’s capability list:

granted = persona.capabilities.allow ∩ skill.requiredCapabilities

If a skill requires a capability the persona doesn’t have, a warning is logged at startup and the skill is skipped. The daemon still starts — the skill is just unavailable.


talonctl add-mcp writes an MCP server definition into an existing skill. Create the skill with add-skill first:

Terminal window
npx talonctl add-mcp --skill web-search \
--name brave-search \
--transport stdio \
--command npx \
--args @modelcontextprotocol/server-brave-search

--skill, --name, and --transport (stdio, sse, or http) are required. See MCP integration for HTTP servers and OAuth.


  1. Create the directory:
Terminal window
mkdir -p skills/my-skill
  1. Create SKILL.md:
---
name: my-skill
description: Brief description shown in the system prompt
eager: false
requiredCapabilities:
- net.http
---
# My Skill
Instructions for the agent. Describe when and how to use the skill's tools.
Include examples if helpful.
  1. Add any MCP servers to skills/my-skill/mcp/.

  2. Attach to a persona in talond.yaml:

personas:
- name: assistant
skills:
- my-skill
  1. Reload: npx talonctl reload

Terminal window
npx talonctl list-skills
npx talonctl list-skills --persona assistant

Shows all configured skills across all personas with their attachment status. --persona filters the list to one persona.


The Talon repo also ships skills for the coding agent that you use to set up and maintain Talon, such as Claude Code. They live in .claude/skills/ and .agents/skills/. These are not persona skills. You do not attach them in talond.yaml. Examples are talon-setup, create-profile, manage-schedules, and optimize-personas.

The optimize-personas skill audits the personas of a running setup. It moves prompt content to the cheapest place that still works: a personality file, a skill, a separate persona, or a sub-agent. You can run it again at any time, for example after a model change.

How it works:

  • It lists each persona’s always-loaded files and measures their size. Skills with eager: true count as always-loaded.
  • It reads usage from the database, such as run counts per persona and delegations between personas.
  • It proposes moves based on the placement rule. You approve each move before a file changes.
  • It never deletes a file. A moved file keeps a copy with a .bak extension.
  • It uses talonctl commands and does not edit talond.yaml directly.

The audit needs real usage. Do not run it during a first setup. With one persona and fewer than about 50 runs, the skill says so and stops. If an audit query fails with no such table or no such column, the database is behind on migrations. Run npx talonctl migrate.

The talon-setup skill has a menu entry for it and applies the same placement rule when it writes a persona prompt.