Summary
Installing the plugin via claude plugin install fails manifest validation.
The agents (and skills) fields in .claude-plugin/plugin.json are set to a
directory string, but Claude Code's plugin schema requires an array of
file paths (or the fields omitted entirely for auto-discovery).
Error
✘ Failed to install plugin "claude-code-agents@undeadlist-claude-code-agents":
Plugin <tmp> has an invalid manifest file at .../.claude-plugin/plugin.json.
Validation errors: agents: Invalid input
Cause
.claude-plugin/plugin.json:
"agents": "./agents/",
"skills": "./skills/"
A bare directory string is not valid for these fields.
Fix
Either omit both fields — Claude Code auto-discovers agents from agents/ and
skills from skills/ — or list explicit file paths as an array, e.g.:
"agents": ["./agents/api-tester.md", "..."]
Simplest fix is to delete both lines; the directories already exist and are
picked up automatically.
Environment
- Claude Code: 2.1.195
- OS: Ubuntu (Linux 6.14)
- Command:
claude plugin install claude-code-agents@undeadlist-claude-code-agents --scope user
- Plugin version: 3.1.0
Summary
Installing the plugin via
claude plugin installfails manifest validation.The
agents(andskills) fields in.claude-plugin/plugin.jsonare set to adirectory string, but Claude Code's plugin schema requires an array of
file paths (or the fields omitted entirely for auto-discovery).
Error
Cause
.claude-plugin/plugin.json:A bare directory string is not valid for these fields.
Fix
Either omit both fields — Claude Code auto-discovers agents from
agents/andskills from
skills/— or list explicit file paths as an array, e.g.:Simplest fix is to delete both lines; the directories already exist and are
picked up automatically.
Environment
claude plugin install claude-code-agents@undeadlist-claude-code-agents --scope user