跳转至

扩展 Skill Specs

本指南把 contributors 路由到拥有 skill truth 的 catalog、projection code、shared contract 和公开 deploy owner,而不是把 slot schema、template、timeout value 或 generated projection 复制进正式文档。

何时使用

在编辑 skill catalog 内容、projection code、worker profile allowlist、planner-facing skill card,或验证 skill projection 的确定性检查之前,使用本页。本页说明 flow 中每个部分由哪个 权威拥有;它不是 schema source。

开始之前

先阅读 packages/skill_specs/README.md 和 docs/adr/0008-authored-skill-specs-authority.md。然后判断当前变更是 catalog authoring、 projection behavior、contract shape、worker capability selection、scenario authoring、 private MCP implementation coverage,还是 verification coverage。如果变更是从新 scenario 开始,先阅读 Scenario Authoring Guide;只有当该 scenario 需要新的语义 skill 或 worker capability declaration 时,再回到本页。

Catalog authoring 时创建或更新一个 Agent Skills package directory。公开 discovery 文字放在 SKILL.md.description,OMEGA typed fields 放在 references/omega-skill.yaml,真正渲染的自然语言执行短语放在 sidecar instruction_template。

步骤

  1. Catalog 变更从 packages/skill_specs/README.md、 packages/skill_specs/catalog_manifest.json 或 packages/skill_specs/skills/ 下的 Agent Skills package 开始, 取决于变更类型。
  2. 保持 authored package 严格:SKILL.md.name 必须匹配 package directory name, metadata.omega-skill-id 必须匹配 manifest skill_id 和 sidecar id, metadata.omega-contract 应指向 references/omega-skill.yaml。
  3. Catalog parsing 和 public projection behavior 变更通过 packages/skill_specs/src/omega_skill_specs/ 处理,因为 PlannerSkillCard.description、 WorkerSkillCapability、runtime constraint 和 public worker capability snapshot 都是 omega_skill_specs 拥有的 derived view。
  4. Shared payload-shape 变更先通过 packages/contracts/,再更新 projection code。
  5. Worker support 变更通过 topology/profile authority 处理;public worker profile 暴露 语义 skill_allowlist,worker discovery 可以声明 supported catalog skill,但不能重新 定义 catalog 语义。
  6. Private implementation coverage 留在 worker 边界下方。Skill spec 保持 semantic: 它们不拥有私有 implementation identifier、operational selector、credential、runtime asset 或 hardware detail。
  7. 通过 docs/components/skill-specs.md 中命名的 contract、catalog、topology 和 deploy owner 验证。

常见错误

错误做法 正确权威
手写更新 planner card,把它当成 skill truth。 更新 authored catalog 和 projection code,让 card 保持 derived。
把 slot 或 timeout 细节复制进正式文档。 链接到 packages/skill_specs/README.md 和 source file。
通过复制 skill schema 或测试来添加新 scenario。 使用 Scenario Authoring Guide,只有新增 semantic capability 时才编辑 skill spec。
把 worker discovery 当成 schema ownership。 Worker discovery 声明 executable capability;authored catalog 拥有 skill 语义。
没有 contract review 就改变 projection payload shape。 从 packages/contracts/ 开始,再更新 projection 和测试。
把长 natural-language trigger phrase 写进 skill_id。 保持 ID 稳定,把渲染短语放进 instruction_template。
添加 sidecar summary 或 sidecar description。 Public discovery text 只放在 SKILL.md.description。
把私有 implementation detail 放进 authored catalog。 Public capability 保留在 skill_allowlist;implementation binding 留在 worker 边界下方。

验证

Skill-spec 声明由 docs/components/skill-specs.md 中列出的 contract、catalog、topology 和 deploy owner 验证,包括 catalog validation、discovery projection 和 topology/profile skill-allowlist checks,以及 private MCP config compatibility check。当本指南能路由到这些 owner,且没有成为 第二个 catalog 或发布私有 MCP config body 时,它才是有效的。

精确命令权威

精确 extension 和 verification commands 保留在 owning package README 或 deploy runbook 中。 本页识别权威与验证 owner,但不拥有命令正文。

当前状态

本页适用于当前工程预览实现。packages/skill_specs/README.md 拥有 semantic catalog policy,packages/skill_specs/src/omega_skill_specs/ 拥有 Agent Skills package loading 和 public projection,deploy/topology/profiles/workers.yaml 拥有 public skill_allowlist capability set,packages/contracts/ 拥有 PlannerSkillCard.description、WorkerSkillCapability、worker discovery 和 runtime constraint 使用的 shared Pydantic shape。Private implementation compatibility 保留在 worker boundary 下。orchestrator 仍只 dispatch 选定 task_graph 中分配好的 TaskNode;worker 不发明新的 mission 步骤,也不把 projection artifact 当成独立权威。

当前 kitchen 示例使用 lift2.manipulation.assemble_sandwich 作为一个 generalized public skill, 并使用 lift2.manipulation.load_dish_for_heating 作为 no-slot public skill。历史 replacement wording 属于 phase history 或 ADR context,不写进 example public skill spec。

权威来源

关注点 拥有权威
Catalog policy packages/skill_specs/README.md
Catalog membership 与 authored package file packages/skill_specs/catalog_manifest.json, packages/skill_specs/skills/**/SKILL.md, packages/skill_specs/skills/**/references/omega-skill.yaml
Skill projection code packages/skill_specs/src/omega_skill_specs/catalog.py, packages/skill_specs/src/omega_skill_specs/projections.py
Worker profile allowlist validation packages/deploy_config/src/omega_deploy_config/resolver.py
Shared skill projection model packages/contracts/
Scenario authoring route docs/guides/add-scenario.md
Public worker capability set deploy/topology/profiles/workers.yaml
Private implementation coverage A2A worker 边界下方的 worker-private configuration
Component map docs/components/skill-specs.md
保留的架构决策 docs/adr/0008-authored-skill-specs-authority.md

相关页面

页面 关系
Scenario Authoring Guide Skill 变更前的源码拥有 scenario 扩展路径。
docs/components/skill-specs.md authored spec 与 projection 的 component responsibility map。
docs/components/contracts.md skill projection payload 的 shared model authority。
docs/components/deploy-config.md deploy-neutral topology/settings responsibility 及其与 catalog-backed projection 的边界。
docs/reference/contracts-index.md contract family retrieval index。
docs/adr/0008-authored-skill-specs-authority.md 保留 authored skill authority 的 durable decision。