-
Notifications
You must be signed in to change notification settings - Fork 18.5k
[DOCS]: Agents field as string in plugin manifest causes installation failure #21598
Description
Summary
The public plugin docs show agents as a string value in the example manifest schema, but using a string causes plugin installation to fail. Only an array of strings works.
Problem
The Plugin Manifest Schema docs show the following example:
{
"agents": "./custom/agents/"
}However, using a string for the agents field causes plugin installation to silently fail. The plugin does not load correctly and no clear error is surfaced to the user.
The only format that works is an array of strings:
{
"agents": ["./agents/broll-manager.md"]
}The internal manifest reference (plugins/plugin-dev/skills/plugin-structure/references/manifest-reference.md) specifies agents as String or Array of strings with default ["./agents"], but the string variant does not appear to work in practice.
Steps to Reproduce
-
Create a plugin with
plugin.jsoncontaining"agents": "./agents/" -
Add the plugin to the marketplace and install it from the marketplace
-
Plugin installation fails -- agents are not loaded and no clear error is surfaced
-
Change to
"agents": ["./agents/my-agent.md"] -
Re-publish and reinstall from the marketplace
-
Agents now load correctly
Expected Behavior
Either:
- The string format (
"agents": "./agents/") should work as documented, OR - The docs should be updated to show only the array-of-strings format that actually works
Related Issues
- [Bug] Plugin TUI validation rejects agents array while CLI install succeeds #13927 --
agentsarray of objects causes Zod validation error in TUI - Issue: Silent skill loading failure in plugins, Feature Request: Plugin Manifest Validation with Error Disclosure #20409 -- Silent skill loading failure with unknown/malformed fields
- Plugin installation fails: Invalid manifest file - agents field validation error affaan-m/everything-claude-code#90 -- Community report on manifest schema confusion
- Create PLUGIN_SCHEMA_NOTES.md affaan-m/everything-claude-code#93 -- Community report on skill loading issues