Community编程与开发github.com

技能创建器

创建新技能、修改和改进现有技能,并衡量技能性能。当用户想要从头创建技能、编辑或优化现有技能、运行评估以测试技能、通过方差分析基准测试技能性能,或优化技能描述以提高触发准确性时使用。

技能创建器 是什么?

这是一个专为AI代理(如Claude Code、Cursor、Codex等)设计的技能创建与优化工具。它引导用户完成从捕捉意图、访谈研究、编写SKILL.md、创建测试用例到运行评估和迭代改进的完整流程。该技能特别强调渐进式信息披露原则,支持多领域组织,并提供客观可验证的断言和定量基准测试。它兼容多种平台,能够自动管理技能版本、并行运行带技能和基线测试、捕获时序数据,并使用专门的查看器生成报告。主要优点在于其结构化的迭代方法,帮助用户高效地创建和优化AI代理技能,同时保持与不同技术水平用户的良好沟通。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bytedance/deer-flow/tree/main/skills/public/skill-creator

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

技能创建器 是做什么的?

一个用于创建新技能并迭代改进的技能。

在较高层面上,创建技能的过程如下:

  • 决定你想要技能做什么,以及大致如何做
  • 编写技能草稿
  • 创建几个测试提示词,并在使用该技能的情况下运行Claude
  • 帮助用户定性和定量评估结果
    • 在运行过程中,如果没有定量评估,则起草一些定量评估(如果有,你可以直接使用,或者如果觉得某些内容需要调整,也可以修改)。然后向用户解释这些评估(如果已存在,则解释现有的评估)
    • 使用 eval-viewer/generate_review.py 脚本向用户展示结果供其查看,同时让他们查看定量指标
  • 根据用户对结果的评估反馈(以及如果定量基准中暴露出任何明显缺陷)重写技能
  • 重复直到满意
  • 扩展测试集,在更大规模下再次尝试

使用此技能时,你的任务是弄清楚用户处于此过程的哪个阶段,然后介入并帮助他们推进这些阶段。例如,他们可能会说“我想为X创建一个技能”。你可以帮助缩小他们的意思,编写草稿,编写测试用例,确定他们想要如何评估,运行所有提示词,并重复循环。

另一方面,他们可能已经有了一份技能草稿。在这种情况下,你可以直接进入评估/迭代部分。

当然,你应始终保持灵活,如果用户说“我不需要运行大量评估,只需和我一起感受一下”,你也可以这样做。

然后在技能完成后(但同样,顺序是灵活的),你还可以运行技能描述改进器,我们有一个单独的脚本用于此,以优化技能的触发。

酷吗?酷。

与用户沟通

技能创建器可能被具有不同编程知识水平的人使用。如果你还没听说过(但你怎么可能听说过,这是最近才开始的),现在有一种趋势,Claude的强大功能正在激励水管工打开终端,父母和祖父母去谷歌搜索“如何安装npm”。另一方面,大多数用户可能是相当熟悉计算机的。

所以请注意上下文线索,以理解如何措辞你的沟通!在默认情况下,给你一些概念:

  • “评估”和“基准”是临界点,但还可以接受
  • 对于“JSON”和“断言”,你需要看到用户有认真了解这些概念的线索后才能使用,而无需解释

如果你不确定,可以简要解释术语,如果不确定用户是否会理解,请随意用简短的定义澄清术语。


创建技能

捕捉意图

首先理解用户的意图。当前对话可能已经包含用户想要捕捉的工作流程(例如,他们说“把这个变成技能”)。如果是这样,首先从对话历史中提取答案——使用的工具、步骤顺序、用户做出的更正、观察到的输入/输出格式。用户可能需要填补空白,并且应在继续下一步之前确认。

  1. 这个技能应该让Claude能够做什么?
  2. 这个技能应该在什么时候触发?(什么用户短语/上下文)
  3. 预期的输出格式是什么?
  4. 我们应该设置测试用例来验证技能是否正常工作吗?具有客观上可验证输出(文件转换、数据提取、代码生成、固定工作流程步骤)的技能受益于测试用例。具有主观输出(写作风格、艺术)的技能通常不需要它们。根据技能类型建议合适的默认设置,但让用户决定。

访谈和研究

主动询问关于边缘情况、输入/输出格式、示例文件、成功标准和依赖关系的问题。等到这部分确定后再编写测试提示词。

