从构建 Claude Code 中学到的经验:我们如何使用 Skills

Skills have become one of the most used extension points in Claude Code. They’re flexible, easy to make, and simple to distribute.

Skills 已成为 Claude Code 中最常用的扩展点之一。它们灵活、易于制作,并且易于分发。

But this flexibility also makes it hard to know what works best. What type of skills are worth making? What's the secret to writing a good skill? When do you share them with others?

但是,这种灵活性也使得很难知道什么最有效。什么类型的技能值得制作?编写好技能的秘诀是什么?何时与他人分享它们?

We've been using skills in Claude Code extensively at Anthropic with hundreds of them in active use. These are the lessons we've learned about using skills to accelerate our development.

我们在 Anthropic 广泛使用 Claude Code 中的 skills,有数百个在使用中。这些是我们学到的关于使用 skills 来加速开发的经验教训。

What are Skills?

什么是 Skills?

If you’re new to skills, I’d recommend reading our docs or watching our newest course on new Skilljar on Agent Skills, this post will assume you already have some familiarity with skills.

如果你对技能是新手,我推荐阅读我们的文档或观看我们在Skilljar 上的 Agent Skills 新课程,本文假设你已经对技能有些熟悉。

A common misconception we hear about skills is that they are “just markdown files”, but the most interesting part of skills is that they’re not just text files. They’re folders that can include scripts, assets, data, etc. that the agent can discover, explore and manipulate.

我们听到的关于技能的一个常见误解是,它们是“just markdown files”,但技能最有趣的部分是它们不仅仅是文本文件。它们是文件夹,可以包含代理可以发现、探索和操作的 scripts、assets、data 等。

In Claude Code, skills also have a wide variety of configuration options including registering dynamic hooks.

在 Claude Code 中,skills 还具有 各种各样的配置选项,包括注册 dynamic hooks。

We’ve found that some of the most interesting skills in Claude Code use these configuration options and folder structure creatively.

我们发现,Claude Code 中一些最有趣的 skills 创造性地使用了这些配置选项和文件夹结构。

Types of Skills

技能类型

After cataloging all of our skills, we noticed they cluster into a few recurring categories. The best skills fit cleanly into one; the more confusing ones straddle several. This isn't a definitive list, but it is a good way to think about if you're missing any inside of your org.

在编目我们所有的 skills 后,我们注意到它们聚类到几个重复出现...

开通本站会员,查看完整译文。

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.0. UTC+08:00, 2026-03-24 03:24
浙ICP备14020137号-1 $bản đồ khách truy cập$