Skills Authoring Guide
Skills are modular capabilities you add to your agent by dropping a SKILL.md folder into a skills directory. This guide covers writing a skill from scratch. To install existing skills or Agent Plugin packages, see Plugin Installation and the picoclaw skills commands.
A plain skill is just a folder the agent reads with read_file. If you need packaged MCP servers, scripts, or shareable bundles, consider Agent Plugins instead. MCP servers are a separate mechanism for external tools — see MCP tools.
Where Skills Live
Skills are discovered one level deep: each direct subdirectory of a skills root must contain a SKILL.md. When names collide, the first root wins, in this order:
| Priority | Root | Source |
|---|---|---|
| 1 | Plugin-provided skills (see Plugins) | plugin |
| 2 | ~/.picoclaw/workspace/skills (or your configured workspace) | workspace |
| 3 | ~/.picoclaw/skills | global |
| 4 | Builtin skills embedded at build time (picoclaw skills list-builtin) | builtin |
Plugin-provided skills appear on the Web UI Skills page with the Plugin origin once both plugins.enabled and the plugin entry's enabled are true. They are read-only there because they live inside the plugin package; change the plugin entry or its skill_names filter to control them.
Copy builtin skills into your workspace to customize them:
picoclaw skills list-builtin
picoclaw skills install-builtin
A skill folder that fails validation is skipped, and the Gateway emits a warning in its logs (for example invalid skill from workspace ...) — check the logs when a skill does not appear.
SKILL.md Format
A skill is a Markdown file with YAML frontmatter:
---
name: my-skill
description: What it does and when to use it — this is the trigger.
---
# My Skill
1. Step one.
2. For details read [the API reference](references/api.md).
Frontmatter fields
| Field | Required | Rules |
|---|---|---|
name | Yes | Non-empty; ≤ 64 characters; letters, digits, and hyphens only (^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$) — no underscores or spaces |
description | Yes | Non-empty; only the first 60 characters are shown in the prompt skill catalog |
The description is the most important line you will write: it is the only text the agent sees before deciding to use the skill, so state both what the skill does and when to use it (include trigger words a user would say). Unknown fields such as license or metadata are tolerated but ignored by the loader.
For plugin-distributed skills, the following additional frontmatter fields are recognized and validated (a non-string value rejects the skill):
| Field | Type | Semantics |
|---|---|---|
allowed-tools | string | Reserved for downstream consumers. PicoClaw validates it is a string but does not enforce any tool restriction from it at runtime; the host currently ignores its value. |
license | string | SPDX license identifier or free-form license name. Informational only. |
compatibility | string | Compatibility hint, 1–500 characters. Informational only. |
metadata | map of strings | Arbitrary string key/value metadata. Informational only. |
If frontmatter is missing, the loader falls back to the directory name and the first body paragraph; a leading H1 can override the name when it matches the naming rules. Relying on fallbacks is not recommended — always add explicit frontmatter.
Body conventions
- Write in the imperative and keep it concise. The agent is already capable; only add context it cannot infer.
- Keep the body under ~500 lines. Metadata is always in context; the body is loaded only after the skill triggers, so when to use belongs in
description, not the body. - Prefer short examples over long explanations, and match specificity to the task: free-form guidance for judgment calls, exact steps or scripts for fragile sequences.
- Link additional files relatively and keep references one level deep, e.g.
[the example](references/example.md). The agent reads them from the skill folder when needed.
Bundled Resources
my-skill/
├── SKILL.md (required)
├── references/ (optional documentation, loaded on demand)
├── scripts/ (optional executables for deterministic tasks)
└── assets/ (optional templates, icons, files used in output)
references/ files are read with read_file relative to the skill's location (the loader exposes each skill with a <location> in the catalog). Plugin-provided skills are surfaced differently: their resources are read through the plugin resource tool instead.
How Skills Reach the Agent
At startup, the agent's system prompt receives a skill catalog with each skill's name, description, location, and source. Bodies are not inlined: when a skill is relevant, the agent reads its SKILL.md (and any referenced files) with read_file. Skills that are forced active by configuration or a turn profile are inlined as an Active Skills block instead.
This means two things for authors:
- The catalog entry (name + description) decides whether your skill is ever used.
- The body cost is paid only on use — keep it focused on execution, not on justification.
Testing a Skill
-
Create the folder and
SKILL.mdin~/.picoclaw/workspace/skills/<name>/. -
Verify it is discovered:
picoclaw skills listpicoclaw skills show <name> -
Start the Gateway (or the Web UI) and ask something that should trigger the skill; inspect the tool calls and reads in
/logsor withpicoclaw gateway --debug.
Two ready-to-read examples ship in the repository:
examples/plugins/demo-plugin/skills/greet/SKILL.md— minimal skill with areferences/file.- The builtin
skill-creatorskill (picoclaw skills list-builtin) — a detailed authoring process you can ask the agent to use directly.
Sharing Skills
- GitHub: publish the skill folder in a repository and install it with
picoclaw skills install <owner>/<repo>/<path-to-skill>. - Registries: configure
tools.skills.registriesinconfig.json(the defaultclawhubandgithubregistries are documented in Skills tools) and install withpicoclaw skills install --registry <name> <slug>. - Plugins: to ship skills together with MCP servers as one package, follow the Plugin Installation guide and the demo plugin layout.