Repository navigation
Conversation
A valid plugin now emits one KindSkill per directory under its skills/ container that holds a SKILL.md, attributed to the plugin through PluginName. A scan root that is itself a plugin hands its skills/ to the plugin instead of scanning it as a plain skill container. Per spec section 4.1, skills/ and each skill directory may be symlinks whose targets stay inside the canonical plugin root. A skill whose directory or SKILL.md escapes the root is reported as invalid; an escaping, unreadable, or non-directory skills/ disables the plugin's skills with a warning on the plugin. Skill names and descriptions are checked against the Agent Skills limits of 64 and 1024 characters. applyCaps ranks KindPlugin directly ahead of KindSkill so a count cut that keeps a plugin's skills also keeps the plugin, and skills of a plugin that a cap excluded are dropped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…/agent-plugins/02b-plugin-skills
beccf2b to
9461989
Compare
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9461989d5c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…n plugin skills Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 398adfecf4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| res.Error = strings.Join(manifest.Warnings, "; ") | ||
| warnings := manifest.Warnings | ||
|
|
||
| skills, warn := r.pluginSkills(pluginRoot, root, manifest.Name) |
There was a problem hiding this comment.
Watch discovered plugin skill directories
When plugins are enabled, this loads skills from <scan-root>/{plugins,.agents/plugins}/<plugin>/skills, but Watcher.collectDirs in agent/agentcontext/watcher.go:320-352 still watches only the scan root and ordinary containers returned by skillContainersFor(root.Path). Consequently, editing an existing plugin SKILL.md or adding/removing a bundled skill produces no fsnotify event, so the Manager continues serving the initial snapshot until an unrelated event or explicit resync; watcher synchronization needs to include discovered plugin skill containers and their immediate skill directories.
Useful? React with 👍 / 👎.
| metaInfo, err := os.Lstat(meta) | ||
| if err != nil { |
There was a problem hiding this comment.
Reject non-regular SKILL.md files before reading
When a plugin skill contains a non-symlink FIFO named SKILL.md, Lstat succeeds here and readSkillMeta eventually calls os.ReadFile without checking Mode().IsRegular(), blocking the entire resolution pass indefinitely while waiting for a writer. The Agent Plugins skill discovery contract only discovers SKILL.md paths that resolve to regular files, so direct special files should be skipped or rejected before invoking readSkillMeta.
Useful? React with 👍 / 👎.
…/agent-plugins/02b-plugin-skills
A valid Agent Plugin now emits one skill per directory under its
skills/container that holds aSKILL.md, attributed to the plugin throughPluginName. A scan root that is itself a plugin hands itsskills/to the plugin instead of scanning it as a plain skill container.Per spec section 4.1,
skills/and each skill directory may be symlinks whose targets stay inside the canonical plugin root. A skill whose directory orSKILL.mdescapes the root is reported as invalid. An escaping, unreadable, or non-directoryskills/disables the plugin's skills and puts a warning on the plugin. Skill names and descriptions are checked against the Agent Skills limits (64 and 1024 characters).applyCapsranks plugins directly ahead of skills so a count cut that keeps a plugin's skills also keeps the plugin, and skills of an excluded plugin are dropped.Discovery is still off until the next PR wires the manifest flag. Split out of #32265; together they match the previous #32265.
Part 3 of the #29321 split.
Stack (base
main, replaces #29321–#30577):Generated by Claude Code