Claude code安装&使用Plugin与SKILL

内容分享5小时前发布
0 1 0
全能 AI 聚合平台 免费

一站式接入主流 AI 大模型,支持对话 · 生图 · 生视频,即开即用

ChatGPT Claude Gemini Grok DeepSeek 通义千问 Ollama
AI对话 AI生图 AI视频
免费使用 →

Plugin和SKILL你少不了的,不用纠结这俩的区别,粗暴地理解为一辆车和一个车队也行。开整!

打开Claude code,安装官方市场,输入:

/plugin marketplace add anthropics/skills

Claude code安装&使用Plugin与SKILL

然后就可以在里面找了,输入命令:

/plugins

Claude code安装&使用Plugin与SKILL

你也可以搜:

Claude code安装&使用Plugin与SKILL

安装完你需要的,重启一下即可

/reload-plugins

这是官方的,你也可以装一些第三方的,例如skills.sh,它的find-skills几乎是必装了,不过目前官方应该是没有了,反正我是没找到:

Claude code安装&使用Plugin与SKILL

那就手动安装吧,在终端执行(不是在Claude code里):

npx skills add https://github.com/vercel-labs/skills --skill find-skills --agent claude-code -g -y

Claude code安装&使用Plugin与SKILL

重启Claude code,看一下是否安装成功

/skills

Claude code安装&使用Plugin与SKILL

或者直接问:

Claude code安装&使用Plugin与SKILL

然后就能愉快的让Claude code帮你找了:

Claude code安装&使用Plugin与SKILL

或者你自己去网站找,也很方便:

Claude code安装&使用Plugin与SKILL

再或者还是用终端:

npx skills find "关键字"

Claude code安装&使用Plugin与SKILL

安装说简单吧,也有坑。一搜资料,甚至官网都是:

npx skills add https://github.com/github/awesome-copilot --skill java-springboot
# or
npx skills add github/awesome-copilot --skill java-springboot

然后选Claude code:

Claude code安装&使用Plugin与SKILL

再确定是安装在工程目录还是全局目录,然后就安装完毕了,但这样做是有问题的。

SKILL.md安装在了~/.agents/skills目录,Claude code只认~/.claude/skills,要么你手动将其复制到~/.claude/skills/目录。

要么安装的时候使用如下命令:

npx skills add github/awesome-copilot --skill java-springboot -g -a claude-code
# or
npx skills add github/awesome-copilot --skill java-springboot --agent claude-code -g -y

这俩命令本质上是一样的:

  • -a就是-agent,指定Claude code,这样SKILL.md就进~/.claude/skills/目录了。
  • -g代表全局模式,如果去掉,就只能当前工程下用。
  • -y是自动确认,不用交互,一路替你yes。

Claude code安装&使用Plugin与SKILL

此时重启Claude code就能看到新装的SKILL啦:

Claude code安装&使用Plugin与SKILL

使用的话,你可以直接对话,Claude code会自动适配SKILL,或者你想指定某个SKILL,就可以:

/<skill名> 你的需求
# example
/java-springboot 分析一下OrderController
© 版权声明

相关文章

1 条评论

  • 头像
    -Yyyyyyyj 投稿者

    [db:评论]

    无记录
    回复