Skip to main content

Skills

Skills are reusable instruction packages that agents load on demand. An agent with 10 skills pays the token cost of only the ones it activates — not all 10 upfront.

Overview

Skills follow the agentskills.io progressive disclosure pattern:
  1. Tier 1 — Catalog: Agent sees a compact list of skill names + descriptions (~75 tokens per skill)
  2. Tier 2 — Activation: Agent calls activate_skill to load full instructions when a task matches
  3. Tier 3 — Execution: Agent calls run_skill_script to execute bundled scripts in a sandbox

Token Savings

Without progressive disclosure, all skill content is injected into the system prompt at iteration 1:

Creating Skills

Content-only Skill (Markdown)

ZIP Package (with scripts)

ZIP structure:

Attaching Skills to Agents

The agent’s system prompt will contain a catalog of these skills, not their full content.

Agent Tools

When an agent has skills, two built-in tools are automatically registered:

activate_skill

Loads full skill instructions on demand. The skill name is constrained to an enum of attached skills — the LLM cannot hallucinate skill names.
Response is wrapped in <skill_content> tags for compaction protection:

run_skill_script

Executes a script bundled with an activated skill in an isolated sandbox.
The workflow validates:
  1. The skill has been activated (prevents running scripts from non-activated skills)
  2. The script exists in the skill’s S3 package
  3. Routes execution through the MCP Manager to a sandbox container

Execution Architecture

Separation of concerns:
  • Temporal knows “execute this script” — calls MCP Manager API
  • MCP Manager knows “route to a sandbox” — finds a pod or container
  • Sandbox knows “run this subprocess” — executes and returns output
Each layer only knows about the layer below it.

Compaction Protection

Activated skill content is protected from context window compaction. When the context manager needs to free tokens, it skips messages containing skill content (detected by tool name activate_skill or <skill_content> tags). This ensures skill instructions persist through the entire conversation, even in long-running tasks.

Execution Engine

Skills work with both execution engines: Both use the same activate_skill tool and skill catalog. The execution path differs but the agent experience is identical.

Security: Cross-Skill Isolation (Planned)

When an agent activates multiple skills, each skill’s scripts run in a separate sandbox. Data passes between skills only through S3, controlled by the workflow:
  • Skill A never sees Skill B’s secrets
  • Scripts can’t plant persistent processes across sandbox boundaries
  • The workflow (Temporal) is the trust boundary, not the sandbox
See Skill Sandboxing for container isolation details.

Configuration


Next Steps

Skill Sandboxing

Container isolation and security model

Warm Pool

Pre-warmed pods for fast script execution

Building Agents

Create agents with skills and tools

API Reference

Skills API endpoints