Skip to content

ast-grep skill 无法安装 #4141

Closed

Description

@abcfy2

Self Checks / 自检

CC Switch Version / 版本号

3.16.2

Operating System / 操作系统

Linux

Related App / 涉及应用

Claude Code

Steps to Reproduce / 重现步骤

在 发现技能 --> skill.sh 中搜索 ast-grep/agent-skill 点击安装,会出现失败界面:

Image

错误信息:

Skill 源目录缺少 SKILL.md,拒绝同步以避免覆盖目标目录: /home/fengyu/.cc-switch/skills/ast-grep

但是按照官方文档的描述: https://github.com/ast-grep/agent-skill

npx skills add ast-grep/agent-skill

使用 npx skills 安装是没问题的,软链接也是 OK 的:

$ ll ~/.agents/skills/ast-grep/
drwxr-xr-x    - fengyu 13 6月  10:59  references
.rw-r--r-- 9.4k fengyu 13 6月  10:59  SKILL.md

希望可以修复

Expected Behavior / 期望行为

应该能正确安装 ast-grep/agent-skill

Actual Behavior / 实际行为

安装失败

Additional Context / 补充信息

No response

Activity

  1. makoMakoGo commented on Jun 13, 2026

    @makoMakoGo
    Collaborator

    已复现,问题:

    skill 的 install_name 是 ast-grep(报错路径 ~/.cc-switch/skills/ast-grep 反推)。而该仓库的实际结构(GitHub 仓库树实证):

      agent-skill/                 ← 仓库根(zip 解压剥掉顶层目录后即 root)
      ├── .claude-plugin/
      ├── README.md
      └── ast-grep/                ← 同名目录!是 Claude Code plugin 包,无 SKILL.md
          ├── .claude-plugin/plugin.json
          └── skills/
              └── ast-grep/        ← 真正的 skill,SKILL.md 在这
                  ├── SKILL.md
                  └── references/
    
  2. self-assigned this
    on Jun 13, 2026
  3. chudongvip commented on Sep 15, 2026

    @chudongvip
    Image

    Version 3.20.3 (3.20.3)
    skill 存放在 ~/.cc-switch/skills
    skill 同步方式为「软连接」

    这个版本安装 nextlevelbuilder/ui-ux-pro-max-skill 这个 skill 还是报错,我安装 hallmark 就不会,同样报错的还有一种情况:先安装 pbakaus/impeccable 然后再安装 pbakaus/impeccable/teach-impeccable 也会报累死的错误

  4. Novices666 commented on Sep 30, 2026

    @Novices666
    Image Version 3.20.3 (3.20.3) skill 存放在 ` ~/.cc-switch/skills` skill 同步方式为「软连接」

    这个版本安装 nextlevelbuilder/ui-ux-pro-max-skill 这个 skill 还是报错,我安装 hallmark 就不会,同样报错的还有一种情况:先安装 pbakaus/impeccable 然后再安装 pbakaus/impeccable/teach-impeccable 也会报累死的错误

    +1,当前使用最新版本,安装skills.sh的ui-ux-pro-max,还是会报错技能目录不存在:<目录名>请检查仓库地址和分支名称

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions