Commit ed33e3e
committed
fix(marketplace): use relative sources to avoid SSH-only clones
Both plugin entries in .claude-plugin/marketplace.json used absolute
GitHub sources (github / git-subdir), which trigger a second git clone
when a user runs `/plugin install`. That clone defaults to the SSH
transport and fails on machines without SSH keys or without
github.com in known_hosts:
git@github.com: Permission denied (publickey).
Host key verification failed.
The failure is common in corporate environments (HTTPS-only proxies)
and GitHub Codespaces / devcontainers (no SSH host keys preloaded),
and Claude Code surfaces it silently — the skill shows a red circle
with no actionable error. The marketplace itself clones fine because
Claude Code's marketplace loader falls back to HTTPS, but the plugin
install path does not.
Since both plugins live inside this same repo that hosts
marketplace.json, switch to relative sources so Claude Code reuses the
already-cloned marketplace checkout and never performs a second clone:
- `nx` → `"source": "./"` (plugin manifest at .claude-plugin/plugin.json)
- `polygraph` → `"source": "./generated/polygraph"` (manifest at
generated/polygraph/.claude-plugin/plugin.json)
This matches the pattern already used by .cursor-plugin/marketplace.json
in this repo (`"source": "."`) and by vercel-labs/agent-browser, both of
which install cleanly in HTTPS-only and devcontainer environments.
Verified locally with:
claude plugin validate .claude-plugin/marketplace.json # ✔ passed
claude plugin marketplace add <local-clone>
claude plugin install nx@nx-claude-plugins # ✔ installed
claude plugin install polygraph@nx-claude-plugins # ✔ installed
After install, all 7 nx skills (nx-workspace, nx-generate, nx-run-tasks,
nx-plugins, nx-import, monitor-ci, link-workspace-packages) and the
polygraph subagents/skills load as expected.
Fixes #1061 parent 3bad380 commit ed33e3e
1 file changed
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 19 | + | |
27 | 20 | | |
28 | 21 | | |
29 | 22 | | |
0 commit comments