harbor-capability-discovery

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Use this skill when the agent needs to understand what Harbor capabilities are available before attempting an execution or approval-sensitive workflow.
当Agent需要在尝试执行或处理需要审批的工作流之前,了解Harbor有哪些可用功能时,请使用此技能。

Rules

规则

  • Use Harbor CLI or API only.
  • Never read Harbor's database directly.
  • Treat published capabilities as the only executable source of truth.
  • Summarize findings using capability, grant, approval, and execution terminology.
  • 仅允许使用Harbor CLI或API。
  • 禁止直接读取Harbor的数据库。
  • 将已发布的功能视为唯一可执行的可信来源。
  • 使用功能、授权、审批、执行相关术语总结结果。

Discovery loop

探索流程

  1. Confirm Harbor reachability and identity as needed with
    harbor status --plain
    and
    harbor auth whoami --plain
    .
  2. Run
    harbor ls --plain
    to list available published capabilities.
  3. If a target capability is known, inspect it with
    harbor inspect <capability> --plain
    .
  4. Distinguish capability discovery from grant state. Do not imply access just because a capability is listed.
  5. If the next workflow is blocked on grant or execution approval, surface the
    approval_id
    and tell the owner to run
    harbor approve <approvalId> --yes --plain
    .
  6. If a capability depends on owner-managed secrets, use
    harbor secrets ls --plain
    ,
    harbor secrets inspect <name> --plain
    , and
    harbor secrets set <name> --value <value> --plain
    .
  7. Summarize the relevant capabilities, grant blockers, secret blockers, and the next safe Harbor action.
See
references/discovery-flow.md
.
  1. 按需通过
    harbor status --plain
    harbor auth whoami --plain
    确认Harbor的可达性和身份信息。
  2. 运行
    harbor ls --plain
    列出所有已发布的可用功能。
  3. 如果已知目标功能,使用
    harbor inspect <capability> --plain
    查看其详情。
  4. 区分功能发现与授权状态,不要因为某个功能被列出就默认拥有访问权限。
  5. 如果后续工作流因授权或执行审批被阻塞,展示
    approval_id
    并告知所有者运行
    harbor approve <approvalId> --yes --plain
  6. 如果某个功能依赖所有者管理的密钥,使用
    harbor secrets ls --plain
    harbor secrets inspect <name> --plain
    harbor secrets set <name> --value <value> --plain
    命令处理。
  7. 总结相关功能、授权阻碍、密钥阻碍以及下一个安全的Harbor操作。
参见
references/discovery-flow.md