Skip to content

plugin install fails: manifest "agents"/"skills" must be an array, not a directory string #8

Description

@Gabriel-Graf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions