Skip to content

Canary 探针(skill + command) #62

Description

@MatthewYe

Parent

#60 — 插件安装自检命令 /toolbox-lint

What to build

创建两个 Canary 探针文件,用于运行时验证 skill 路径注册和 command 注册通道是否正常。

Canary skill

文件:skills/_toolbox-canary/SKILL.md

---
name: _toolbox-canarydescription: Internal canary for verifying toolbox skill path registration. Returns a fixed signature when loaded.
---
CANARY_OK: toolbox skill registration verified

Canary command

文件:commands/_toolbox-canary.md

---
description: Internal canary for verifying toolbox command registration. Returns a fixed signature when invoked.
---
CANARY_OK: toolbox command registration verified

两个探针的行为:

  • Canary skill 被 skill 工具加载后,返回固定签名 CANARY_OK: toolbox skill registration verified
  • Canary command 被调用后,输出固定签名 CANARY_OK: toolbox command registration verified
  • 无其他副作用,仅用于 /toolbox-lint 的 L3 功能冒烟检查

Acceptance criteria

  • skills/_toolbox-canary/SKILL.md 存在,有有效的 YAML frontmatter(namedescription
  • commands/_toolbox-canary.md 存在,有有效的 YAML frontmatter(description
  • 插件加载后,canary skill 在 OpenCode 中可被发现和加载(通过 skill 路径注册)
  • 插件加载后,canary command 可被调用(通过 command 注册)
  • Canary skill 加载后返回固定签名文本
  • Canary command 调用后输出固定签名文本
  • Canary 文件不影响其他 skill/command 的正常功能
  • Canary skill 路径随 skills/ 目录一起被注册(无需额外代码改动,skills/ 已整体注册)

Blocked by

None — can start immediately

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolvedAutopilot has resolved this issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions