SuperAPI AI 工具集

generate-manifest

编程与开发

查看项目

更新于 10-15 21:53

技能介绍

用途:扫描某个 ADK recipe 目录,按 .github/schemas/manifest-schema.json 生成 manifest.yaml,并运行校验器验证。

主要能力与推断规则:读取 pyproject.toml/requirements.txt 判断 language;读入口文件判断 type(standalone 或 module,需有可运行入口才算 standalone);读 Makefile 判断 deployable;读 app/ 源码判断架构状态与数据源;description 仅据 README.md 与 AGENTS.md 起草,最多 15 词并追加 TODO 注释;dependencies 与 tags 整块注释保留、不做推断;ownership.team 与 ownership.poc 固定使用占位字符串,license 仅在明确声明时填写 SPDX 标识,status 默认 active。

使用方式:用户提供相对仓库根的 recipe 路径(如 core/python/my-recipe、plugins/retail/store-ops)。先说明每项推断依据的文件与行,再写入 manifest.yaml,然后在仓库根运行:uv run validate manifest <recipe-path>。注意不要 cd 进 tools/,也不要传 --active,路径必须是相对路径。

限制:ownership 两个占位符导致的校验失败是预期结果,不应编造团队名或 GitHub ID;正确生成的 manifest 仍会显示 FAIL,但只出现在这两项。不得修改仓库其他文件,也不提交改动。描述、依赖与标签需人工补充。