mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-07-23 03:43:43 +08:00
fix(skills): 禁止自动注入完整技能内容 (#49)
## Summary - 将 dashscope-image-gen、image-to-image、markdown、tech-diagram、xiaomi-tts 改为仅按需加载,并递增 patch 版本 - 在 Market validator 与 JSON Schema 中禁止 `disable-model-invocation: false` - 将回归测试接入 `i18n Validate`,同步中英文技能编写规范 ## Root cause and impact 这 5 个技能在首次引入时即声明 `disable-model-invocation: false`,导致完整技能正文进入普通请求的 system prompt。修改后市场技能只能声明 `true` 或省略该字段,完整内容仅在显式调用 Skill 工具后加载。 ## Validation - `uv run --quiet scripts/i18n/test_validate_i18n.py` - `uv run --quiet scripts/i18n/validate-i18n.py` - `uv run --quiet scripts/i18n/translate.py --check` - `python3 -m json.tool scripts/i18n/schema/skill-frontmatter.schema.json` - `actionlint .github/workflows/i18n-validate.yml` - `git diff --check`
This commit is contained in:
@@ -48,7 +48,10 @@
|
||||
"enum": ["enabled", "disabled", "deprecated", "experimental"]
|
||||
},
|
||||
"disable-model-invocation": {
|
||||
"type": "boolean"
|
||||
"description": "Must be true or omitted. Market skills may only load their full instructions on demand; automatic full-content injection is prohibited.",
|
||||
"type": "boolean",
|
||||
"const": true,
|
||||
"default": true
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
|
||||
Reference in New Issue
Block a user