技能 Installer
- 作者仓库星标 177
- 作者仓库 OpenAgentd
Skill Installer
Discovery order
OpenAgentd discovers skills from five roots, in this order. The first skill with a given name wins:
{cwd}/.openagentd/skills/{skill-name}/SKILL.md— project-specific OpenAgentd skill.{cwd}/.opencode/skills/{skill-name}/SKILL.md— project opencode-compatible skill.{SKILLS_DIR}/{skill-name}/SKILL.md— global OpenAgentd skill.~/.config/opencode/skills/{skill-name}/SKILL.md— global opencode-compatible skill.- Bundled OpenAgentd operational skills — read-only fallback.
Default to {SKILLS_DIR} for user-global installs unless the user explicitly
asks for a project-local skill or an opencode-shared skill.
If the target name already exists only as a bundled skill, install an override
in {SKILLS_DIR} (or the requested project root); never edit bundled files.
Skill file format
A skill is a directory at {root}/{skill-name}/ containing at minimum a SKILL.md file. The SKILL.md has YAML frontmatter and a Markdown body:
---
name: skill-name
description: One-sentence description shown in the system prompt.
---
# Skill Title
Full instructions the agent reads when it calls skill("skill-name").
How to install
From a URL
- Fetch the raw content with
web_fetch. - Parse out the frontmatter
namefield — that becomes the directory name. - Write the content to
{SKILLS_DIR}/{name}/SKILL.md.
From scratch
- Ask the user what the skill should do if not already specified.
- Write a
SKILL.mdfollowing the format above to{SKILLS_DIR}/{name}/SKILL.md. - Create any supporting files (e.g.
reference.md) in the same directory if useful.
Rules
- Directory name must match the
namefield in frontmatter (lowercase, hyphens only). - Never overwrite an existing skill without confirming with the user first — read it first and show what will change.
- After writing, confirm the path and name so the user can add it to an agent's
skills:list. - A new skill can be loaded by exact name immediately. It appears in generated "Available skills" sections after the affected agent rebuilds on its next turn; if a cached skill catalog is stale, use the Skills API/UI path or restart as a fallback.
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @lthoangg · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 允许外网请求
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 OpenAgentd discovers skills from five roots, in this order. The first skill with a given name wins: {cwd}/.openagentd/skills/{skill-name}/SKILL.md — project-specific OpenAgentd skill.
A skill is a directory at {root}/{skill-name}/ containing at minimum a SKILL.md file. The SKILL.md has YAML frontmatter and a Markdown body:
How to install
Fetch the raw content with webfetch. Parse out the frontmatter name field — that becomes the directory name. Write the content to {SKILLSDIR}/{name}/SKILL.md.
Ask the user what the skill should do if not already specified. Write a SKILL.md following the format above to {SKILLSDIR}/{name}/SKILL.md. Create any supporting files (e.g. reference.md) in the same directory if useful.
Directory name must match the name field in frontmatter (lowercase, hyphens only). Never overwrite an existing skill without confirming with the user first — read it first and show what will change. After writing, confirm the path and name so the user can add…
# Skill Installer
## Discovery order
OpenAgentd discovers skills from five roots, in this order. The first skill
with a given name wins:
1. `{cwd}/.openagentd/skills/{skill-name}/SKILL.md` — project-specific OpenAgentd skill.
2. `{cwd}/.opencode/skills/{skill-name}/SKILL.md` — project opencode-compatible skill.
3. `{SKILLS_DIR}/{skill-name}/SKILL.md` — global OpenAgentd skill.
4. `~/.config/opencode/skills/{skill-name}/SKILL.md` — global opencode-compatible skill.
5. Bundled OpenAgentd operational skills — read-only fallback.
Default to `{SKILLS_DIR}` for user-global installs unless the user explicitly
asks for a project-local skill or an opencode-shared skill.
If the target name already exists only as a bundled skill, install an override
in `{SKILLS_DIR}` (or the requested project root); never edit bundled files.
## Skill file format
A skill is a directory at `{root}/{skill-name}/` containing at minimum a `SKILL.md` file. The `SKILL.md` has YAML frontmatter and a Markdown body:
```markdown
---
name: skill-name
description: One-sentence description shown in the system prompt.
---
# Skill Title
Full instructions the agent reads when it calls skill("skill-name").
```
## How to install
### From a URL
1. Fetch the raw content with `web_fetch`.
2. Parse out the frontmatter `name` field — that becomes the directory name.
3. Write the content to `{SKILLS_DIR}/{name}/SKILL.md`.
### From scratch
1. Ask the user what the skill should do if not already specified.
2. Write a `SKILL.md` following the format above to `{SKILLS_DIR}/{name}/SKILL.md`.
3. Create any supporting files (e.g. `reference.md`) in the same directory if useful.
## Rules
- Directory name must match the `name` field in frontmatter (lowercase, hyphens only).
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Discovery order → Skill file format → How to install → From a URL → From scratch → Rules
要点 -> OpenAgentd discovers skills from five roots, in this order. · 1. {cwd}/.openagentd/skills/{skill-name}/SKILL.md — project-specific OpenAgentd skill. · Default to {SKILLSDIR} for user-global installs unless the user explicitly asks for a project-local skill or an opencode-shared skill. · A skill is a directory at {root}/{skill-name}/ containing at minimum a SKILL.md file. · Full instructions the agent reads when it calls skill("skill-name"). · 1. Fetch the raw content with webfetch. · 1. Ask the user what the skill should do if not already specified. · - Directory name must match the name field in frontmatter (lowercase, hyphens only).
文件/命令 -> {cwd}/.openagentd/skills/{skill-name}/SKILL.md · {cwd}/.opencode/skills/{skill-name}/SKILL.md · {SKILLSDIR}/{skill-name}/SKILL.md · ~/.config/opencode/skills/{skill-name}/SKILL.md · {SKILLSDIR} · {root}/{skill-name}/ · webfetch · name
内容 SHA-256 -> 660a53a6da20
原文结构
适用与边界
原文中的明确线索
{cwd}/.openagentd/skills/{skill-name}/SKILL.md、{cwd}/.opencode/skills/{skill-name}/SKILL.md、{SKILLSDIR}/{skill-name}/SKILL.md、~/.config/opencode/skills/{skill-name}/SKILL.md、{SKILLSDIR}、{root}/{skill-name}/、webfetch、name