Skip to content

[Feature] 增强预发布校验与 publish --dry-run 功能 #429

@AIZY2025

Description

@AIZY2025

Problem

目前的 BasicPrePublishValidator 仅在服务端上传后校验敏感信息,开发者无法在本地获知包结构或元数据是否合法。

Proposed Solution

为 skillhub publish 增加 --dry-run 选项,调用后端新增的“仅校验”接口。
扩展 PrePublishValidator 校验链,包含:
SKILL.md 必需字段(name, description)及格式校验。
文件后缀白名单与大小限制(提前到校验期提示)。
校验 SKILL.md 中定义的 name 是否与发布路径/Slug 冲突。
报错信息需精准定位到行号或具体文件,提升修复效率。

Alternatives Considered

No response

Impact

No response

Contract Or SDK Impact

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/l大改动或高风险改动,需要 maintainer 负责 / Large or risky change requiring maintainer ownership.enhancementNew feature or requestpriority/p3低优先级 / Low priority triage bucket.triage/deferred暂留 backlog,由自动化定期重新评分 / Issue stays in backlog and is rescored by automation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions