refactor: 消灭 skill.json,SKILL.md 成为唯一真相源

- 将 skill.json 中的 icon、shortDesc、category、maintainer、
  compatibleAgents、channel 迁移到 SKILL.md frontmatter 的 market 段
- 将 skill.json 中的 changelog 字段提取为独立 CHANGELOG.md
- 删除所有 skill.json(downloads/rating/ratingCount 等虚假数据一并移除)
- 版本号统一从 SKILL.md frontmatter version 读取

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 20:38:00 +08:00
parent 89e68de812
commit b8ba404577
12 changed files with 136 additions and 144 deletions

View File

@@ -0,0 +1,5 @@
# Changelog
## [2.1.0] - 2026-02-26
- 移除 fetch_api 依赖,改为通过 Bash/curl 调用 HTTP APIAPI 地址由 system prompt 注入;以用户阅读体验优先的 blockquote 格式呈现内容

View File

@@ -1,16 +1,42 @@
--- ---
name: create-agent name: create-agent
description: 通过多轮对话收集需求,调用 HTTP API 创建新的 AgentFS v2 智能体,支持自定义 persona 和 principles。Use when 用户要求创建新智能体、培养某领域助手、或快速基于模板生成可治理 Agent。 description: >-
version: "2.1.0" 通过多轮对话收集需求,调用 HTTP API 创建新的 AgentFS v2 智能体,支持自定义 persona 和 principles。Use when
用户要求创建新智能体、培养某领域助手、或快速基于模板生成可治理 Agent。
version: 2.1.0
type: meta type: meta
risk_level: medium risk_level: medium
status: enabled status: enabled
disable-model-invocation: true disable-model-invocation: true
tags: [agent, creation, meta] tags:
- agent
- creation
- meta
metadata: metadata:
author: desirecore author: desirecore
version: "2.1.0" version: 2.1.0
updated_at: "2026-02-26" updated_at: '2026-02-26'
market:
icon: >-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0
24 24" fill="none"><defs><linearGradient id="ca-a" x1="2" y1="7" x2="16"
y2="21" gradientUnits="userSpaceOnUse"><stop stop-color="#34C759"/><stop
offset="1" stop-color="#007AFF"/></linearGradient></defs><circle cx="9"
cy="7" r="4" fill="url(#ca-a)" fill-opacity="0.15" stroke="url(#ca-a)"
stroke-width="1.5"/><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"
fill="url(#ca-a)" fill-opacity="0.1" stroke="url(#ca-a)"
stroke-width="1.5"/><circle cx="19" cy="11" r="4" fill="#34C759"
fill-opacity="0.15"/><line x1="19" y1="8.5" x2="19" y2="13.5"
stroke="#34C759" stroke-width="2" stroke-linecap="round"/><line x1="16.5"
y1="11" x2="21.5" y2="11" stroke="#34C759" stroke-width="2"
stroke-linecap="round"/></svg>
short_desc: 通过自然语言对话收集需求,一键创建专业化数字智能体
category: productivity
maintainer:
name: DesireCore Official
verified: true
compatible_agents: []
channel: latest
--- ---
# create-agent 技能 # create-agent 技能

View File

@@ -1,32 +0,0 @@
{
"id": "create-agent",
"name": "创建智能体",
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\"><defs><linearGradient id=\"ca-a\" x1=\"2\" y1=\"7\" x2=\"16\" y2=\"21\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#34C759\"/><stop offset=\"1\" stop-color=\"#007AFF\"/></linearGradient></defs><circle cx=\"9\" cy=\"7\" r=\"4\" fill=\"url(#ca-a)\" fill-opacity=\"0.15\" stroke=\"url(#ca-a)\" stroke-width=\"1.5\"/><path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" fill=\"url(#ca-a)\" fill-opacity=\"0.1\" stroke=\"url(#ca-a)\" stroke-width=\"1.5\"/><circle cx=\"19\" cy=\"11\" r=\"4\" fill=\"#34C759\" fill-opacity=\"0.15\"/><line x1=\"19\" y1=\"8.5\" x2=\"19\" y2=\"13.5\" stroke=\"#34C759\" stroke-width=\"2\" stroke-linecap=\"round\"/><line x1=\"16.5\" y1=\"11\" x2=\"21.5\" y2=\"11\" stroke=\"#34C759\" stroke-width=\"2\" stroke-linecap=\"round\"/></svg>",
"shortDesc": "通过自然语言对话收集需求,一键创建专业化数字智能体",
"fullDesc": "创建智能体是一个元技能,赋予 DesireCore 创建其他 Agent 的能力。通过多轮对话收集用户需求,自动生成符合 AgentFS v2 规范的 persona 和 principles调用 HTTP API 完成创建。\n\n功能特性\n- 自然语言交互:用对话描述需求即可创建,无需编程\n- 领域模板:根据专业领域自动匹配推荐风格与边界\n- AgentFS v2 规范:创建的仓库符合标准结构,支持版本管理\n- 多轮引导:智能追问必填信息,每轮最多 2 个问题\n- 预览确认:创建前展示完整的 persona 与 principles 预览",
"category": "productivity",
"tags": [
"智能体",
"创建",
"元技能",
"AgentFS",
"自动化"
],
"version": "2.1.0",
"updatedAt": "2026-02-26",
"maintainer": {
"name": "DesireCore Official",
"verified": true
},
"downloads": 0,
"rating": 0,
"ratingCount": 0,
"installStatus": "not_installed",
"riskLevel": "medium",
"requires": {
"tools": [],
"connections": []
},
"compatibleAgents": [],
"changelog": "v2.1.0: 移除 fetch_api 依赖,改为通过 Bash/curl 调用 HTTP APIAPI 地址由 system prompt 注入;以用户阅读体验优先的 blockquote 格式呈现内容"
}

View File

@@ -0,0 +1,5 @@
# Changelog
## [2.1.0] - 2026-02-26
- 移除 fetch_api 依赖,改为通过 Bash/curl 调用 HTTP APIAPI 地址由 system prompt 注入

View File

@@ -7,8 +7,34 @@ status: enabled
disable-model-invocation: true disable-model-invocation: true
metadata: metadata:
author: desirecore author: desirecore
version: "2.1.0" version: 2.1.0
updated_at: "2026-02-26" updated_at: '2026-02-26'
version: 2.1.0
tags:
- 智能体
- 删除
- 元技能
- 清理
- 安全
market:
icon: >-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0
24 24" fill="none"><defs><linearGradient id="da2-a" x1="2" y1="7" x2="16"
y2="21" gradientUnits="userSpaceOnUse"><stop stop-color="#FF9500"/><stop
offset="1" stop-color="#FF3B30"/></linearGradient></defs><circle cx="9"
cy="7" r="4" fill="url(#da2-a)" fill-opacity="0.15" stroke="url(#da2-a)"
stroke-width="1.5"/><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"
fill="url(#da2-a)" fill-opacity="0.1" stroke="url(#da2-a)"
stroke-width="1.5"/><circle cx="19" cy="11" r="4" fill="#FF3B30"
fill-opacity="0.12"/><line x1="16.5" y1="11" x2="21.5" y2="11"
stroke="#FF3B30" stroke-width="2" stroke-linecap="round"/></svg>
short_desc: 安全删除智能体及其关联数据,支持多重确认与可选历史清理
category: productivity
maintainer:
name: DesireCore Official
verified: true
compatible_agents: []
channel: latest
--- ---
# delete-agent 技能 # delete-agent 技能

View File

