docs: add agent-compatible paths to skills documentation (#12067)
This commit is contained in:
@@ -17,15 +17,17 @@ OpenCode searches these locations:
|
|||||||
- Global config: `~/.config/opencode/skills/<name>/SKILL.md`
|
- Global config: `~/.config/opencode/skills/<name>/SKILL.md`
|
||||||
- Project Claude-compatible: `.claude/skills/<name>/SKILL.md`
|
- Project Claude-compatible: `.claude/skills/<name>/SKILL.md`
|
||||||
- Global Claude-compatible: `~/.claude/skills/<name>/SKILL.md`
|
- Global Claude-compatible: `~/.claude/skills/<name>/SKILL.md`
|
||||||
|
- Project agent-compatible: `.agents/skills/<name>/SKILL.md`
|
||||||
|
- Global agent-compatible: `~/.agents/skills/<name>/SKILL.md`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Understand discovery
|
## Understand discovery
|
||||||
|
|
||||||
For project-local paths, OpenCode walks up from your current working directory until it reaches the git worktree.
|
For project-local paths, OpenCode walks up from your current working directory until it reaches the git worktree.
|
||||||
It loads any matching `skills/*/SKILL.md` in `.opencode/` and any matching `.claude/skills/*/SKILL.md` along the way.
|
It loads any matching `skills/*/SKILL.md` in `.opencode/` and any matching `.claude/skills/*/SKILL.md` or `.agents/skills/*/SKILL.md` along the way.
|
||||||
|
|
||||||
Global definitions are also loaded from `~/.config/opencode/skills/*/SKILL.md` and `~/.claude/skills/*/SKILL.md`.
|
Global definitions are also loaded from `~/.config/opencode/skills/*/SKILL.md`, `~/.claude/skills/*/SKILL.md`, and `~/.agents/skills/*/SKILL.md`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user