feat(harness): repo-root marketplace alias so GitHub-source install resolves - #55
Merged
Merged
Conversation
…esolves
Claude Code's "source": "github" marketplace resolution looks for
.claude-plugin/marketplace.json at the repo root, not a subdirectory. This
repo's plugin root is .claude/, so the bare GitHub-source snippet in
GETTING_STARTED.md never actually resolved.
Fix: add a thin .claude-plugin/marketplace.json at the repo root whose single
plugin entry points back at the real payload via a relative path
("source": "./.claude") — same-repo relative sources are documented and
supported, resolved relative to the marketplace root. No submodule or
separate repo needed. Deliberately omits version/author so it never needs to
be kept in sync with .claude/.claude-plugin/marketplace.json — it just points
at that directory's payload and tracks the git commit SHA.
Updates GETTING_STARTED.md and .claude/.claude-plugin/README.md to promote
the GitHub-source method now that it works, keeping the local-clone method as
an alternative.
robercano
approved these changes
Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Claude Code's
"source": "github"marketplace resolution looks for.claude-plugin/marketplace.jsonat the repo root, not a subdirectory — but this repo's plugin root is.claude/, so the GitHub-source snippet documented inGETTING_STARTED.mdnever actually resolved. Consumers had to fall back to a local sibling clone.Fix
Add a thin
.claude-plugin/marketplace.jsonat the repo root with one plugin entry pointing back at the real payload via a relative path ("source": "./.claude") — same-repo relative sources are documented/supported, resolved relative to the marketplace root. No submodule, no separate repo. Deliberately omitsversion/authorso it never needs to stay in sync with.claude/.claude-plugin/marketplace.json(it just points at that directory and tracks the git commit SHA).Docs updated to promote the GitHub-source method now that it works (
GETTING_STARTED.md), with the two-manifest rationale explained in both.claude-plugin/README.md(new, root) and.claude/.claude-plugin/README.md(existing, updated).Test plan
node -e "JSON.parse(...)"on the new marketplace.json — validGATES_FILE=.claude/self/gates.json gate.sh lintpassesGATES_FILE=.claude/self/gates.json gate.sh testpasses