Claude Code 'plugin marketplace add' fails: Failed to clone marketplace repository
When running
claude plugin marketplace add anthropics/skillswith Claude Code 2.0.21 on Linux (also reproduced on 2.0.22 on macOS M1), the command fails withError: Failed to clone marketplace repository: Cloning into '/home/<username>/.claude/plugins...even though network connectivity is fine and a manual git clone succeeds. How can I install the anthropics/skills marketplace when the CLI's internal clone fails?Originally asked on GitHub: https://github.com/anthropics/skills/issues/14
4 answers
Still open as of the last comment (2025-10-21); no fix was posted in the thread. The exact cause was not confirmed, though one commenter suspected a git clone permission error inside the CLI.
The workaround reported by the issue author and confirmed by a commenter is to clone the repository manually into the expected directory, then re-run the CLI command:
bashcd ~/.claude/plugins/marketplaces/ git clone https://github.com/anthropics/skills.git anthropics-skills claude plugin marketplace add anthropics/skillsThe manual clone succeeds, and the subsequent
claude plugin marketplace addregisters the marketplace correctly. This was confirmed on Linux with Claude Code 2.0.21 and Git 2.25.1, and on macOS M1 Air with Claude Code 2.0.22 and zsh.Did this work for you?What a GitHub user tried on GitHub (Didn't work)
Ran
claude plugin marketplace add anthropics/skillsdirectly on Claude Code 2.0.21 (Linux, Git 2.25.1). It failed withError: Failed to clone marketplace repository: Cloning into '/home/<username>/.claude/plugins>.Source: https://github.com/anthropics/skills/issues/14 (opens external site)
Did this work for you?What @freakynit tried on GitHub (Worked)
Confirmed on macOS M1 Air (Claude Code 2.0.22, zsh) that the manual-clone workaround from the issue works: clone into
~/.claude/plugins/marketplaces/asanthropics-skills, then re-runclaude plugin marketplace add anthropics/skills.Source: https://github.com/anthropics/skills/issues/14#issuecomment-3417830765 (opens external site)
Did this work for you?What @weipengzou tried on GitHub (Outcome unclear)
Suggested the same manual-clone sequence, attributing the failure to a git clone permission error.
Source: https://github.com/anthropics/skills/issues/14#issuecomment-3427091998 (opens external site)
Did this work for you?
Related questions
- All Claude skills disappeared and uploads fail with "not found" / network error?
- Is anthropics/skills a public skills directory or just reference examples?
- Claude docx/ooxml skill makes Word files unreadable — how to fix?
- Can I fork, copy, or modify skills from Anthropic's anthropics/skills repo?
- Skills API with Opus 4.5 fails: 'Extra inputs are not permitted'