Skills
A skill is a Markdown workflow the agent can load when a task needs it. Use skills for investigation steps, decision criteria, and response requirements. Put calculations and required execution order in tools or workflows.
amodal/skills/
├── triage/
│ └── SKILL.md
└── account-access/
└── SKILL.mdSKILL.md Format
Heading-based
# Skill: Account Access Triage
Check account-access tickets and recommend the next support action.
Trigger: When the user asks about login failure, password reset, or account lock.
## Behavior
1. Load the ticket and identify the affected account.
2. Load the account-access policy with load_knowledge.
3. Check whether identity verification is complete.
4. If verification is missing, recommend verification before account changes.
5. Return the ticket status, confirmed facts, missing information, and next action.
## Constraints
- Do not request passwords or credentials.
- Do not claim a reset succeeded unless the account system confirms it.Use the parsed name, Account Access Triage, when referencing this skill in an agent's skills list. The directory name does not override it.
Frontmatter-based
Use frontmatter for a stable machine-readable name, eager loading, or tool declarations. name is required; a frontmatter file without it is not loaded.
---
name: account-access
description: Check account-access tickets and recommend the next support action.
trigger: When the user asks about login failure, password reset, or account lock.
load: on-demand
allowedTools: [lookup_ticket, load_knowledge]
---
1. Load the ticket and the account-access policy.
2. Check identity-verification status before recommending changes.
3. Return confirmed facts, missing information, and the next action.Parsed Fields
| Field | Source | Meaning |
|---|---|---|
name | # Skill: Name or frontmatter | Name used by load_skill and agent resource declarations. |
description | Text before the first ## section, excluding Trigger:, or frontmatter | Short description included in the skill index. Heading-format files without a ## section have an empty description. |
trigger | One unwrapped Trigger: line or frontmatter | Tells the model when the skill applies. |
body | From the first ## section onward, or the content after frontmatter | Instructions returned by load_skill. |
load | Frontmatter | on-demand (default) or eager. Other values warn and use the default. |
allowedTools | Frontmatter | Tool names added to a root agent's scope when it declares this skill. |
requires | Frontmatter | A skill name or list of names. Their files are also copied into the sandbox when this skill loads. Unknown names warn. |
Choose one format per file. A # Skill: heading takes precedence over frontmatter, so combining them prevents frontmatter-only options from being read. Frontmatter resultTool is parsed but has no runtime effect.
When sandbox tools are available, loading a skill copies its SKILL.md and its files/, scripts/, references/, and assets/ directories into skills/<name>/ in the session's sandbox. A skill that ships only SKILL.md, and requires no skill that ships more, loads without a sandbox. An optional sandbox-setup.sh is not copied. It runs when the sandbox is built, after sandbox.setup from amodal.json. The machines backend, the default for hosted deployments, runs no setup script, so a deploy there fails when an agent with a sandbox has a repo or package skill that ships one.
Skill Activation
The load_skill tool lists available skills by name, trigger, and description. The catalog appears once, rather than being repeated in the system prompt. The model calls load_skill to retrieve an on-demand body. load: eager includes the body in the initial prompt.
The runtime budgets the catalog separately from loaded instructions:
| Setting | Default | Behavior |
|---|---|---|
AMODAL_SKILL_CATALOG_TOKENS | 2,048 estimated tokens | Large catalogs use load_skill({ query, offset }) for search and pagination. Load the selected skill with its exact skill name. Minimum: 512. |
AMODAL_LOADED_SKILL_TOKENS | 8,192 estimated tokens | Soft retention budget for full skill instructions. During compaction, recent loaded skills are retained with their tool exchanges. The latest loaded skill stays whole even when it exceeds this budget; older skills can be loaded again. Minimum: 256. |
Discovery results may shorten long descriptions, but loading never truncates the instructions. Eager instructions remain in the system prompt and count toward loaded-skill usage. Catalog and loaded-skill usage are included in the total request estimate, not charged twice. The runtime also counts system instructions, tool schemas, conversation history, per-turn context, and output space before sending a model request. If compaction cannot make the request fit, it reports a context-capacity error instead of submitting an oversized request. context_budget debug logs expose the breakdown; loaded_skill_budget_exceeded warns when full loaded instructions exceed their soft budget.
A named agent exposes only the skills in its skills list. In schema version 2, chat uses the skills declared in agents/main/agent.json. A delegated subagent uses its own prompt and declared tools; include load_skill in its tools if it needs to load skills available through the parent registry.
A trigger describes when to use a skill; it does not schedule work or guarantee activation. Verify activation with a skill_loaded: assertion in an eval.
Built-in Skills
The runtime ships two skills that stay off until amodal.json turns them on:
reading-documentsreads the files attached to the conversation.capabilities.attachmentsturns it on.documentsmakes Office files and PDFs.sandbox.builtinSkillsturns it on. Thepresentations,documents,spreadsheets, andpdfcapabilities cover the same work with runtime tools and editable artifacts, so prefer them for a new agent.
{
"capabilities": { "attachments": true },
"sandbox": { "builtinSkills": ["documents"] }
}Either key gives the agent a sandbox, so neither needs sandbox.provider. sandbox.builtinSkills also accepts reading-documents, with the same effect as capabilities.attachments.
documents makes a PowerPoint deck, Word document, Excel workbook, or PDF. The agent builds the file with Python in the sandbox, converts it to PDF with LibreOffice, views every page with read_file, fixes text that overflows, overlaps, or is cut off, and hands the file over with publish_file. It sets no visual style; it follows the fonts, colors, and wording that your other skills or knowledge give.
A built-in skill behaves like a repo skill. It appears in the skill index and loads with load_skill. A named agent exposes it only when its skills list names it; in schema version 2, add documents to the skills of agents/main/agent.json. Declaring documents also brings bash, read_file, write_file, and publish_file into the agent's scope. A skill named documents in the repo or in a package replaces the built-in one, including its sandbox-setup.sh.
Its sandbox-setup.sh installs Python 3, python-pptx, python-docx, openpyxl, matplotlib, LibreOffice Writer, Impress, and Calc, Poppler, and the Carlito, Liberation, and DejaVu fonts. It runs with the rest of the sandbox setup:
- The image needs
apt-get(Debian or Ubuntu), and setup must run as root or as a user with passwordlesssudo. An image that already hassoffice,pdftoppm, and the four Python packages skips the install, so a read-only image works when it ships them. On any other image, sandbox setup fails with a message that names what to install. - The setup belongs to the shared sandbox, so it runs for every agent in the project once the skill is on.
- With the
spritesprovider, setup runs for each new session's sandbox, which adds the install time to the first sandbox call of a session. A sandbox that already exists keeps its environment, so start a new session after turning the skill on. - The
machinesbackend, the default for hosted deployments, runs no setup script. A built-in skill setssandbox.config.environmenttoofficethere, the prebuilt image that carries its tools, and contributes no setup, so the sameamodal.jsonworks. A repo or package skill that replaces a built-in one keeps its ownsandbox-setup.sh. A deploy tomachinesfails whenamodal.jsonsetssandbox.setupor a repo or package skill ships asandbox-setup.sh, and the error names each file. Use a capability or a built-in skill instead. - The
localprovider ofamodal devruns commands on your machine and skips setup. Install LibreOffice withsofficeon yourPATH(on macOS the app keeps it in/Applications/LibreOffice.app/Contents/MacOS/), Poppler'spdftoppm, and python-pptx, python-docx, openpyxl, and matplotlib for thepython3first on yourPATH. A virtual environment activated beforeamodal devworks.pip install --userdoes not, because the local sandbox setsHOMEto its session directory.
reading-documents reads the files attached to the conversation, which the runtime keeps in the sandbox under in/. A script it ships unpacks ZIP archives and Outlook and email messages, converts PDF, Word, Excel, PowerPoint, OpenDocument, RTF, CSV, HTML, JSON, and image files to text under work/text/, and recognizes scanned PDF pages with Tesseract. Spreadsheets keep their sheet names, formulas, computed values, and number formats. Answers cite files as [[file:<id>#p<page>]], which the chat widget opens at that page. The agent writes a short note per file to work/notes/, writes the answer or report from the notes, cites each claim to a file and page, and lists the files it could not read.
Its sandbox-setup.sh installs Poppler, Tesseract with English data, unzip, antiword, Python 3, python-docx, openpyxl, pandas, xlrd, python-pptx, extract-msg, and striprtf, under the same rules as the documents setup. An image that already has pdftotext, pdftoppm, tesseract, unzip, antiword, and the Python packages skips the install. With both built-in skills on, the first sandbox call of a sprites session installs both sets, within the 10-minute setup timeout. With the local provider, install the same tools on your machine.