claude-code - 💡(How to fix) Fix Plugin installer does not resolve symlinks when copying to cache, breaking plugins that use symlinked skill files

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…

Fix Action

Fix

Use cp -L or equivalent (rsync -aL) when copying plugin content to the cache directory. This ensures symlinks are followed and real file content lands in cache regardless of plugin structure.

Workaround

rsync -aL \
  ~/.claude/plugins/marketplaces/<plugin>/plugins/<plugin>/ \
  ~/.claude/plugins/cache/<plugin>/<plugin>/<version>/

Note: re-running /plugins install does not fix the issue — the broken symlinks are reproduced on each install.

Code Example

rsync -aL \
  ~/.claude/plugins/marketplaces/<plugin>/plugins/<plugin>/ \
  ~/.claude/plugins/cache/<plugin>/<plugin>/<version>/
RAW_BUFFERClick to expand / collapse

Bug

The Claude Code plugin installer copies plugin files to the cache directory without resolving symlinks. Plugins that use relative symlinks within their skill directory end up with dangling symlinks in the cache, making the skill fail to load.

Reproduction

Install the frontend-slides plugin (zarazhangrui/frontend-slides). Its plugins/frontend-slides/skills/frontend-slides/ directory contains relative symlinks pointing to files in the repo root (e.g. SKILL.md -> ../../../../SKILL.md). After installation the cache directory contains broken symlinks / empty dirs — no skill content loads.

Cache path: ~/.claude/plugins/cache/frontend-slides/frontend-slides/1.0.0/skills/frontend-slides/

Expected

Installer resolves symlinks on copy so the cache is self-contained with real files.

Fix

Use cp -L or equivalent (rsync -aL) when copying plugin content to the cache directory. This ensures symlinks are followed and real file content lands in cache regardless of plugin structure.

Workaround

rsync -aL \
  ~/.claude/plugins/marketplaces/<plugin>/plugins/<plugin>/ \
  ~/.claude/plugins/cache/<plugin>/<plugin>/<version>/

Note: re-running /plugins install does not fix the issue — the broken symlinks are reproduced on each install.

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