Skills
Reusable agent instructions: write, import, attach, and understand script limits.
A skill is a folder of instructions for a kind of task, in the Anthropic
Agent Skills format. It contains a required SKILL.md and optional supporting
files in references/, assets/, or scripts/. One skill belongs to your
organization and can be attached to several agents.
How an agent uses skills
The agent initially sees only each attached skill's name and description.
When a task matches a description, it calls read_skill to open SKILL.md,
then reads supporting files only when needed. Attaching long skills therefore
doesn't put all their instructions into every prompt. Write descriptions that
say both what the skill does and when to use it.
Attaching a skill automatically makes read_skill available; there is no
separate tool switch. The available skills and their metadata are captured
when a run starts. File contents are read when the tool is called, so edits
during a run can affect later reads. Deleted skills return an unavailable
message. In Runs & traces, look for the
Read skill step to see what the agent read.
Prepare SKILL.md
---
name: support-replies
description: Draft support replies. Use when answering a customer support request.
---
# Support replies
Read references/tone.md before drafting a reply.
Explain the next action clearly and ask for missing details when needed.| Field | Rules |
|---|---|
name | Required, 1–64 characters, only lowercase a-z, digits 0-9, and -; unique within your organization; no XML tags. |
description | Required, 1–1024 characters; no XML tags. |
Other frontmatter keys, such as license, allowed-tools, and metadata,
are preserved but ignored by Harnix. Names containing claude or anthropic
are allowed. The body is Markdown. Paths must be relative, separated by /,
and at most 255 characters, with no empty segments, . or .., leading /,
backslashes, or control characters. SKILL.md cannot be deleted or moved.
Add a skill
Open Skills in the console. Choose one of three ways:
Import from GitHub
Paste a public GitHub folder URL pointing to the skill, for example
https://github.com/anthropics/skills/tree/main/skills/pdf.
A repository URL also works if SKILL.md is at its root; Harnix uses the
default branch. Each import creates one skill: for a repository with several
skills, import each folder separately. Private repositories are not supported.
GitHub skills keep their source URL and imported commit. Update from source fetches the source again and replaces all files, overwriting console edits. Download a zip first if you want to keep those edits. Updates are manual; there is no automatic synchronization.
Upload a zip
Upload a zip containing SKILL.md at the archive root, or a single top-level
folder containing SKILL.md. Supporting files stay alongside it. Invalid
paths, duplicate paths, symbolic links, and suspicious compression ratios are
rejected. macOS metadata (__MACOSX/ and .DS_Store) is ignored.
Write in the console
Create a skill with a name and description, then edit the generated SKILL.md.
Add or edit text files and upload supporting files, including binary assets.
You can view scripts in the console and download the current skill as a zip.
Saving SKILL.md validates its frontmatter and updates the skill's name and
description.
Attach and try a skill
Open an agent's configuration and select skills in its Skills section. A skill can be shared by several agents in your organization. Skills with scripts can also be attached, with a warning that some steps are unavailable. Try a matching request in Playground, then inspect its Read skill trace step. Removing an attachment affects new runs; deleting the skill removes it from all agents.
Limits
These are the default limits; your deployment may configure different values. Sizes below use binary units (1 MiB = 1,048,576 bytes).
| Limit | Default |
|---|---|
| Files per skill | 200 |
| One file | 2 MiB (2,097,152 bytes) |
| Total skill size after extraction | 10 MiB (10,485,760 bytes) |
| Skills per organization | 200 |
| Skills attached to one agent | 20 |
Text returned per read_skill read | 64 KiB (65,536 bytes), truncated with a notice |
| Compressed GitHub repository download | 50 MiB (52,428,800 bytes) |
| GitHub request timeout | 20 seconds |
Binary files are kept and downloadable, but the agent receives a fixed message that they cannot be read as text. Text must be valid UTF-8 without NUL bytes.
Scripts are stored, but unavailable to the agent
Harnix keeps bundled scripts so you can import and export skills intact.
Script execution is not available in this phase: running imported code needs
a separate execution sandbox. The agent sees script filenames marked
[script — not available], but never their contents. Reading a script returns
this fixed text:
This file is a script. Scripts cannot be run in this environment and their content is not available. Never say or imply that you ran it. If the step needs this script, do it another way if you can; otherwise tell the user this step is not available.A file is treated as a script if it is under a scripts/ directory at any
depth, starts with #!, or has one of these extensions outside the root
references/ and assets/ directories:
.py, .sh, .bash, .zsh, .js, .mjs, .cjs, .ts, .rb, .pl,
.php, .ps1, .bat, .cmd, .exe, .bin.
The directory exception keeps reference code examples readable; it does not
bypass the scripts/ or #! rules. The agent should use another available
method or tell the user the step is unavailable, and must never claim it ran
a bundled script.
Community skills
Browse anthropics/skills for examples and skills to import. Skills that rely on scripts will have unavailable steps under the restrictions above.