You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: 上传百炼/魔搭 Skill 时,缺 slug 且 name 为展示名会 400,前端只提示「请求参数错误」 #1073
Activity
xerrors commentedon Sep 25, 2026
当前公开的 Skill 格式要求
name和description;slug可省略,但省略时直接使用name作为机器 ID,所以name: PRD to Prototype或中文展示名且没有slug会按现行规则校验失败。可在SKILL.md保留展示名,并显式加入独立 slug,例如slug: prd-to-prototype。详见管理 Skills。我核对了当前上传实现:导入流程只读取
SKILL.mdfrontmatter,没有把_meta.json中的 slug 映射回 frontmatter;直接兼容商店包需另行支持。前端目前将此类 HTTP 400 统一显示为“请求参数错误”,更具体的安全错误提示也需要实现层修改。以上先说明当前文档支持的格式与可用办法。--- AI 自动回复