技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
evolve-agent【数据与研究】Evolve an existing agent definition by refining its persona in-place or creating an advanced variant. Covers assessing the current agent against best practices, gathering evolution requirements, choosing scope (refinement vs. variant), applying changes to skills, tools, capabilities, and limitations, updating version metadata, and synchronizing the r…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
改、擴或建以 create-agent 原著之代理之進階變體。此程涵代理生命週期之維護面:對最佳實踐之差距評估、對人格定義施針對性改、升版、保持登記冊與交互引用之同步。
r-developer 與 r-developer-advanced)agents/r-developer.md)讀既有代理文件,並對 guides/agent-best-practices.md 之品質清單評各節:
| 節 | 所察 | 常見問題 |
|---|---|---|
| Frontmatter | 所必欄俱在(name、description、tools、model、version、author) | 缺 tags、陳 version、誤 priority |
| Purpose | 具體問題陳述,非泛「helps with X」 | 模糊或與他代理重疊 |
| Capabilities | 具體可驗之能,帶粗體引導 | 泛稱(「handles development」)、無分組 |
| Available Skills | 配 frontmatter skills 清單,所有 ID 於登記冊存 | 陳 ID、缺新技能、無謂列預設技能 |
| Usage Scenarios | 2-3 實際情境,帶呼叫模式 | 佔位符文、不實際之例 |
| Examples | 示使用者請求與代理行為 | 缺或瑣碎之例 |
| Limitations | 3-5 誠實之限制 | 過少、過泛或整缺 |
| See Also | 對代理、指南、團隊之有效交互引用 | 指向已改名或移之文件 |
# Read the agent file
cat agents/<agent-name>.md
# Check frontmatter parses
head -20 agents/<agent-name>.md
# Verify skills in frontmatter exist in registry
grep "skills:" -A 20 agents/<agent-name>.md
# Check if agent is referenced by any team
grep -r "<agent-name>" teams/*.md
預期: 按節組之具體差距、弱處或改善機會清單。
失敗時: 若代理文件不存或無 frontmatter,則此技不適——改用 create-agent 自頭著之。
識並分類演化之觸發:
| 觸發 | 例 | 典型範圍 |
|---|---|---|
| 使用者回饋 | 「代理漏 review 中之 XSS」 | 加技能或能 |
| 新技能可得 | 庫得 analyze-api-security | 更新技能清單 |
| 工具變 | 新 MCP server 可得 | 加 tools/mcp_servers |
| 範圍重疊 | 二代理皆宣稱「code review」 | 銳目的與限 |
| 團隊整合 | 代理加入新團隊 | 更 See Also,驗能 |
| 模型升級 | 任務需深度推理 | 改 model 欄 |
| 權限降 | 代理有 Bash 而僅讀檔 | 移不必要之工具 |
編前先記所需之具體改。列各改及其目標節:
- Frontmatter: add `new-skill-id` to skills list
- Capabilities: add "API Security Analysis" capability
- Available Skills: add `new-skill-id` with description
- Limitations: remove outdated limitation about missing skill
- See Also: add link to new team that includes this agent
預期: 具體改之清單,各映至代理文件之特定節。
失敗時: 若改不明,進前諮詢使用者以釐。演化目標泛則改善亦泛。
以此決策矩陣定是就地改或建變體:
| 標準 | 就地改(in-place) | 進階變體(新代理) |
|---|---|---|
| 代理 ID | 不變 | 新 ID:<agent>-advanced 或 <agent>-<specialty> |
| 檔路徑 | 同 .md 檔 | agents/ 中新檔 |
| 版本升 | Patch 或 minor | 起於 1.0.0 |
| Model | 或變 | 常高(如 sonnet → opus) |
| Registry | 更既有項 | 加新項 |
| 原代理 | 直接修 | 保全,加 See Also 交互引用 |
改(就地):於更新技能、修文檔、銳範圍或調工具時擇之。代理保其身分。
變體:當演後之版服於大異之受眾、需異 model 或添令原代理過寬之能時擇之。原代理保於較簡之用例。
預期: 明決——就地改或變體——含理由。
失敗時: 若不定,預設就地改。後可抽變體;合回則難。
直接編既有代理文件:
skills、tools、tags、model、priority、mcp_servers遵此編輯規:
skills 清單同步meditate、heal)於 frontmatter,除非為代理方法論之核grep "id: skill-name" skills/_registry.yml# Copy the original as a starting point
cp agents/<agent-name>.md agents/<agent-name>-advanced.md
# Edit the variant:
# - Change `name` to `<agent-name>-advanced`
# - Update `description` to reflect the advanced scope
# - Raise `model` if needed (e.g., sonnet → opus)
# - Reset `version` to "1.0.0"
# - Expand skills, capabilities, and examples for the advanced use case
# - Reference the original in See Also as a simpler alternative
預期: 代理文件(改或新變體)過步驟一之評估清單。
失敗時: 若編輯破文檔結構,以 git diff 審改並以 git checkout -- <file> 回部分編輯。
翻譯存時必行。 此步適於依此程之人類作者與 AI 代理。勿略——陳
source_commit值致npm run validate:translations於所有語言報假陳舊警。
察演化之代理是否存譯文並更以反新源狀態:
# Check for existing translations
ls i18n/*/agents/<agent-name>.md 2>/dev/null
npm run validate:translations
source_commit:npm run check:fence-propagation -- --id <agent-name>
node tools/provenance-field.mjs --field fence_basis_commit --set $(git rev-parse --short HEAD) <mirror paths>
evolve(<agent-name>): <description of changes>
Translations flagged for re-sync: de, zh-CN, ja, es
Changed sections: <list sections that changed>
npm run translation:status
無需行動。進步驟五。
遞譯新變體至變體穩(1-2 版)。於變體至少一改後再加譯。
預期: 所有譯文之 source_commit 已更至當前 commit。npm run translation:status 以 0 出。
失敗時: 若 sed 未能配 frontmatter 欄,手開譯文並驗其於 YAML frontmatter 有 source_commit。若欄缺,以 npm run translate:scaffold -- agents <agent-name> <locale> 重建鷹架。
升 frontmatter 之 version 欄,循語義化版:
| 改類 | 版升 | 例 |
|---|---|---|
| 錯字修、措詞釐清 | Patch:1.0.0 → 1.0.1 | 修不明之限 |
| 加新技能、擴能 | Minor:1.0.0 → 1.1.0 | 自庫加 3 新技能 |
| 重構目的、改模型 | Major:1.0.0 → 2.0.0 | 窄範圍、升至 opus |
亦更:
updated 日期至今tags 若代理之域覆變description 若目的實質異priority 若代理相對他者之重要性變預期: Frontmatter version 與 updated 反改之幅與日。新變體起於 "1.0.0"。
失敗時: 若忘升版,次演化無法辨當前態與前態。恒於 commit 前升之。
更 agents/_registry.yml 中既有項以配改後 frontmatter:
# Find the agent's registry entry
grep -A 10 "id: <agent-name>" agents/_registry.yml
更 description、tags、tools、skills 欄以配代理文件。無需變計。
更他文件中之交互引用若代理之能或名變:
# Check if any team references this agent
grep -r "<agent-name>" teams/*.md
# Check if any guide references this agent
grep -r "<agent-name>" guides/*.md
加新代理至 agents/_registry.yml 之字母位:
- id: <agent-name>-advanced
path: agents/<agent-name>-advanced.md
description: One-line description of the advanced variant
tags: [domain, specialty, advanced]
priority: normal
tools: [Read, Write, Edit, Bash, Grep, Glob]
skills:
- skill-id-one
- skill-id-two
然後:
total_agents.claude/agents/ 至 agents/ 之 symlink 令變體自動可發現預期: 登記冊項配代理文件之 frontmatter。於變體,total_agents 等於實際代理項數。
失敗時: 以 grep -c "^ - id:" agents/_registry.yml 計項並驗其配 total_agents。
行全驗證清單:
version 已升(改)或設為 "1.0.0"(變體)updated 日期為今skills/_registry.yml 存meditate、heal)若非方法論之核則不列total_agents 計配磁碟實際數git diff 示原內容無誤刪# Verify frontmatter
head -20 agents/<agent-name>.md
# Check skills exist
for skill in skill-a skill-b; do
grep "id: $skill" skills/_registry.yml
done
# Count agents on disk vs registry
ls agents/*.md | grep -v template | wc -l
grep total_agents agents/_registry.yml
# Review all changes
git diff
預期: 所有清單項過。已演代理已備以 commit。
失敗時: 逐一處理每敗項。演後最常之問題為 Available Skills 節中陳之技能 ID 及忘之 updated 日。
version 欄反所作之改updated 日為今skills 陣列配 Available Skills 節skills/_registry.yml 存agents/_registry.yml 中有新項含正確路徑total_agents 計已更source_commit 已更git diff 確無誤移內容version 與 updated。ls i18n/*/agents/<agent-name>.md 察既存譯文並更各之 source_commit,或於 commit 訊息中旗標之以待重譯。skills 陣列與 ## Available Skills 節須同步。更一而不更他為人與工具皆造困。meditate 或 heal 於 frontmatter,然其已自登記冊繼承。僅於為代理方法論之核時列之(如 mystic、alchemist)。Bash 或 WebFetch。每工具之加皆宜以具體新能證之。agents/_registry.yml 項須更配。陳項致發現與工具之敗。create-agent — 著新代理之基;evolve-agent 假其原依之evolve-skill — 演 SKILL.md 檔之平行程commit-changes — 以描述訊息 commit 已演代理