From a787208db939cc5c5ce6ff0c5fc599ccc20512fa Mon Sep 17 00:00:00 2001 From: yi-ge Date: Wed, 25 Feb 2026 09:15:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=204=20=E4=B8=AA=20builtin=20?= =?UTF-8?q?=E6=8A=80=E8=83=BD=E6=B7=BB=E5=8A=A0=20skill.json=20=E5=B8=82?= =?UTF-8?q?=E5=9C=BA=E5=85=83=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - create-agent: 创建智能体(元技能,medium 风险) - delete-agent: 删除智能体(元技能,high 风险) - discover-agent: 发现智能体(流程型,low 风险) - update-agent: 更新智能体(元技能,high 风险) 使 market-sync 的 scanSkills() 能够索引这些技能, 在市场 UI 中正常展示。 Co-Authored-By: Claude Opus 4.6 --- skills/create-agent/skill.json | 27 +++++++++++++++++++++++++++ skills/delete-agent/skill.json | 27 +++++++++++++++++++++++++++ skills/discover-agent/skill.json | 27 +++++++++++++++++++++++++++ skills/update-agent/skill.json | 27 +++++++++++++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 skills/create-agent/skill.json create mode 100644 skills/delete-agent/skill.json create mode 100644 skills/discover-agent/skill.json create mode 100644 skills/update-agent/skill.json diff --git a/skills/create-agent/skill.json b/skills/create-agent/skill.json new file mode 100644 index 0000000..508fed6 --- /dev/null +++ b/skills/create-agent/skill.json @@ -0,0 +1,27 @@ +{ + "id": "create-agent", + "name": "创建智能体", + "icon": "user-plus", + "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.0.0", + "latestVersion": "2.0.0", + "updatedAt": "2026-02-21", + "maintainer": { + "name": "DesireCore Official", + "verified": true + }, + "downloads": 0, + "rating": 0, + "ratingCount": 0, + "installStatus": "not_installed", + "riskLevel": "medium", + "requires": { + "tools": ["fetch_api"], + "connections": [] + }, + "compatibleAgents": [], + "changelog": "v2.0.0: 支持 AgentFS v2 扁平结构,新增领域模板匹配" +} diff --git a/skills/delete-agent/skill.json b/skills/delete-agent/skill.json new file mode 100644 index 0000000..56a2537 --- /dev/null +++ b/skills/delete-agent/skill.json @@ -0,0 +1,27 @@ +{ + "id": "delete-agent", + "name": "删除智能体", + "icon": "user-minus", + "shortDesc": "安全删除智能体及其关联数据,支持多重确认与可选历史清理", + "fullDesc": "删除智能体是一个元技能,允许安全地删除不再使用的 Agent。执行前会验证智能体状态,清理文件系统、内存状态、消息订阅等所有关联数据,支持可选地删除会话历史。\n\n功能特性:\n- 状态检查:自动验证智能体是否处于可删除状态\n- 完整清理:文件系统、调度器、消息订阅、MCP 连接一并清除\n- 可选历史:默认保留会话历史,可选择同时删除\n- 多重确认:高风险操作,需用户多步确认\n- 结果报告:输出详细的清理回执", + "category": "productivity", + "tags": ["智能体", "删除", "元技能", "清理", "安全"], + "version": "1.0.0", + "latestVersion": "1.0.0", + "updatedAt": "2026-02-17", + "maintainer": { + "name": "DesireCore Official", + "verified": true + }, + "downloads": 0, + "rating": 0, + "ratingCount": 0, + "installStatus": "not_installed", + "riskLevel": "high", + "requires": { + "tools": ["fetch_api"], + "connections": [] + }, + "compatibleAgents": [], + "changelog": "v1.0.0: 初始版本,支持状态检查与完整数据清理" +} diff --git a/skills/discover-agent/skill.json b/skills/discover-agent/skill.json new file mode 100644 index 0000000..e0f4935 --- /dev/null +++ b/skills/discover-agent/skill.json @@ -0,0 +1,27 @@ +{ + "id": "discover-agent", + "name": "发现智能体", + "icon": "compass", + "shortDesc": "根据需求描述智能推荐最匹配的智能体,引导快速选择", + "fullDesc": "发现智能体是一个流程型技能,帮助用户在已注册的 Agent 中找到最合适的助手。通过语义理解用户需求,多维度匹配评分,展示候选列表并引导选择。无匹配时自动衔接创建流程。\n\n功能特性:\n- 语义匹配:基于描述相似度、技能匹配、领域匹配等多维度评分\n- 智能排序:综合得分降序,在线状态优先\n- 浏览模式:支持查看所有可用智能体\n- 流畅衔接:无匹配时自动建议创建新 Agent\n- 上下文传递:选择后自动传递用户需求到目标智能体", + "category": "productivity", + "tags": ["智能体", "发现", "推荐", "匹配", "导航"], + "version": "1.0.0", + "latestVersion": "1.0.0", + "updatedAt": "2026-02-17", + "maintainer": { + "name": "DesireCore Official", + "verified": true + }, + "downloads": 0, + "rating": 0, + "ratingCount": 0, + "installStatus": "not_installed", + "riskLevel": "low", + "requires": { + "tools": ["fetch_api"], + "connections": [] + }, + "compatibleAgents": [], + "changelog": "v1.0.0: 初始版本,支持多维度语义匹配与推荐" +} diff --git a/skills/update-agent/skill.json b/skills/update-agent/skill.json new file mode 100644 index 0000000..f76d518 --- /dev/null +++ b/skills/update-agent/skill.json @@ -0,0 +1,27 @@ +{ + "id": "update-agent", + "name": "更新智能体", + "icon": "user-cog", + "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": "1.1.0", + "latestVersion": "1.1.0", + "updatedAt": "2026-02-17", + "maintainer": { + "name": "DesireCore Official", + "verified": true + }, + "downloads": 0, + "rating": 0, + "ratingCount": 0, + "installStatus": "not_installed", + "riskLevel": "high", + "requires": { + "tools": ["fetch_api"], + "connections": [] + }, + "compatibleAgents": [], + "changelog": "v1.1.0: 新增受保护路径检查与共享配置引用" +}