@@ -1,32 +0,0 @@
{
"id": "delete-agent",
"name": "删除智能体",
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\"><defs><linearGradient id=\"da2-a\" x1=\"2\" y1=\"7\" x2=\"16\" y2=\"21\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#FF9500\"/><stop offset=\"1\" stop-color=\"#FF3B30\"/></linearGradient></defs><circle cx=\"9\" cy=\"7\" r=\"4\" fill=\"url(#da2-a)\" fill-opacity=\"0.15\" stroke=\"url(#da2-a)\" stroke-width=\"1.5\"/><path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" fill=\"url(#da2-a)\" fill-opacity=\"0.1\" stroke=\"url(#da2-a)\" stroke-width=\"1.5\"/><circle cx=\"19\" cy=\"11\" r=\"4\" fill=\"#FF3B30\" fill-opacity=\"0.12\"/><line x1=\"16.5\" y1=\"11\" x2=\"21.5\" y2=\"11\" stroke=\"#FF3B30\" stroke-width=\"2\" stroke-linecap=\"round\"/></svg>",
"shortDesc": "安全删除智能体及其关联数据,支持多重确认与可选历史清理",
"fullDesc": "删除智能体是一个元技能,允许安全地删除不再使用的 Agent。执行前会验证智能体状态清理文件系统、内存状态、消息订阅等所有关联数据支持可选地删除会话历史。\n\n功能特性\n- 状态检查:自动验证智能体是否处于可删除状态\n- 完整清理文件系统、调度器、消息订阅、MCP 连接一并清除\n- 可选历史:默认保留会话历史,可选择同时删除\n- 多重确认:高风险操作,需用户多步确认\n- 结果报告:输出详细的清理回执",
"category": "productivity",
"tags": [
"智能体",
"删除",
"元技能",
"清理",
"安全"
],
"version": "2.1.0",
"updatedAt": "2026-02-26",
"maintainer": {
"name": "DesireCore Official",
"verified": true
},
"downloads": 0,
"rating": 0,
"ratingCount": 0,
"installStatus": "not_installed",
"riskLevel": "high",
"requires": {
"tools": [],
"connections": []
},
"compatibleAgents": [],
"changelog": "v2.1.0: 移除 fetch_api 依赖,改为通过 Bash/curl 调用 HTTP APIAPI 地址由 system prompt 注入"
}

View File

@@ -0,0 +1,5 @@
# Changelog
## [2.1.0] - 2026-02-26
- 移除 fetch_api 依赖,改为通过 Bash/curl 调用 HTTP APIAPI 地址由 system prompt 注入

View File

@@ -1,16 +1,38 @@
--- ---
name: discover-agent name: discover-agent
description: 根据用户需求推荐最匹配的智能体展示候选列表并引导选择。Use when 用户描述需求但不确定该找哪个智能体帮忙,或想浏览可用的智能体。 description: 根据用户需求推荐最匹配的智能体展示候选列表并引导选择。Use when 用户描述需求但不确定该找哪个智能体帮忙,或想浏览可用的智能体。
version: "2.1.0" version: 2.1.0
type: procedural type: procedural
risk_level: low risk_level: low
status: enabled status: enabled
disable-model-invocation: false disable-model-invocation: false
tags: [agent, discovery, recommendation] tags:
- agent
- discovery
- recommendation
metadata: metadata:
author: desirecore author: desirecore
version: "2.1.0" version: 2.1.0
updated_at: "2026-02-26" updated_at: '2026-02-26'
market:
icon: >-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0
24 24" fill="none"><defs><linearGradient id="da-a" x1="2" y1="2" x2="22"
y2="22" gradientUnits="userSpaceOnUse"><stop stop-color="#AF52DE"
stop-opacity="0.12"/><stop offset="1" stop-color="#007AFF"
stop-opacity="0.06"/></linearGradient></defs><circle cx="12" cy="12" r="10"
fill="url(#da-a)" stroke="#AF52DE" stroke-width="1.5"/><path d="M16.24
7.76l-1.8 5.41a2 2 0 0 1-1.27 1.27L7.76 16.24" fill="#FF9500"
fill-opacity="0.85"/><path d="M7.76 16.24l1.8-5.41a2 2 0 0 1 1.27-1.27L16.24
7.76" fill="#AF52DE" fill-opacity="0.7"/><circle cx="12" cy="12" r="1.5"
fill="white" stroke="#AF52DE" stroke-width="0.8"/></svg>
short_desc: 根据需求描述智能推荐最匹配的智能体,引导快速选择
category: productivity
maintainer:
name: DesireCore Official
verified: true
compatible_agents: []
channel: latest
--- ---
# discover-agent 技能 # discover-agent 技能

