Claude Code中英文系列教程33:用魔法打败魔法,利用官方Skill创建Skill

又没有协助生成Skill的Skill。

答案是:有!

Anthropic官方自己就开源了一个Skills仓库。

<https://github.com/anthropics/skills\>

仓库的Skills文件夹里,就是Claude官方,自己做的Skills,里面是一些关于创意与设计、开发与技术、企业与沟通以及文档的skills示例

spec目录 是 Agent Skills 规范

template 里面是技能模板

skills大概功能介绍如下:

![1.jpg](https://p0-xtjj-private.juejin.cn/tos-cn-i-73owjymdk6/0af6e66c2ef44e9a800bf355e3cd1c13\~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:5o6Y6YeR5oqA5pyv56S-5Yy6IEAgQXdlc29tZUFJVG9vbHM=:q75.awebp?policy=eyJ2bSI6MywidWlkIjoiMTE2OTUzNjEwMjk2NzE0NCJ9\&rk3s=e9ecf3d6\&x-orig-authkey=f32326d3454f2ac7e96d3d06cdbb035152127018\&x-orig-expires=1771066580\&x-orig-sign=ISaLdD10NhGhu65J3R9dcph3e1o%3D)

里面能生成Skills的Skill,就是那个skill-creator。

安装这个Skill也特别简单。

就是把Skills文件夹,直接拖到你的本地目录里。

地址如下:

Claude Code:~/.claude/skills

OpenCode:~/.config/opencode/skill

或插件市场方式安装

可以在 Claude Code 中运行下面命令将仓库注册为 插件市场,然后再安装skills

/plugin marketplace add anthropics/skills

然后可以输入/plugin 安装 document-skills 或 example-skills,重启下终端,运行/skills,可以看到安装的skills

一般会安装到\~/.claude/skills 用户目录,如果是项目级的,放在.claude/skills

skills文件大致内容

```bash


name: my-skill-name

description: A clear description of what this skill does and when to use it


My Skill Name

Add your instructions here that Claude will follow when this skill is active

Examples

  • Example usage 1

  • Example usage 2

Guidelines

  • Guideline 1

  • Guideline 2

```

另外claude code官方仓库里面也有一些插件 <https://github.com/anthropics/claude-code\> 具体在plugins 目录下

有如下一些重要插件:

1,agent-sdk-dev Claude Agent SDK 开发套件

2,code-review 代码审查,有5个并行Agents

3,commit-commands 用于提交、推送和创建拉取请求

4,feature-dev 开发工作流程

5,frontend-design 前端设计

6,plugin-dev 插件开发

7,pr-review-toolkit PR 审查

插件结构:

```bash

plugin-name/

├── .claude-plugin/

│ └── plugin.json # Plugin metadata

├── commands/ # Slash commands (optional)

├── agents/ # Specialized agents (optional)

├── skills/ # Agent Skills (optional)

├── hooks/ # Event handlers (optional)

├── .mcp.json # External tool configuration (optional)

└── README.md # Plugin documentation

```

上面2个仓库中有一个共同的frontend-design,一个通过插件的方式提供,内容差不多

相关推荐
github.com/starRTC4 小时前
Claude Code中英文系列教程31:使用 MCP 里面的资源
ai编程
丿BAIKAL巛4 小时前
KimiCode 使用教程:从开通会员到本地高效编码
ai编程
小马过河R5 小时前
Skill三件套:构建可进化技能仓库的开源工具链
人工智能·开源·ai编程·vibe coding·skills·ai辅助编码
谭光志5 小时前
OpenClaw 安装与运行教程
前端·后端·ai编程
namelessmyth6 小时前
聚合AI大模型API平台-横向评测对比
人工智能·语言模型·chatgpt·ai编程
threerocks6 小时前
AI 时代掌握 Markdown,是最基础也最必要的技能 (小红书长文也可以用哦)
人工智能·ai编程
github.com/starRTC6 小时前
规范驱动开发2:spec kit入门与使用
ai编程
三点水-here6 小时前
03 - KV Cache与批处理:大模型推理的内存管理核心技术
服务器·人工智能·ai编程
黑巧克力可减脂6 小时前
工欲善其事:从先秦工匠到AI辅助编程的智慧传承
人工智能·语言模型·ai编程