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.
How skills work
Section titled “How skills work”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.
Token comparison
Section titled “Token comparison”| Scenario | Eager loading | Lazy loading |
|---|---|---|
| 7 skills, using 1 | ~21k tokens | ~3.7k tokens |
| 20 skills, using 0 | ~60k tokens | ~2k tokens |
Eager loading
Section titled “Eager loading”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-memorydescription: Search persistent memory before answeringeager: true---Background agents already load all skills eagerly. This flag only affects the main agent path.
What belongs in a skill
Section titled “What belongs in a skill”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.
Skill formats
Section titled “Skill formats”SKILL.md (recommended)
Section titled “SKILL.md (recommended)”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-searchdescription: Search the web using Brave Searcheager: falserequiredCapabilities: - net.httpmcpServers: - brave---
# Web Search
Use the `brave_web_search` tool to search the web. Prefer specific queries.Always include source URLs in your response.skill.yaml + prompts/ (legacy)
Section titled “skill.yaml + prompts/ (legacy)”skills/web-search/ skill.yaml # metadata and required capabilities prompts/ 01-instructions.md 02-examples.md mcp/brave.jsonskill.yaml:
name: web-searchdescription: Search the web using Brave SearchrequiredCapabilities: - net.httpBoth formats support the same features. Use SKILL.md for new skills.
Scaffolding a skill
Section titled “Scaffolding a skill”# SKILL.md format (recommended)npx talonctl add-skill --name web-search --persona assistant --format skillmd
# Legacy YAML formatnpx talonctl add-skill --name web-search --persona assistantThis creates the skill directory structure and attaches the skill to the persona in talond.yaml.
Attaching MCP servers to a skill
Section titled “Attaching MCP servers to a skill”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.
Capability requirements
Section titled “Capability requirements”Skills can declare required capabilities. At startup, Talon intersects the skill’s requirements with the persona’s capability list:
granted = persona.capabilities.allow ∩ skill.requiredCapabilitiesIf 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.
Adding MCP servers with the CLI
Section titled “Adding MCP servers with the CLI”talonctl add-mcp writes an MCP server definition into an existing skill. Create the skill with add-skill first:
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.
Writing a custom skill
Section titled “Writing a custom skill”- Create the directory:
mkdir -p skills/my-skill- Create
SKILL.md:
---name: my-skilldescription: Brief description shown in the system prompteager: falserequiredCapabilities: - net.http---
# My Skill
Instructions for the agent. Describe when and how to use the skill's tools.Include examples if helpful.-
Add any MCP servers to
skills/my-skill/mcp/. -
Attach to a persona in
talond.yaml:
personas: - name: assistant skills: - my-skill- Reload:
npx talonctl reload
Listing skills
Section titled “Listing skills”npx talonctl list-skillsnpx talonctl list-skills --persona assistantShows all configured skills across all personas with their attachment status. --persona filters the list to one persona.
Setup skills for coding agents
Section titled “Setup skills for coding agents”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.
optimize-personas
Section titled “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: truecount 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
.bakextension. - It uses
talonctlcommands and does not edittalond.yamldirectly.
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.