View File

@@ -1,32 +0,0 @@
{
"id": "discover-agent",
"name": "发现智能体",
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\"><defs><linearGradient id=\"da-a\" x1=\"2\" y1=\"2\" x2=\"22\" y2=\"22\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#AF52DE\" stop-opacity=\"0.12\"/><stop offset=\"1\" stop-color=\"#007AFF\" stop-opacity=\"0.06\"/></linearGradient></defs><circle cx=\"12\" cy=\"12\" r=\"10\" fill=\"url(#da-a)\" stroke=\"#AF52DE\" stroke-width=\"1.5\"/><path d=\"M16.24 7.76l-1.8 5.41a2 2 0 0 1-1.27 1.27L7.76 16.24\" fill=\"#FF9500\" fill-opacity=\"0.85\"/><path d=\"M7.76 16.24l1.8-5.41a2 2 0 0 1 1.27-1.27L16.24 7.76\" fill=\"#AF52DE\" fill-opacity=\"0.7\"/><circle cx=\"12\" cy=\"12\" r=\"1.5\" fill=\"white\" stroke=\"#AF52DE\" stroke-width=\"0.8\"/></svg>",
"shortDesc": "根据需求描述智能推荐最匹配的智能体,引导快速选择",
"fullDesc": "发现智能体是一个流程型技能,帮助用户在已注册的 Agent 中找到最合适的助手。通过语义理解用户需求,多维度匹配评分,展示候选列表并引导选择。无匹配时自动衔接创建流程。\n\n功能特性\n- 语义匹配:基于描述相似度、技能匹配、领域匹配等多维度评分\n- 智能排序:综合得分降序,在线状态优先\n- 浏览模式:支持查看所有可用智能体\n- 流畅衔接:无匹配时自动建议创建新 Agent\n- 上下文传递:选择后自动传递用户需求到目标智能体",
"category": "productivity",
"tags": [
"智能体",
"发现",
"推荐",
"匹配",
"导航"
],
"version": "2.1.0",
"updatedAt": "2026-02-26",
"maintainer": {
"name": "DesireCore Official",
"verified": true
},
"downloads": 0,
"rating": 0,
"ratingCount": 0,
"installStatus": "not_installed",
"riskLevel": "low",
"requires": {
"tools": [],
"connections": []
},
"compatibleAgents": [],
"changelog": "v2.1.0: 移除 fetch_api 依赖,改为通过 Bash/curl 调用 HTTP APIAPI 地址由 system prompt 注入"
}

View File

