claude-code - 💡(How to fix) Fix [DOCS] Plugin docs missing `plugin.json` dependency declarations and auto-install behavior [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48864Fetched 2026-04-16 06:48:51
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Code Example

> {
>   "name": "plugin-name",
>   "version": "1.2.0",
>   "description": "Brief plugin description",
>   "author": {
>     "name": "Author Name",
>     "email": "[email protected]",
>     "url": "https://github.com/author"
>   },
>   "homepage": "https://docs.example.com/plugin",
>   "repository": "https://github.com/author/plugin",
>   "license": "MIT",
>   "keywords": ["keyword1", "keyword2"],
>   "skills": "./custom/skills/",
>   "commands": ["./custom/commands/special.md"],
>   "agents": "./custom/agents/",
>   "hooks": "./config/hooks.json",
>   "mcpServers": "./mcp-config.json",
>   "outputStyles": "./styles/",
>   "lspServers": "./.lsp.json",
>   "monitors": "./monitors.json"
> }
>

---

> /plugin install plugin-name@marketplace-name
>
RAW_BUFFERClick to expand / collapse

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/plugins-reference

Section/Topic

Plugin manifest schema (.claude-plugin/plugin.json) and plugin installation behavior for dependency plugins

Current Documentation

The manifest reference currently says:

The .claude-plugin/plugin.json file defines your plugin's metadata and configuration. This section documents all supported fields and options.

{
  "name": "plugin-name",
  "version": "1.2.0",
  "description": "Brief plugin description",
  "author": {
    "name": "Author Name",
    "email": "[email protected]",
    "url": "https://github.com/author"
  },
  "homepage": "https://docs.example.com/plugin",
  "repository": "https://github.com/author/plugin",
  "license": "MIT",
  "keywords": ["keyword1", "keyword2"],
  "skills": "./custom/skills/",
  "commands": ["./custom/commands/special.md"],
  "agents": "./custom/agents/",
  "hooks": "./config/hooks.json",
  "mcpServers": "./mcp-config.json",
  "outputStyles": "./styles/",
  "lspServers": "./.lsp.json",
  "monitors": "./monitors.json"
}

The install guide currently says:

Once you've added marketplaces, you can install plugins directly (installs to user scope by default):

/plugin install plugin-name@marketplace-name

To choose a different installation scope, use the interactive UI...

The marketplace guide also says:

Each plugin entry in the plugins array describes a plugin and where to find it. You can include any field from the plugin manifest schema (like description, version, author, commands, hooks, etc.), plus these marketplace-specific fields: source, category, tags, and strict.

None of these pages document plugin dependency declarations in plugin.json, what happens when marketplace entries omit them, or that /plugin install auto-installs and reports dependency plugins.

What's Wrong or Missing?

Claude Code v2.1.110 fixed plugin installation so dependencies declared in plugin.json are honored even when the marketplace entry omits them, and /plugin install now lists auto-installed dependencies.

That behavior is currently undocumented:

  1. The plugin.json schema does not document a dependency field for plugin-to-plugin dependencies.
  2. The install docs do not explain that installing one plugin may automatically install dependency plugins.
  3. The install docs do not explain that /plugin install now lists those auto-installed dependencies.

Without this, plugin authors do not know where to declare dependencies, and users/admins cannot tell from the docs that plugin installs may pull in additional plugins automatically.

Suggested Improvement

Update the plugin documentation to describe plugin dependency support in one place and cross-link it from install docs.

Suggested changes:

  1. In plugins-reference, add the dependencies field to the plugin.json schema with its expected format and precedence rules when both plugin.json and marketplace metadata are involved.
  2. In discover-plugins, add a short note under Install plugins explaining that /plugin install may auto-install dependency plugins declared by the selected plugin.
  3. Document that current Claude Code versions list the auto-installed dependencies during installation.
  4. In plugin-marketplaces, clarify how marketplace entries interact with dependency declarations coming from the plugin manifest when the marketplace entry does not repeat them.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageLine(s)Context
https://code.claude.com/docs/en/plugins-reference287-315plugin.json schema lists supported fields but does not document plugin dependencies
https://code.claude.com/docs/en/discover-plugins256-272/plugin install docs explain basic install flow and scopes only
https://code.claude.com/docs/en/plugin-marketplaces190-225Marketplace entry docs refer back to manifest fields but do not cover dependency declarations

Total scope: 3 pages affected

Source: Changelog v2.1.110

Exact changelog entry:

Fixed plugin install not honoring dependencies declared in plugin.json when the marketplace entry omits them; /plugin install now lists auto-installed dependencies

extent analysis

TL;DR

Update the plugin documentation to include information about plugin dependency support, including the dependencies field in the plugin.json schema and the behavior of /plugin install with auto-installed dependencies.

Guidance

  • Add a dependencies field to the plugin.json schema documentation in plugins-reference to explain how plugin authors can declare dependencies.
  • Update the Install plugins section in discover-plugins to note that /plugin install may auto-install dependency plugins and list them during installation.
  • Clarify in plugin-marketplaces how marketplace entries interact with dependency declarations from the plugin manifest when not repeated in the marketplace entry.
  • Cross-link the updated documentation to ensure consistency and ease of discovery for plugin authors and users.

Example

No code snippet is provided as the issue is related to documentation updates rather than code changes.

Notes

The suggested improvements aim to address the lack of documentation on plugin dependency support, which affects plugin authors' understanding of how to declare dependencies and users' ability to anticipate auto-installed dependencies during plugin installation.

Recommendation

Apply the suggested documentation updates to improve the clarity and completeness of the plugin documentation, ensuring that plugin authors and users can effectively utilize and understand plugin dependency support.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [DOCS] Plugin docs missing `plugin.json` dependency declarations and auto-install behavior [1 participants]