Comet any

From cocoyes/zhizhi-agent-runtime · View interactive version

Comet any is an AI agent skill from the GitHub repository cocoyes/zhizhi-agent-runtime. 通过 Comet Creator 创建或升级 Comet Classic workflow Skill。不用于一般 Skill 的编写、整理或评审。

How to use this skill

Skill file

Comet Any - Skill Creator

/comet-any 是 Comet 的 Skill 创建向导。用户只需要描述想要的工作流;本 Skill 负责读取真实 Skill、提出方案、等待确认、生成可验证的 Comet-native Skill Bundle,并通过内部 CLI 完成 eval、review、publish readiness 和安装预览。

普通用户第一层只看到三种起点:

后端 Bundle、Factory、composition 仍是内部审计词;不要把它们作为普通用户的第一屏概念。

核心模型

所有路径都必须编译到同一种 Workflow Contract:

受保护边界

comet-five-phase-overlay 保留 Comet Classic 五阶段主流程和 .comet.yaml 状态语义。普通模式下:

工作步骤

  1. 恢复现有状态:先运行 comet creator guide --project . --json,展示恢复摘要和下一步。
  2. 读取项目偏好:读取 .comet/skill-preferences.yaml,用 comet creator candidates --json 发现真实本地 Skill,再用 comet skill show <name> --json 读取候选的真实内容与 hash。不得只按名字推测能力。
  3. 生成方案:把用户目标表达为 Workflow Nodes、Skill Bindings、Output Schemas、Guardrails、Handoffs 和 Evidence。
  4. 展示确认页:说明每个 Node 的职责、绑定 Skill、Required Skill Call、Output Schema、可执行披露和 readiness 影响。确认页必须为每个新增 binding 或 schema 显示 enforcement:guarded、handoff-guarded、evidence-only 或 advisory。
  5. 等待用户确认:未确认前不得写 Bundle draft;存在 missing / ambiguous Skill 时必须暂停。
  6. 初始化后端状态:确认后调用 comet creator init <name> --file <plan.json> --confirmed-proposal --json。
  7. 运行创作管线并生成 Bundle:先运行 comet creator authoring-plan <name> --depth quick|full --json 取得 lane DAG。按 DAG 派发 lane——wave1(script、reference、pause-points)并发派发,wave2(workflow-entry、skill-core)在 script 契约之后并发派发,skill-review 作为汇聚 barrier。每个 lane 的产出用 comet creator authoring-record <name> --lane <id> --file <out.json> --json 记录(经 schema 校验;BLOCKED/NEEDS_CONTEXT 会被拒绝)。随后运行 comet creator generate <name> --json:把记录的内容叶子草稿(entry/node SKILL.md、decision-points、recovery)合并进包,而确定性脊梁(protocol/scripts/manifest)保持模板化,并渲染真实审查证据。产出 entry Skill、Node Skills、reference/workflow-protocol.json、六个 scripts、rules、hooks 与 comet/eval.yaml。
  8. 验证:展示 quick/full eval 工作量,运行或记录当前 draft hash 的 eval evidence;失败、skip 或证据 hash 过期时不得进入 ready。
  9. Review / readiness:读取 comet publish review <name> --platform <reference-platform> --json,展示 Readiness:、Blockers:、Warnings:、Evidence:。
  10. Publish / install preview:人工批准后才能 publish;安装前必须先运行 preview,并展示 No files were written。

方案示例

组件库和白盒审查场景应生成类似 plan:

{
  "goal": "基于 /comet-classic 的五阶段定制,要求组件库和白盒审查。",
  "skillCreatorIntent": "customize-comet",
  "workflow": {
    "kind": "comet-five-phase-overlay",
    "name": "team-comet",
    "goal": "要求组件库和白盒审查。",
    "nodes": {
      "execute": {
        "requiredSkillCalls": [
          {
            "skill": "elementui",
            "reason": "Use project component library during direct implementation."
          }
        ]
      },
      "subagent-execute": {
        "requiredSkillCalls": [
          {
            "skill": "elementui",
            "scope": "handoff"
          }
        ]
      },
      "review": {
        "requiredSkillCalls": [
          {
            "skill": "whitebox-code-standard",
            "scope": "review"
          }
        ]
      }
    }
  }
}

硬性规则

参考资料

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.