mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-06-06 09:30:42 +08:00
fix: 修复 desirecore PR #533 Copilot 评审反馈的 7 项内容问题
[desirecore PR #533](https://github.com/desirecore/desirecore/pull/533) 把 market 全局技能快照同步到主仓库,Copilot 自动评审命中 7 处文档与代码 不一致问题,全部根因在 market 的 skill 文档;本 PR 在源头修复,让下次 sync-global-skills 自然带过去。 修复内容: 1. disable-model-invocation 语义描述反向(3 处文件 × 2 语言 = 5 处编辑) - skill-creator/SKILL.md (en-US) - skill-creator/SKILL.zh-CN.md - manage-skills/SKILL.md (en-US) - manage-skills/SKILL.zh-CN.md - 注:references/desirecore-format.md 已在 PR #1 解冲突时一并修好 实际代码逻辑(lib/agent-service/skills/parser.ts):只有显式 `disable-model-invocation: false` 才会被加入 system prompt 自动加载列表, `true` 或缺省都会跳过自动注入、需显式 Skill 工具调用。文档原描述把这两个 值的语义对调了,且错误地宣称存在 L0/L1 vs L0+L1+L2 的"分层加载机制" (runtime 不区分这三个层级,加载就是整篇 SKILL.md)。 2. dev-environment-setup/references/probe-snapshot.md 协议字段类型 / 超时承诺 - desirecore_port_file: string → boolean(probe.sh 输出 ${PORT_FILE_EXISTS} 原生 bool;probe.ps1 输出 PowerShell bool;JSON 序列化均为 true/false) - "CLI 调用最长 5s" → "CLI 调用依赖工具自身实现,无显式 timeout 包装, 正常情况通常 <5s 完成"(HTTP probe 确有 0.5s/1s timeout,但 --version 这类 CLI 没有 timeout 5s 包装,文档原文承诺超出实现) 3. minimax-music-gen 使用过时的 provider 字段(应为 providerId) - skills/minimax-music-gen/SKILL.md(3 处) - skills/minimax-music-gen/SKILL.zh-CN.md(3 处) - 与 sibling minimax-tts/image-gen/video-gen 对齐,使用 `"providerId": "provider-minimax-media-001"`,避免 media-proxy 路由到 coding/token plan 等同名 provider 版本与日期: - skill-creator: 1.0.1 → 1.0.2 - manage-skills: 1.0.2 → 1.0.3 - dev-environment-setup: 2.0.1 → 2.0.2 - minimax-music-gen: 1.1.1 → 1.1.2 - 上述 4 个 SKILL.md 的 metadata.updated_at 与 manifest.json#stats.lastUpdated 统一为 2026-05-05 i18n 处理: 按 PR #1 修复模式(commit 2a21e8e),同步编辑英文源(SKILL.md = en-US default) 与中文翻译(SKILL.zh-CN.md = source),不动 metadata.i18n.<locale>.source_hash / translated_at 字段(CI translate.py 维护)。
This commit is contained in:
@@ -4,7 +4,7 @@ description: >-
|
||||
管理 Agent 的技能生命周期:通过 HTTP API 导入、安装、更新、删除技能,
|
||||
或通过 AgentFS 文件系统直接编写符合规范的 SKILL.md。Use when 用户要求
|
||||
安装技能、从 URL/Git 导入技能、编写新技能、或管理已有技能。
|
||||
version: 1.0.2
|
||||
version: 1.0.3
|
||||
type: meta
|
||||
risk_level: low
|
||||
status: enabled
|
||||
@@ -17,7 +17,7 @@ tags:
|
||||
- agentfs
|
||||
metadata:
|
||||
author: desirecore
|
||||
updated_at: '2026-03-03'
|
||||
updated_at: '2026-05-05'
|
||||
i18n:
|
||||
default_locale: en-US
|
||||
source_locale: zh-CN
|
||||
@@ -508,7 +508,7 @@ covering completed items, to-dos, and important decisions.
|
||||
| `risk_level` | Recommended | enum | `low` / `medium` / `high` |
|
||||
| `status` | Recommended | enum | `enabled` / `disabled` |
|
||||
| `tags` | Optional | string[] | List of tags, used for search and categorization |
|
||||
| `disable-model-invocation` | Optional | boolean | `true` = L0+L1 auto-injected into the system prompt; `false` = full L0+L1+L2 content injected; default `true` |
|
||||
| `disable-model-invocation` | Optional | boolean | `false` = opt-in auto-injection of full content into the system prompt; `true` (or omitted) = no auto-injection, only loaded when explicitly invoked via the Skill tool; default `true` |
|
||||
| `requires` | Optional | object | Dependency declaration: `tools`, `optional_tools`, `connections` |
|
||||
| `metadata` | Optional | object | Meta information: `author`, `updated_at` |
|
||||
| `market` | Optional | object | Market display metadata (only required for Skills published to the Market) |
|
||||
|
||||
@@ -447,7 +447,7 @@ metadata:
|
||||
| `risk_level` | 推荐 | enum | `low` / `medium` / `high` |
|
||||
| `status` | 推荐 | enum | `enabled` / `disabled` |
|
||||
| `tags` | 可选 | string[] | 标签列表,用于搜索和分类 |
|
||||
| `disable-model-invocation` | 可选 | boolean | `true`=L0+L1 自动注入 system prompt;`false`=L0+L1+L2 完整内容注入;默认 `true` |
|
||||
| `disable-model-invocation` | 可选 | boolean | `false`=opt-in 自动注入完整内容到 system prompt;`true` 或缺省=不自动注入,仅显式 Skill 工具调用时才加载;默认 `true` |
|
||||
| `requires` | 可选 | object | 依赖声明:`tools`、`optional_tools`、`connections` |
|
||||
| `metadata` | 可选 | object | 元信息:`author`、`updated_at` |
|
||||
| `market` | 可选 | object | 市场展示元数据(仅市场发布的技能需要) |
|
||||
|
||||
Reference in New Issue
Block a user