@@ -0,0 +1,5 @@
# Changelog
## [2.1.0] - 2026-02-26
- 移除 fetch_api 依赖,改为通过 Bash/curl 调用 HTTP APIAPI 地址由 system prompt 注入;新增 PUT /api/agents/:id/files/* 端点说明

View File

@@ -1,16 +1,42 @@
--- ---
name: update-agent name: update-agent
description: 安全更新现有智能体的配置、人格、原则、技能与记忆,输出可审阅 diff 并在确认后应用与提交。Use when 用户要求修改 Agent 行为、安装/卸载技能、调整配置、回滚变更或修订规则。 description: >-
version: "2.1.0" 安全更新现有智能体的配置、人格、原则、技能与记忆,输出可审阅 diff 并在确认后应用与提交。Use when 用户要求修改 Agent
行为、安装/卸载技能、调整配置、回滚变更或修订规则。
version: 2.1.0
type: meta type: meta
risk_level: high risk_level: high
status: enabled status: enabled
disable-model-invocation: true disable-model-invocation: true
tags: [agent, update, meta] tags:
- agent
- update
- meta
metadata: metadata:
author: desirecore author: desirecore
version: "2.1.0" version: 2.1.0
updated_at: "2026-02-26" updated_at: '2026-02-26'
market:
icon: >-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0
24 24" fill="none"><defs><linearGradient id="ua-a" x1="2" y1="7" x2="14"
y2="21" gradientUnits="userSpaceOnUse"><stop stop-color="#AF52DE"/><stop
offset="1" stop-color="#007AFF"/></linearGradient></defs><circle cx="9"
cy="7" r="4" fill="url(#ua-a)" fill-opacity="0.15" stroke="url(#ua-a)"
stroke-width="1.5"/><path d="M10 15H6a4 4 0 0 0-4 4v2" fill="url(#ua-a)"
fill-opacity="0.1" stroke="url(#ua-a)" stroke-width="1.5"/><circle cx="18"
cy="15" r="3" fill="#007AFF" fill-opacity="0.12" stroke="#007AFF"
stroke-width="1.3"/><path d="m14.3
16.53.92-.38m.01-2.3-.92-.38m1.5-1.24-.38-.92m0
5.54-.38.92m2.3.01.38-.92m.3-4.84-.38-.92m1.24 1.5.92-.38m0 2.3.92.38"
stroke="#AF52DE" stroke-width="1.3" stroke-linecap="round"/></svg>
short_desc: 安全更新智能体配置、人格、规则与技能,支持 diff 预览与版本回滚
category: productivity
maintainer:
name: DesireCore Official
verified: true
compatible_agents: []
channel: latest
--- ---
# update-agent 技能 # update-agent 技能

View File

@@ -1,32 +0,0 @@
{
"id": "update-agent",
"name": "更新智能体",
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\"><defs><linearGradient id=\"ua-a\" x1=\"2\" y1=\"7\" x2=\"14\" y2=\"21\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#AF52DE\"/><stop offset=\"1\" stop-color=\"#007AFF\"/></linearGradient></defs><circle cx=\"9\" cy=\"7\" r=\"4\" fill=\"url(#ua-a)\" fill-opacity=\"0.15\" stroke=\"url(#ua-a)\" stroke-width=\"1.5\"/><path d=\"M10 15H6a4 4 0 0 0-4 4v2\" fill=\"url(#ua-a)\" fill-opacity=\"0.1\" stroke=\"url(#ua-a)\" stroke-width=\"1.5\"/><circle cx=\"18\" cy=\"15\" r=\"3\" fill=\"#007AFF\" fill-opacity=\"0.12\" stroke=\"#007AFF\" stroke-width=\"1.3\"/><path d=\"m14.3 16.53.92-.38m.01-2.3-.92-.38m1.5-1.24-.38-.92m0 5.54-.38.92m2.3.01.38-.92m.3-4.84-.38-.92m1.24 1.5.92-.38m0 2.3.92.38\" stroke=\"#AF52DE\" stroke-width=\"1.3\" stroke-linecap=\"round\"/></svg>",
"shortDesc": "安全更新智能体配置、人格、规则与技能,支持 diff 预览与版本回滚",
"fullDesc": "更新智能体是一个元技能,允许通过自然语言对话修改 Agent 的各项配置。所有修改都会生成可审阅的 diff 补丁,经用户确认后才会应用,并通过 Git 支持版本回滚。\n\n功能特性\n- 多维更新:支持 persona、principles、skills、memory、tools 等全方位修改\n- Diff 预览:变更以直观的 diff 形式展示,清晰明了\n- 风险分级:低/中/高/受保护四级,按风险等级要求不同确认流程\n- 受保护路径:核心身份与安全红线自动阻断修改\n- 版本回滚:通过 Git 管理版本历史,支持回滚到任意时间点",
"category": "productivity",
"tags": [
"智能体",
"更新",
"元技能",
"配置管理",
"版本控制"
],
"version": "2.1.0",
"updatedAt": "2026-02-26",
"maintainer": {
"name": "DesireCore Official",
"verified": true
},
"downloads": 0,
"rating": 0,
"ratingCount": 0,
"installStatus": "not_installed",
"riskLevel": "high",
"requires": {
"tools": [],
"connections": []
},
"compatibleAgents": [],
"changelog": "v2.1.0: 移除 fetch_api 依赖,改为通过 Bash/curl 调用 HTTP APIAPI 地址由 system prompt 注入;新增 PUT /api/agents/:id/files/* 端点说明"
}