Skills
Skills are reusable prompt modules. By loadingSKILL.md, you can inject domain-specific instructions into a session.
Overview
- Reuse domain knowledge as skills.
- Share consistent behavior across projects.
- Enable or disable skills per session.
SessionConfig skillDirectories and disabledSkills.
Basic usage
If you set a parent directory inskillDirectories, each SKILL.md in its subdirectories is loaded.
Disable specific skills
UsedisabledSkills to disable selected skills after discovery.
Directory structure
skillDirectories to the parent folder, such as skills/.
SKILL.md format
SKILL.md is Markdown. You can optionally include YAML frontmatter.
name: Skill identifier (used bydisabledSkills)description: Short skill description
name, the directory name is used.
Combine with custom agents
If you setcustomAgents[].skills, those skill contents are preloaded when that agent starts.
If you omit skills, no skill content is injected into that agent.
Inspect and manage via RPC
You can discover, enable, and disable skills through RPC.Best practices
- Split skills by domain (
skills/security,skills/testing, etc.). - Add both
nameanddescriptionin frontmatter. - Explicitly exclude conflicting instructions with
disabledSkills. - Verify each skill alone before combining multiple skills.