claude-code - 💡(How to fix) Fix [DOCS] Plugin docs missing dependency declaration and marketplace auto-resolution 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#51775Fetched 2026-04-22 07:53:11
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

The install and marketplace guides do not explain what happens when a required plugin dependency is missing, what the new "not installed" error means, or when Claude Code offers an install hint.

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.json manifest/schema docs and the plugin marketplace install flow for plugin dependencies

Current Documentation

The plugin installation guide currently describes marketplaces as a simple two-step flow:

A marketplace is a catalog of plugins that someone else has created and shared. Using a marketplace is a two-step process:

Add the marketplace This registers the catalog with Claude Code so you can browse what's available. No plugins are installed yet.

Install individual plugins Browse the catalog and install the plugins you want.

The plugin manifest reference currently shows this plugin.json schema:

{ "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 marketplace schema likewise says plugin entries can include manifest fields plus marketplace-specific fields, but only documents:

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.

The CLI docs for adding marketplaces currently say only:

claude plugin marketplace add <source> [options]

<source>: GitHub owner/repo shorthand, git URL, remote URL to a marketplace.json file, or local directory path.

What's Wrong or Missing?

Changelog v2.1.117 describes plugin dependency behavior that is not documented in the plugin docs:

Plugin dependency errors now say "not installed" with an install hint, and claude plugin marketplace add now auto-resolves missing dependencies from configured marketplaces.

The current docs do not explain plugin-to-plugin dependencies at all.

A. No documented way to declare plugin dependencies

The plugin.json reference does not document any dependency field or dependency semantics, so plugin authors cannot learn how to declare that one plugin requires another.

B. No documented user-facing dependency resolution behavior

The install and marketplace guides do not explain what happens when a required plugin dependency is missing, what the new "not installed" error means, or when Claude Code offers an install hint.

C. Marketplace add side effects are undocumented

discover-plugins currently says adding a marketplace only registers the catalog and installs nothing yet, but the v2.1.117 behavior implies claude plugin marketplace add can now resolve missing plugin dependencies from already-configured marketplaces. That dependency-resolution behavior is not described anywhere.

Suggested Improvement

Document plugin dependencies as a first-class part of the plugin system.

Suggested updates:

  1. In plugins-reference, add the dependency field(s) supported in plugin.json, including format, scope, and resolution rules.
  2. In discover-plugins, add a short section explaining missing-dependency errors, the new install hint wording, and whether dependency plugins are auto-installed or prompted.
  3. In plugin-marketplaces, document that claude plugin marketplace add can resolve missing dependencies from configured marketplaces, including what counts as a configured marketplace.
  4. Clarify the "No plugins are installed yet" wording so it matches current dependency auto-resolution behavior, or explicitly call out dependency-related exceptions.
  5. Add one end-to-end example showing a plugin that depends on another plugin and how Claude Code resolves it.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageLine(s)Context
https://code.claude.com/docs/en/plugins-reference291-315, 342-355plugin.json schema and field tables list manifest fields but do not document plugin dependency fields or dependency behavior
https://code.claude.com/docs/en/discover-plugins23-49, 256-375Marketplace/install guide says marketplace add just registers a catalog, then users install plugins separately; no dependency resolution or install-hint docs
https://code.claude.com/docs/en/plugin-marketplaces188-225, 818-828Marketplace entry schema and claude plugin marketplace add CLI docs omit plugin dependency fields and auto-resolution behavior
https://code.claude.com/docs/en/settings568-577extraKnownMarketplaces explains configured marketplaces for a repository, but does not connect that concept to plugin dependency resolution

Total scope: 4 pages affected

Source: Changelog v2.1.117

Exact changelog entry: Plugin dependency errors now say "not installed" with an install hint, and claude plugin marketplace add now auto-resolves missing dependencies from configured marketplaces

extent analysis

TL;DR

Update the plugin documentation to include information on declaring and resolving plugin dependencies.

Guidance

  • Add a dependency field to the plugin.json schema documentation, including format, scope, and resolution rules.
  • Update the marketplace and install guides to explain missing-dependency errors, install hints, and dependency plugin auto-installation or prompting.
  • Document the claude plugin marketplace add command's ability to resolve missing dependencies from configured marketplaces.
  • Provide an end-to-end example of a plugin that depends on another plugin and how Claude Code resolves it.

Example

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

Notes

The current documentation lacks information on plugin dependencies, making it difficult for users to understand the feature. The suggested updates aim to address this by adding relevant documentation to the affected pages.

Recommendation

Apply the suggested updates to the documentation, including adding dependency fields to the plugin.json schema, explaining missing-dependency errors and install hints, and documenting the claude plugin marketplace add command's dependency resolution behavior. This will improve the understanding and usability of the plugin system.

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 dependency declaration and marketplace auto-resolution behavior [1 participants]