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:- Tier 1 — Catalog: Agent sees a compact list of skill names + descriptions (~75 tokens per skill)
- Tier 2 — Activation: Agent calls
activate_skillto load full instructions when a task matches - Tier 3 — Execution: Agent calls
run_skill_scriptto execute bundled scripts in a sandbox
Token Savings
Without progressive disclosure, all skill content is injected into the system prompt at iteration 1:| Approach | 3 skills × ~3000 tokens | If agent needs 1 |
|---|---|---|
| Eager (old) | ~9000 tokens in prompt | ~9000 tokens (all loaded) |
| Progressive (new) | ~225 tokens catalog + ~3000 activated | ~3225 tokens (64% savings) |
Creating Skills
Content-only Skill (Markdown)
ZIP Package (with scripts)
Attaching Skills to Agents
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.
<skill_content> tags for compaction protection:
run_skill_script
Executes a script bundled with an activated skill in an isolated sandbox.
- The skill has been activated (prevents running scripts from non-activated skills)
- The script exists in the skill’s S3 package
- Routes execution through the MCP Manager to a sandbox container
Execution Architecture
- 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
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 nameactivate_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:| Engine | Config | How skills execute |
|---|---|---|
| Temporal (default) | WORKFLOW__EXECUTION_ENGINE=temporal | Via workflow activities → MCP Manager → sandbox |
| Direct (dev/CLI) | WORKFLOW__EXECUTION_ENGINE=direct | In-process agent loop, same skill activation |
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
Configuration
| Variable | Default | Description |
|---|---|---|
WORKFLOW__EXECUTION_ENGINE | temporal | temporal or direct |
SANDBOX_EXECUTOR_URL | — | URL of sandbox executor (dev mode, set in MCP Manager) |
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