Skill source directory missing SKILL.md; Claude Code skill installation fails
Quick fix
If installation reports missing SKILL.md, check the repository structure and confirm SKILL.md is in the resolved skill directory.
Symptom
Section titled “Symptom”Skill 源目录缺少 SKILL.md,拒绝同步以避免覆盖目标目录: /home/fengyu/.cc-switch/skills/ast-grepSkill source directory missing SKILL.md; refusing to sync to avoid overwriting the target directory: /home/fengyu/.cc-switch/skills/ast-grep
These issues all involve failures installing through Skills management or skills.sh, but the triggers differ. In #4141, the same-named directory in the repository is a Claude Code plugin package, and the actual SKILL.md is deeper in a subdirectory. In #6365, skillId differs from the directory containing SKILL.md, and SKILL.md is not at the repository root, so the installer cannot resolve the source directory. #7013 reports that the archive has more than 10000 entries; a comment says this was fixed in PR #7489. #2078 does not provide readable error text or a specific cause.
Check the skill repository’s directory structure and confirm the actual skill directory contains SKILL.md. If SKILL.md is in a nested directory, confirm the installer can resolve that directory as the target skill.
If you encounter an error that the archive has more than 10000 entries, use a version containing the fix. The issue comment says this was fixed in PR #7489, but does not provide a fix version number.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 4 real issues
(No FAQ yet)
Related problems
Section titled “Related problems”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.