--skill-dir in the CLI or skill_dirs in the SDKs that expose it.
What a skill is
A skill is a directory that contains instructions and optional supporting files:SKILL.md. MeshAgent also accepts lowercase skill.md.
The file starts with YAML frontmatter such as:
namedescription
Skills vs rules and tools
These pieces work together, but they do different jobs:- Rules shape the agent’s ongoing behavior.
- User prompts describe the current request.
- Skills give the agent reusable workflows for specific kinds of work.
- Tools give the agent callable capabilities such as storage, shell access, web search, or room APIs.
- Tools do work.
- Skills explain how to do work.
Load skills into an agent
You can point--skill-dir at either:
- one skill directory
- a parent directory that contains multiple skill directories
./skills and then loads the parent folder:
bash
Auto-detecting skills from a folder
When--skill-dir points at a parent folder, MeshAgent auto-detects the immediate child directories that contain SKILL.md or skill.md.
That means this works:
bash
--skill-dir flags when you want to combine multiple roots.
Pull skills from GitHub
MeshAgent does not need a special GitHub-specific skill loader. It reads skills from local directories. That means there are two practical patterns:- tell an agent with shell access to clone or pull a public skills repo into room storage
- configure a custom service with
--skill-dirpointing at the room-backed skills folder
/data, so you can tell it to create skills in the room or pull a public skills repo into the room for you.
If the repo is private, the agent needs a token or other credentials that let it authenticate with GitHub.
One important distinction: the built-in assistant template does not currently start with --skill-dir. That means cloned skill files are not automatically loaded through MeshAgent’s formal skills runtime just because they exist in the room. The assistant can still fetch them, inspect them, and use them as files. To have a service auto-load them as skills, the agent or service needs to be configured with --skill-dir pointed at that folder.
Because MeshAgent reads configured skill directories from disk when it builds the agent’s rules, skills added to a configured room-backed path can be picked up on later turns.
When to use skills
Use skills when you want to:- package a repeatable workflow once and reuse it across many turns or rooms
- keep long task playbooks out of inline
--rulestrings - teach an agent how to choose tools, inspect files, and structure its output
- ship domain-specific guidance with a deployed service
When not to use skills
Do not use skills as a replacement for:- tools, when the agent needs a new capability
- rules, when the instruction should apply on every turn
- schemas, when the system needs strict structured input or output
Where to go next
- Authoring Skills: write
SKILL.mdfiles and organize supporting resources. - Bundle Private Skills with a Custom Service: ship a fixed or private set of skills with a service.
- How Tools and Toolkits Work: understand the capabilities that skills often rely on.