fix(plugin): point manifest agents at .md files, not a directory#40
Merged
CodeWithJuber merged 1 commit intoJul 8, 2026
Merged
Conversation
Installing the plugin failed with `Validation errors: agents: Invalid input`. The Claude Code plugin manifest schema requires each `agents` entry to be a path to a markdown agent file (pattern `^\./.*\.md$`); `skills` may be a directory but `agents` may not. The manifest pointed `agents` at the `./global/crew` directory, so validation rejected it. List the four crew agents explicitly as `./global/crew/*.md` file paths. Update the channels test, which had pinned the invalid directory value, to assert the array form and that each referenced agent file exists. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fc2MvWJbQ1cyNQ76ymv4hs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Installing the plugin in Claude Code failed with:
Root cause: the Claude Code plugin manifest schema requires each
agentsentry to be a path to a markdown agent file (pattern^\./.*\.md$). Theskillsfield may point at a directory, butagentsmay not. Our manifest had"agents": "./global/crew"(a directory), so schema validation rejected it.skills: "./global/tools"was accepted, which is why onlyagentswas flagged.Fix: list the four crew agents explicitly as
./global/crew/*.mdfile paths:The
test/channels.test.js"plugin channel points at global/" test had pinned the invalid directory value (assert.equal(plugin.agents, "./global/crew")) — i.e. it was locking the bug in. Updated it to assert the array form, that every entry matches the schema's./global/crew/*.mdpattern, and that each referenced file exists on disk.Checklist
npm testpasses — 439 pass / 0 fail / 2 skipnpm run checkpasses (Biome) — clean on the touched JSON + testfix:)CHANGELOG.mdupdated under## [Unreleased]— n/a, packaging bugfix; can fold into the next release notesnpm run typecheckpassesRisk & rollback
agentspath matches the schema regex^\./.*\.md$and resolves to a real file;skills(directory) is unchanged and still schema-valid.Generated by Claude Code