claude-code - 💡(How to fix) Fix Support branch parameter in marketplace source configuration [1 comments, 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#48767Fetched 2026-04-16 06:51:32
View on GitHub
Comments
1
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×2closed ×1commented ×1

Fix Action

Fix / Workaround

Current Workaround

Code Example

"maor-skills-marketplace": {
  "source": { "source": "git", "url": "https://github.com/org/marketplace.git" },
  "autoUpdate": true
}

---

"maor-skills-marketplace": {
  "source": { "source": "git", "url": "https://github.com/org/marketplace.git", "branch": "main" },
  "autoUpdate": true
},
"maor-skills-marketplace-dev": {
  "source": { "source": "git", "url": "https://github.com/org/marketplace.git", "branch": "dev" },
  "autoUpdate": true
}
RAW_BUFFERClick to expand / collapse

Feature Request

Problem

When developing plugins/skills for a marketplace, there's no way to test changes without affecting the production marketplace. The current extraKnownMarketplaces config only supports a git URL with no branch selection:

"maor-skills-marketplace": {
  "source": { "source": "git", "url": "https://github.com/org/marketplace.git" },
  "autoUpdate": true
}

To achieve dev/prod separation, we currently need to duplicate the entire repo — one for dev, one for prod — and manage two separate marketplace registrations pointing to two different GitHub repos. This means duplicate repos, manual syncing, path mismatches in SKILL.md files, and a cumbersome promotion process.

Proposed Solution

Add an optional branch (or ref) parameter to the marketplace source configuration:

"maor-skills-marketplace": {
  "source": { "source": "git", "url": "https://github.com/org/marketplace.git", "branch": "main" },
  "autoUpdate": true
},
"maor-skills-marketplace-dev": {
  "source": { "source": "git", "url": "https://github.com/org/marketplace.git", "branch": "dev" },
  "autoUpdate": true
}

Benefits

  • Same repo, different branches — no need to duplicate repos
  • Standard git workflow — develop on dev branch, promote to main via merge/PR
  • No path mismatches — SKILL.md files stay identical between branches
  • Per-project plugin override already works — project-level .claude/settings.json can enable plugin@marketplace-dev in dev directories and plugin@marketplace in prod directories
  • Clean two-terminal workflow — dev terminal uses dev branch plugins, prod terminal uses main branch plugins, no interference

Current Workaround

We maintain two separate GitHub repos (marketplace and marketplace-dev), register both in settings, and use git push prod main to promote. SKILL.md files that reference local paths need sed transformations during promotion. This works but adds significant overhead for plugin developers.

Use Case

Anyone building and iterating on plugins/skills needs a way to test changes without breaking their (or their team's) working environment. This is especially important for complex plugins like multi-agent systems where changes to agent instructions need thorough testing before release.

extent analysis

TL;DR

Add an optional branch parameter to the marketplace source configuration to enable testing changes without affecting the production marketplace.

Guidance

  • Consider adding a branch parameter to the extraKnownMarketplaces config to specify a development branch, allowing for separate testing and production environments.
  • Evaluate the proposed solution of using the same repository with different branches (main for production and dev for development) to simplify the workflow and reduce overhead.
  • Review the current workaround of maintaining two separate GitHub repositories and assess whether the proposed solution addresses the existing pain points.
  • Test the updated configuration with a sample plugin to verify that it works as expected and does not introduce any new issues.

Example

"maor-skills-marketplace-dev": {
  "source": { "source": "git", "url": "https://github.com/org/marketplace.git", "branch": "dev" },
  "autoUpdate": true
}

Notes

The proposed solution assumes that the underlying system supports the branch parameter and can handle different branches correctly. Additionally, the solution may require updates to the plugin development workflow and testing processes.

Recommendation

Apply the proposed workaround by adding the branch parameter to the marketplace source configuration, as it provides a clear and straightforward solution to the problem and allows for a more streamlined development and testing process.

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 Support branch parameter in marketplace source configuration [1 comments, 1 participants]