检查可用的MCP——如果对研究有用(搜索文档、查找类似技能、查找最佳实践),在可能的情况下通过子代理并行研究,否则内联进行。带着上下文来减少用户的负担。

编写SKILL.md

根据用户访谈,填写以下组件:

  • name:技能标识符
  • description:何时触发,做什么。这是主要的触发机制——包括技能做什么以及在什么具体情况下使用它。所有“何时使用”信息都放在这里,而不是正文中。注意:目前Claude倾向于“低触发”技能——即在有用时不使用它们。为了解决这个问题,请让技能描述稍微“有推动力”。例如,不要写“如何构建一个简单的快速仪表板来显示内部Anthropic数据。”,而是写“如何构建一个简单的快速仪表板来显示内部Anthropic数据。确保每当用户提到仪表板、数据可视化、内部指标或希望显示任何类型的公司数据时使用此技能,即使他们没有明确要求‘仪表板’。”
  • compatibility:所需工具、依赖关系(可选,很少需要)
  • 技能的其余部分 :)

技能编写指南

技能结构

skill-name/
├── SKILL.md (必需)
│   ├── YAML 前置元数据(name和description必需)
│   └── Markdown 指令
└── 捆绑资源 (可选)
    ├── scripts/    - 用于确定性/重复性任务的可执行代码
    ├── references/ - 根据需要加载到上下文中的文档
    └── assets/     - 用于输出的文件 (模板、图标、字体)

渐进式信息披露

技能使用三级加载系统:

  1. 元数据(name + description)——始终在上下文中(约100个词)
  2. SKILL.md 正文——每当技能触发时在上下文中(理想情况下小于500行)
  3. 捆绑资源——按需加载(无限制,脚本可以在不加载的情况下执行)

这些词数只是近似值,如果需要,你可以自由地写得更长。

关键模式:

  • 保持SKILL.md在500行以下;如果你接近这个限制,添加额外层次的层次结构,并为使用该技能的模型提供清晰的下一步方向指示。
  • 在SKILL.md中清晰引用文件,并说明何时阅读它们
  • 对于大型参考文件(>300行),包含一个目录表

领域组织:当技能支持多个领域/框架时,按变体组织:

cloud-deploy/
├── SKILL.md (工作流程 + 选择)
└── references/
    ├── aws.md
    ├── gcp.md
    └── azure.md

Claude只读取相关的参考文件。

无意外原则

这不用多说,但技能不能包含恶意软件、漏洞利用代码或任何可能危及系统安全的内容。技能的内容不应在描述其意图时让用户感到意外。不要同意创建误导性技能或旨在促进未经授权访问、数据泄露或其他恶意活动的技能。像“角色扮演为XYZ”之类的内容是可以接受的。

编写模式

在指令中优先使用祈使语气。

定义输出格式——你可以这样写:

## 报告结构
始终使用此确切模板:
# [标题]
## 执行摘要
## 主要发现
## 建议

示例模式——包含示例很有用。你可以这样格式化它们(但如果示例中有“输入”和“输出”,你可能希望稍微偏离一下):

## 提交信息格式
**示例1:**
输入:使用JWT令牌添加用户身份验证
输出:feat(auth): 实现基于JWT的身份验证

写作风格

尽量向模型解释事物为何重要,而不是使用生硬的“必须”。使用心智理论,尽量使技能通用且不局限于特定示例。先编写草稿,然后以新的眼光审视并改进它。

测试用例

编写技能草稿后,提出2-3个真实的测试提示词——真实用户可能实际说的内容。与用户分享它们:[你不必使用确切的措辞]“这里有几个我想尝试的测试用例。它们看起来对吗,或者你想添加更多?”然后运行它们。

将测试用例保存到 evals/evals.json。现在不要编写断言——只写提示词。你将在下一步运行过程中起草断言。

{
  "skill_name": "example-skill",
  "evals": [
    {
      "id": 1,
      "prompt": "用户的任务提示",
      "expected_output": "预期结果描述",
      "files": []
    }
  ]
}

查看 references/schemas.md 获取完整模式(包括 assertions 字段,你将在稍后添加)。

运行和评估测试用例

本节是一个连续的序列——不要中途停止。不要使用 /skill-test 或任何其他测试技能。

将结果放入 <skill-name>-workspace/ 中,作为技能目录的兄弟目录。在工作区内,按迭代组织结果(iteration-1/、iteration-2/等),在迭代内,每个测试用例创建一个目录(eval-0/、eval-1/等)。不要一次性创建所有这些——按需创建目录。

