Duplicative paths in marketplace.json? #100
-
|
Hi! I'm still learning and playing around with Claude Code plugins, and came across your repository as a reference. Something I'm not fully understanding is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey there! Great question - this definitely looks confusing at first glance. The short answer: No, they don't concatenate. The paths work differently than you might expect. How It Actually Works
So when Claude Code processes this: {
"pluginRoot": "./plugins",
"source": "./plugins/productivity/000-jeremy-content-consistency-validator"
}It uses the It does not concatenate them into Why Have Both?Good question! The
You're right that it looks redundant since every For Your Own MarketplaceIf you're building your own plugin marketplace, you can safely use:
Hope this clears it up! Let me know if you have other questions - happy to help as you're building your own plugins. — Jeremy |
Beta Was this translation helpful? Give feedback.
Hey there! Great question - this definitely looks confusing at first glance.
The short answer: No, they don't concatenate. The paths work differently than you might expect.
How It Actually Works
pluginRoot: This is metadata about the marketplace structure. It tells tools "hey, plugins generally live in the./pluginsdirectory." Think of it as documentation.source: This is the absolute path from the repository root to the specific plugin. It's not relative topluginRoot.So when Claude Code processes this:
{ "pluginRoot": "./plugins", "source": "./plugins/productivity/000-jeremy-content-consistency-validator" }It uses the
sourcepath directly:./plugins/productivity/000-jeremy-…