Community程式設計與開發github.com

技能創建工具

創建新技能、修改和改進現有技能,並衡量技能效能。當使用者想要從頭創建技能、編輯或優化現有技能、執行評估來測試技能、透過變異數分析來基準測試技能效能,或最佳化技能描述以提高觸發準確性時使用。

技能創建工具 是什麼?

技能創建工具是一個專為人工智慧代理設計的強大技能,特別針對 Claude Code、Cursor 和 Codex 等平台。它能夠引導使用者完成從頭建立技能的完整流程,從意圖捕獲、草稿撰寫、測試案例建立,到執行評估與迭代優化。該工具支援質化與量化評估方式,包含基準測試(baseline)與新版本(with-skill)的平行執行,並提供詳細的效能指標,如通過率、耗時和 Token 使用量。它還能自動化技能描述最佳化,以提高觸發準確性。其設計特色在於彈性的溝通風格,能適應從初學者到專業開發者的不同使用者,並遵循漸進式揭露原則,將技能文檔保持在 500 行以下,同時利用參考文件作為擴充資源。

相容平台✓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 的能力正激勵著水管工開啟終端機,父母和祖父母也開始 Google「如何安裝 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. 元資料(名稱 + 描述)——始終在上下文中(約 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:**
輸入:Added user authentication with JWT tokens
輸出:feat(auth): implement JWT-based authentication

寫作風格

嘗試向模型解釋為什麼事物重要,而不是使用強硬的「必須」。運用心智理論,並嘗試讓技能具有通用性,而不是非常狹隘地針對特定範例。先撰寫草稿,然後以全新的眼光審視並改進它。

測試案例

在撰寫技能草稿後,提出 2-3 個逼真的測試提示詞——像真實使用者會說的那樣。與使用者分享:「[你不一定要使用完全相同的語言] 這裡有幾個我想嘗試的測試案例。這些看起來對嗎?還是你想添加更多?」然後執行它們。

將測試案例儲存到 evals/evals.json。暫時不要撰寫斷言——只放提示詞。你將在下一步、執行過程中草擬斷言。

{
  "skill_name": "example-skill",
  "evals": [
    {
      "id": 1,
      "prompt": "User's task prompt",
      "expected_output": "Description of expected result",
      "files": []
    }
  ]
}

完整的結構請參閱 references/schemas.md(包括 assertions 欄位,你稍後會添加)。

執行與評估測試案例

此部分是一個連續的序列——不要中途停止。不要使用 /skill-test 或任何其他測試技能。

將結果放入 <skill-name>-workspace/,作為技能目錄的同級目錄。在工作區內,按迭代組織結果(iteration-1/、iteration-2/ 等),在每個迭代內,每個測試案例獲得一個目錄(eval-0/、eval-1/ 等)。不要事先全部建立——只是隨著進展逐步建立目錄。

步驟 1:在同一次對話中啟動所有執行(有技能 AND 基準)

對於每個測試案例,在同一輪中啟動兩個子代理——一個有技能,一個沒有。這很重要:不要先啟動有技能的執行,然後再回來處理基準。一次性全部啟動,這樣它們會大約同時結束。

有技能的執行:

執行此任務:
- 技能路徑:<path-to-skill>
- 任務:<eval prompt>
- 輸入檔案:<eval files if any, or "none">
- 將輸出儲存到:<workspace>/iteration-<N>/eval-<ID>/with_skill/outputs/
- 要儲存的輸出:<what the user cares about — e.g., "the .docx file", "the final CSV">

基準執行(相同的提示詞,但基準取決於上下文):

  • 創建新技能:完全沒有技能。相同的提示詞,沒有技能路徑,儲存到 without_skill/outputs/。
  • 改進現有技能:舊版本。在編輯之前,快照技能(cp -r <skill-path> <workspace>/skill-snapshot/),然後將基準子代理指向快照。儲存到 old_skill/outputs/。

為每個測試案例撰寫一個 eval_metadata.json(斷言可以暫時為空)。根據測試的內容為每個 eval 賦予一個描述性名稱——而不僅僅是「eval-0」。同時使用這個名稱作為目錄名稱。如果此迭代使用了新的或修改過的 eval 提示詞,請為每個新 eval 目錄建立這些檔案——不要假設它們會從之前的迭代繼承。

{
  "eval_id": 0,
  "eval_name": "descriptive-name-here",
  "prompt": "The user's task 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,其中包含每種配置的通過率、時間和 Token,以及平均值 ± 標準差和差異。如果手動產生 benchmark.json,請參閱 references/schemas.md 以了解檢視器期望的準確結構。將每個 with_skill 版本放在其基準對應項之前。

  3. 進行分析師檢查——閱讀基準測試資料,找出聚合統計資料可能隱藏的模式。參閱 agents/analyzer.md(「分析基準測試結果」部分)以了解應尋找的內容——例如無論技能如何總是通過的斷言(非區分性的)、高變異數的評估(可能不穩定),以及時間/Token 的權衡。

  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.

相關技能