name: skill-installer description: >- Install new skills into the agent's skills directory by fetching from a URL or writing from scratch.
Skill Installer
Use this skill when the user wants to add a new skill body. Do not use it for changing models, tools, MCP servers, plugins, or other agent configuration.
Discovery order
OpenAgentd discovers skills from these roots, in order. The first skill with a
given name wins:
{cwd}/.openagentd/skills/{skill-name}/SKILL.md{cwd}/.opencode/skills/{skill-name}/SKILL.md{SKILLS_DIR}/{skill-name}/SKILL.md~/.config/opencode/skills/{skill-name}/SKILL.md- Bundled OpenAgentd operational skills — read-only fallback.
Default to {SKILLS_DIR} unless the user explicitly asks for a project-local or
opencode-shared skill. If the target name exists only as a bundled skill, install
a writable override; never edit bundled files.
Skill file format
A skill is a directory containing at minimum a SKILL.md file with YAML
frontmatter and a Markdown body:
---
name: skill-name
description: One-sentence description shown in the skill registry.
---
# Skill Title
Full instructions the agent reads when it calls skill("skill-name").
Rules:
- Directory name should match the
namefield for flat skills. - Prefer lowercase kebab-case names unless the user intentionally wants a
one-level namespace such as
oad/debug. - Keep
description:short and trigger-oriented. - Never overwrite an existing skill without reading it first and confirming with the user.
How to install
From a URL
- Fetch the raw content with
web_fetch. - If the response is HTML, ask for the raw URL and stop.
- Parse the frontmatter
namefield; that is the skill name. - Write the content to the selected writable skill root.
- Read it back to verify the file landed correctly.
- Confirm the exact path and skill name.
From scratch
- Ask what the skill should do only if the request does not already specify it.
- Write a
SKILL.mdfollowing the format above to the selected writable skill root. - Add supporting files in the same directory only if they are useful.
- Read it back to verify the file landed correctly.
- Confirm the exact path and skill name.
A new skill can be loaded by exact name immediately. If a UI catalog looks stale, refresh the Skills page or restart as a fallback.