Skip to content

skills installed to the wrong path - cc-switch

Quick fix

Older cc-switch installs skills into ~/.claude/skills/skills, which Claude Code ignores. Upgrade, or move the contents up to ~/.claude/skills/.

Error output
安装完后发现 claude code 不识别,后来发现安装在了 ~/.claude/skills/skills 目录下,手动向上移了一层目录到 ~/.claude/skills 下正常了。
English translation

After installing, Claude Code did not recognise it. It turned out to be installed under ~/.claude/skills/skills; moving it up one level to ~/.claude/skills fixed it.

When installing skills from a skill repository, cc-switch parses the repository path and builds a target directory. Older versions treated the `skills` in the repository path as a target level too, installing codex/gemini skills into `~/.claude/skills/skills/` rather than the `~/.claude/skills/` Claude Code actually scans — hence not being recognised after install. #265 and #267 from the same period also report Claude/Gemini skill installs failing, which maintainers confirmed as fixed in the next version.

Moving the contents of `~/.claude/skills/skills/` up by hand does let Claude Code activate the skill temporarily, but cc-switch cannot track the moved location. For a Gemini CLI skill symlink, `~/.gemini/skills/` is the correct user-level skills directory for the Gemini CLI cc-switch manages, and should not be moved to the Antigravity `~/.gemini/config/skills/`.

  1. Upgrade to a fixed version. Maintainers confirmed in #382, #265, and #267 that "the new version fixes this" or "the next minor version will fix it" — reinstall the affected skills after upgrading.

  2. Stopgap (only if you cannot upgrade): move the contents of `~/.claude/skills/skills/` into `~/.claude/skills/`. After a manual move, cc-switch may no longer recognise the skill, so reinstall it once you have upgraded.

  3. If you use the Gemini CLI, keep the symlink at `~/.gemini/skills/`. Do not move it to `~/.gemini/config/skills/`, because the Gemini CLI does not scan that path and Antigravity is not an app cc-switch manages.

ToolClaude Code / Codex / Gemini CLI
Version3.8.2(受影响报告版本)
PlatformsWindowsmacOS
The skill activates after moving it by hand, but cc-switch no longer recognises it. What now?
A side effect of the manual move. Upgrade to a fixed version and reinstall through cc-switch, rather than maintaining `~/.claude/skills/` by hand.
Why is the Gemini skill symlink at `~/.gemini/skills/` rather than `~/.gemini/config/skills/`?
cc-switch manages the Gemini CLI, whose user-level Skills directory is `~/.gemini/skills/`, with `~/.agents/skills/` also supported. `~/.gemini/config/skills/` is an Antigravity directory, and Antigravity is not managed by cc-switch.
Installing codex/gemini skills reports an install failure outright. What now?
Those reports relate to the same batch of path and packaging problems, which maintainers confirmed fixed in a later version. Upgrade and retry.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.