步骤1:在同一轮次中生成所有运行(带技能和基线)

对于每个测试用例,在同一轮次中生成两个子代理——一个带技能,一个不带。这很重要:不要先生成带技能的运行,然后稍后再回来进行基线测试。一次性启动所有运行,以便它们大致同时完成。

带技能运行:

执行此任务:
- 技能路径:<path-to-skill>
- 任务:<eval prompt>
- 输入文件:<eval files if any, or "none">
- 将输出保存到:<workspace>/iteration-<N>/eval-<ID>/with_skill/outputs/
- 要保存的输出:<用户关心的内容——例如,“.docx文件”、“最终CSV”>

基线运行(相同提示词,但基线取决于上下文):

  • 创建新技能:根本没有技能。相同提示词,没有技能路径,保存到 without_skill/outputs/。
  • 改进现有技能:旧版本。在编辑之前,保存技能快照(cp -r <skill-path> <workspace>/skill-snapshot/),然后将基线子代理指向快照。保存到 old_skill/outputs/。

为每个测试用例编写一个 eval_metadata.json(断言现在可以为空)。为每个评估取一个描述性名称,基于其测试的内容——而不仅仅是“eval-0”。目录也使用此名称。如果此迭代使用新的或修改的评估提示词,为每个新评估目录创建这些文件——不要假设它们会从之前的迭代中继承。

{
  "eval_id": 0,
  "eval_name": "descriptive-name-here",
  "prompt": "用户的任务提示",
  "assertions": []
}

步骤2:在运行过程中,起草断言

不要只是等待运行完成——你可以高效地利用这段时间。为每个测试用例起草定量断言,并向用户解释它们。如果断言已存在于 evals/evals.json 中,检查它们并解释它们检查什么。

好的断言应具有客观上可验证性和描述性名称——它们应在基准查看器中清晰可读,以便一眼看到结果的人立即理解每个断言检查的内容。主观技能(写作风格、设计质量)更适合定性评估——不要强迫断言用于需要人为判断的事项。

起草后,更新 eval_metadata.json 文件和 evals/evals.json 中的断言。同时向用户解释他们将在查看器中看到什么——包括定性输出和定量基准。

步骤3:运行完成时,捕获时序数据

当每个子代理任务完成时,你会收到一个包含 total_tokens 和 duration_ms 的通知。立即将这些数据保存到运行目录的 timing.json 中:

{
  "total_tokens": 84852,
  "duration_ms": 23332,
  "total_duration_seconds": 23.3
}

这是捕获这些数据的唯一机会——它们通过任务通知传递,没有其他地方持久化。逐个处理每个通知,而不是尝试批量处理。

步骤4:评分、聚合和启动查看器

一旦所有运行完成:

  1. 为每个运行评分——生成一个评分子代理(或内联评分),读取 agents/grader.md,并根据输出评估每个断言。将结果保存到每个运行目录的 grading.json 中。grading.json 的 expectations 数组必须使用 text、passed 和 evidence 字段(不要使用 name/met/details 或其他变体)——查看器依赖这些确切的字段名称。对于可以通过编程方式检查的断言,编写并运行脚本,而不是凭眼力判断——脚本更快、更可靠,并且可以跨迭代重用。

  2. 聚合成基准——从技能创建器目录运行聚合脚本:

    python -m scripts.aggregate_benchmark <workspace>/iteration-N --skill-name <name>
    

    这将生成 benchmark.json 和 benchmark.md,其中包含通过率、每个配置的时间和令牌数,以及平均值 ± 标准差和差值。如果手动生成 benchmark.json,请查看 references/schemas.md 获取查看器期望的确切模式。 将每个带技能版本放在其基线对应版本之前。

  3. 进行分析——读取基准数据,发现聚合统计可能隐藏的模式。查看 agents/analyzer.md(特别是“分析基准结果”部分)了解要寻找的内容——比如总是通过的断言(无论是否使用技能)、高方差评估(可能不稳定)以及时间/令牌权衡。

  4. 启动查看器,同时包含定性输出和定量数据:

    nohup python <skill-creator-path>/eval-viewer/generate_review.py
    

...

[为翻译而截断]

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints, or scientific publications. Supports comprehensive structured reviews covering methodology assessment, contribution evaluation, literature positioning, and constructive feedback generation. Trigger on queries involving paper URLs, uploaded PDFs, arXiv links, or requests like "review this paper", "analyze this research", "summarize this study", or "write a peer review".

