Creating Skills
This guide helps you create your first Skill.
Steps
Create Skill Directory
Create a new folder in the skills directory:
mkdir -p ~/.mushroom_agent/skills/hello-worldWrite SKILL.md
Create
SKILL.mdwith YAML frontmatter and instructions:---name: hello_worlddescription: A simple greeting skill. Use when user asks for a greeting.---# Hello World SkillUse the `echo` tool to print "Hello from MushroomAgent skill!"Load Skill
Restart MushroomAgent or start a new session to load the Skill:
mushroom-agent skills listTest
Send a message that should trigger the Skill to test it.
Directory Best Practices
skill-name/
├── SKILL.md (required)
├── scripts/ # executable scripts (Python/Bash etc.)
├── references/ # reference documentation
└── assets/ # asset files
Best Practices
- Keep it concise - tell the agent what to do, not how to act as AI
- Security first - if using
exec, ensure the prompt doesn't allow arbitrary command injection from untrusted input - Organize with directories - put detailed reference docs in
references/, don't stuff everything intoSKILL.md