claude-code - 💡(How to fix) Fix [FEATURE] env var that can resolve to marketplace location [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#52114Fetched 2026-04-23 07:36:16
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Right now the CLAUDE_PLUGIN_ROOT resolves to the cached version of a plugin: ~/.claude/plugins/cache/<marketplace>/<plugin_name>/<version>/

this works great but also causes an issue with a marketplace that has shared files and scripts that are reused across plugins. Such as a metrics logging script or json or html template file.

Proposed Solution

I'd like to have an env var: CLAUDE_PLUGIN_MARKETPLACE_DIR that evaluates to the marketplace location:

~/.claude/plugins/marketplaces/<marketplace>

this would allow us to use hooks and scripts from the SKILL.md and point it to a location in the marketplace with the shared code and scripts. 

Alternative Solutions

No response

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

This would be used for all marketplace plugins that I am building out.

Additional Context

No response

extent analysis

TL;DR

Introduce a new environment variable CLAUDE_PLUGIN_MARKETPLACE_DIR to point to the marketplace location, allowing shared files and scripts to be accessed across plugins.

Guidance

  • Define the CLAUDE_PLUGIN_MARKETPLACE_DIR environment variable to point to the marketplace directory ~/.claude/plugins/marketplaces/<marketplace>.
  • Update the plugin configuration to use the new environment variable for shared files and scripts.
  • Verify that the CLAUDE_PLUGIN_MARKETPLACE_DIR variable is correctly set and accessible within the plugin.
  • Test the updated plugin configuration to ensure shared files and scripts are correctly loaded from the marketplace directory.

Example

No code snippet is provided as the issue does not contain sufficient technical details.

Notes

The introduction of the new environment variable assumes that the marketplace directory structure is consistent across all marketplaces and plugins.

Recommendation

Apply workaround: Introduce the CLAUDE_PLUGIN_MARKETPLACE_DIR environment variable to allow access to shared files and scripts across plugins, as this is a critical blocking issue.

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 [FEATURE] env var that can resolve to marketplace location [1 participants]