bootstrap

Generate a personalized SOUL.md through a warm, adaptive onboarding conversation. Trigger when the user wants to create, set up, or initialize their AI partner's identity — e.g., "create my SOUL.md", "bootstrap my agent", "set up my AI partner", "define who you are", "let's do onboarding", "personalize this AI", "make you mine", or when a SOUL.md is missing. Also trigger for updates: "update my SOUL.md", "change my AI's personality", "tweak the soul".

bytedance/academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints, or scientific publications. Supports comprehensive structured reviews covering methodology assessment, contribution evaluation, literature positioning, and constructive feedback generation. Trigger on queries involving paper URLs, uploaded PDFs, arXiv links, or requests like "review this paper", "analyze this research", "summarize this study", or "write a peer review".

bytedance/chart-visualization

This skill should be used when the user wants to visualize data. It intelligently selects the most suitable chart type from 26 available options, extracts parameters based on detailed specifications, and generates a chart image using a JavaScript script.

bytedance/claude-to-deerflow

Interact with DeerFlow AI agent platform via its HTTP API. Use this skill when the user wants to send messages or questions to DeerFlow for research/analysis, start a DeerFlow conversation thread, check DeerFlow status or health, list available models/skills/agents in DeerFlow, manage DeerFlow memory, upload files to DeerFlow threads, or delegate complex research tasks to DeerFlow. Also use when the user mentions deerflow, deer flow, or wants to run a deep research task that DeerFlow can handle.

bytedance/consulting-analysis

Use this skill when the user requests to generate, create, or write professional research reports including but not limited to market analysis, consumer insights, brand analysis, financial analysis, industry research, competitive intelligence, investment due diligence, or any consulting-grade analytical report. This skill operates in two phases — (1) generating a structured analysis framework with chapter skeleton, data query requirements, and analysis logic, and (2) after data collection by other skills, producing the final consulting-grade report with structured narratives, embedded charts, and strategic insights.

bytedance/data-analysis

Use this skill when the user uploads Excel (.xlsx/.xls) or CSV files and wants to perform data analysis, generate statistics, create summaries, pivot tables, SQL queries, or any form of structured data exploration. Supports multi-sheet Excel workbooks, aggregation, filtering, joins, and exporting results to CSV/JSON/Markdown.

bytedance/deep-research

Use this skill instead of WebSearch for ANY question requiring web research. Trigger on queries like "what is X", "explain X", "compare X and Y", "research X", or before content generation tasks. Provides systematic multi-angle research methodology instead of single superficial searches. Use this proactively when the user's question needs online information.

bytedance/find-skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

bytedance/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

bytedance/github-deep-research

Conduct multi-round deep research on any GitHub Repo. Use when users request comprehensive analysis, timeline reconstruction, competitive analysis, or in-depth investigation of GitHub. Produces structured markdown reports with executive summaries, chronological timelines, metrics analysis, and Mermaid diagrams. Triggers on Github repository URL or open source projects.

bytedance/image-generation

Use this skill when the user requests to generate, create, imagine, or visualize images including characters, scenes, products, or any visual content. Supports structured prompts and reference images for guided generation.

bytedance/podcast-generation

Use this skill when the user requests to generate, create, or produce podcasts from text content. Converts written content into a two-host conversational podcast audio format with natural dialogue.

bytedance/ppt-generation

Use this skill when the user requests to generate, create, or make presentations (PPT/PPTX). Creates visually rich slides by generating images for each slide and composing them into a PowerPoint file.

bytedance/skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

bytedance/surprise-me

Create a delightful, unexpected "wow" experience for the user by dynamically discovering and creatively combining other enabled skills. Triggers when the user says "surprise me" or any request expressing a desire for an unexpected creative showcase. Also triggers when the user is bored, wants inspiration, or asks for "something interesting".

bytedance/vercel-deploy

Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as "Deploy my app", "Deploy this to production", "Create a preview deployment", "Deploy and give me the link", or "Push this live". No authentication required - returns preview URL and claimable deployment link.

bytedance/video-generation

Use this skill when the user requests to generate, create, or imagine videos. Supports structured prompts and reference image for guided generation.

bytedance/web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

chart-visualization

This skill should be used when the user wants to visualize data. It intelligently selects the most suitable chart type from 26 available options, extracts parameters based on detailed specifications, and generates a chart image using a JavaScript script.

相关技能