Skip to content

Commit 6eb4b89

Browse files
authored
Update plugin skill discovery docs (#582)
* Update plugin skill discovery docs * Clarify plugin skill precedence docs
1 parent 6ec77d6 commit 6eb4b89

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎AGENTS.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ description: Run the project's benchmark suite and summarize the deltas.
132132
3. Report any regression > 5% with the function name and the previous value.
133133
```
134134

135-
Only `name` and `description` are recognized in the frontmatter today. The `name` defaults to the directory name. If two skills declare the same name, the one in the lexicographically-first directory wins — duplicates are dropped silently. Plugin-declared skills (section 6) are not yet merged into the loader, so a `skills:` entry inside a plugin's `plugin.json` is not visible to the `skill` tool today.
135+
Only `name` and `description` are recognized in the frontmatter today. The `name` defaults to the directory name. Within a single skills root, duplicate names are resolved by lexicographic directory order. During an agent run, Zero loads the default skills directory before plugin skill roots; earlier roots win name collisions silently. Plugin-declared skills (section 6) are merged into the active agent run at plugin activation time, so bundled skills appear in the available skills list and can be loaded with the `skill` tool.
136136

137137
The `skill` core tool lets the agent load any discovered skill by name.
138138

@@ -282,7 +282,7 @@ A plugin is enabled by being present in the plugins directory and disabled by re
282282

283283
Plugin commands run with the plugin directory as their working directory. Use relative paths; the loader resolves them at activation time.
284284

285-
> **Roadmap.** An in-UI plugins manager (browse, install, enable / disable) is on the backlog. Today you use the `zero plugins` CLI subcommands above. Skills declared inside a plugin's `plugin.json` are not yet merged into the `skill` tool's discovery (see section 3).
285+
> **Roadmap.** An in-UI plugins manager (browse, install, enable / disable) is on the backlog. Today you use the `zero plugins` CLI subcommands above.
286286
287287
## 7. Configuration locations
288288

‎internal/skills/skills.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ type DuplicateName struct {
7777
// winner regardless of sort stability. Use Duplicates to surface a warning about
7878
// any such collisions.
7979
//
80-
// NOTE: Load currently scans a single root (ZERO_SKILLS_DIR / the data dir).
81-
// Plugin-declared skill paths (the plugins manifest "skills" array) are NOT yet
82-
// merged into this lookup; multi-root loading is tracked as a separate feature.
80+
// NOTE: Load scans one root. Agent startup merges plugin-declared skill roots
81+
// separately during plugin activation, so the runtime skill surface can include
82+
// both the default directory and skills bundled by active plugins.
8383
func Load(dir string) ([]Skill, error) {
8484
skills, _, err := load(dir)
8585
return skills, err

0 commit comments

Comments
 (0)