--skill-dir flags and combine them with rules and tools.
Rules, tools, and skills
These three layers do different jobs:- Rules shape the agent’s ongoing behavior.
- Tools give the agent capabilities such as storage, shell access, or web search.
- Skills give the agent reusable workflows for specific kinds of tasks.
- rules for identity, safety, and tone
- tools for actions and data access
- skills for repeatable task playbooks
Runnable example
The example below creates a small local skill and then starts a ChatBot that can use it.Step 1: Create a sample skill
bash
Step 2: Start a ChatBot with the skill
bash
Step 3: Use the agent
Once the agent is running, ask it something like:Summarize these release notes into a short customer-facing update.You can paste the notes into the chat, store them in room files, or combine the skill with other tools depending on your setup.
Loading multiple skills
To load more than one skill, repeat--skill-dir:
bash
--skill-dir points at one skill directory containing its own SKILL.md.
Important behavior notes
- Skills are guidance, not callable tools or functions.
- The model decides whether a skill is relevant for the current task.
- Skills do not automatically grant capabilities.
- If a skill expects storage, shell access, web search, or another toolkit, you still need to enable those tools for the agent.
Troubleshooting
The agent is not using the skill
Check:- the
descriptionclearly states when the skill should trigger - the task actually matches that description
- the
--skill-dirpath points at the folder that containsSKILL.md
The skill triggers at the wrong times
Thedescription is usually too broad or too vague. Tighten the trigger language and name the specific task types it should handle.
The skill expects capabilities the agent does not have
Add the required tools or revise the skill so it matches the runtime environment.The skill is too large or unfocused
Split the workflow into smaller skills, and move large supporting content intoreferences/ or assets/.
Where to go next
- Skills Overview: review the mental model.
- Authoring Skills: improve trigger quality and structure.
- Packaging and Deploying Skills: ship skills with a service container.