Skill tool resolves wrong base directory for third-party plugins (hardcoded 1.0.0)

Resolved 💬 3 comments Opened Mar 23, 2026 by claude89757 Closed Mar 26, 2026

Bug Description

When invoking a skill from a third-party plugin via the Skill tool, the injected Base directory path uses a hardcoded version 1.0.0 instead of reading the actual version from installed_plugins.json. This causes all file references within the skill to point to a non-existent directory.

Steps to Reproduce

  1. Install a third-party plugin with a version other than 1.0.0 (e.g., cc-context-skills v2.5.0)
  2. Run /reload-plugins to activate
  3. Invoke a skill from the plugin (e.g., /cc-trace)

Expected Behavior

The skill's Base directory should resolve to the actual installed version path:

Base directory for this skill: ~/.claude/plugins/cache/claude-code-context-skills/cc-context-skills/2.5.0/skills/cc-trace

Actual Behavior

The skill's Base directory resolves to a hardcoded 1.0.0 path that doesn't exist:

Base directory for this skill: ~/.claude/plugins/cache/claude-code-context-skills/cc-context-skills/1.0.0/skills/cc-trace

Evidence

installed_plugins.json correctly records the version:

"cc-context-skills@claude-code-context-skills": [
  {
    "scope": "project",
    "installPath": "~/.claude/plugins/cache/claude-code-context-skills/cc-context-skills/2.5.0",
    "version": "2.5.0",
    "projectPath": "/Users/.../wt-context-eng"
  }
]

Actual cache directory has no 1.0.0:

$ ls ~/.claude/plugins/cache/claude-code-context-skills/cc-context-skills/
2.1.0  2.2.0  2.4.0  2.5.0

plugin.json in the cached plugin also correctly says "version": "2.5.0".

Root Cause (suspected)

The Skill tool's path resolution logic appears to use a default/fallback version of 1.0.0 when constructing the base directory path for third-party plugins, rather than looking up the actual version from installed_plugins.json or the plugin's installPath.

Workaround

Create a symlink as a temporary fix:

ln -s 2.5.0 ~/.claude/plugins/cache/claude-code-context-skills/cc-context-skills/1.0.0

Environment

  • Claude Code: latest (2026-03-23)
  • OS: macOS (Darwin 25.3.0)
  • Plugin: cc-context-skills v2.5.0 from claude-code-context-skills marketplace

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