harbor-sandbox-operator-loop
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUse this skill when the agent needs to execute a Harbor capability, handle grant/approval gates, or manage the execution lifecycle.
当Agent需要执行Harbor能力、处理授权/审批关卡或者管理执行生命周期时使用本技能。
Rules
规则
- Use Harbor CLI or API only.
- Never bypass Harbor by calling backing providers directly.
- Treat published capabilities as the only executable source of truth.
- If Harbor requires a grant or execution approval, explain the pending step and wait.
- Use capability-first language: capability, grant, approval, execution. Not provider, connector, tool.
- 仅使用Harbor CLI或API。
- 永远不要直接调用底层提供商来绕过Harbor。
- 将已发布的能力视为唯一可执行的可信来源。
- 如果Harbor需要授权或执行审批,说明待处理步骤并等待。
- 使用「能力优先」的术语:capability、grant、approval、execution。不要使用provider、connector、tool这类表述。
Execution loop
执行循环
- Confirm identity and reachability: and
harbor auth whoami --plain.harbor status --plain - List available capabilities: .
harbor ls --plain - Inspect the target capability: .
harbor inspect <capability> --plain - Check the capability state:
- — execute directly.
ready - — a grant is needed. Execute to trigger the grant request, report the
approval_required, tell the user to approve atapproval_id, then retry.https://dash.tryharbor.ai/approvals - — the capability needs owner-managed secrets. Use
secret_missingto check, thenharbor secrets ls --plainto provide them. Or tell the user to set them in the dashboard.harbor secrets set <name> --value <value> --plain
- Execute the capability: .
harbor <capability-slug> --<arg> <value> --plain - If the execution returns , report the
approval_requiredand wait for the user to approve.approval_id - After approval, retry the execution.
- 确认身份与可达性:和
harbor auth whoami --plain。harbor status --plain - 列出可用能力:。
harbor ls --plain - 检查目标能力详情:。
harbor inspect <capability> --plain - 检查能力状态:
- — 直接执行。
ready - — 需要授权。执行以触发授权请求,上报
approval_required,告知用户前往approval_id完成审批,随后重试。https://dash.tryharbor.ai/approvals - — 该能力需要所有者管理的密钥。使用
secret_missing检查,然后通过harbor secrets ls --plain提供密钥,或者告知用户在控制面板中配置。harbor secrets set <name> --value <value> --plain
- 执行能力:。
harbor <capability-slug> --<arg> <value> --plain - 如果执行返回,上报
approval_required并等待用户审批。approval_id - 审批通过后重试执行。
Secret management
密钥管理
- List secrets:
harbor secrets ls --plain - Inspect:
harbor secrets inspect <name> --plain - Set:
harbor secrets set <name> --value <value> --plain - Delete:
harbor secrets delete <name> --plain
- 列出密钥:
harbor secrets ls --plain - 查看详情:
harbor secrets inspect <name> --plain - 设置:
harbor secrets set <name> --value <value> --plain - 删除:
harbor secrets delete <name> --plain
Historical note
历史说明
The old , , and commands are deprecated. is the closest published compute capability. Run to see current capabilities.
sandbox.runsandbox.statussandbox.logscompute.modalharbor ls --plainSee .
references/sandbox-loop.md旧的、和命令已弃用。是最接近的已发布计算能力。运行查看当前可用能力。
sandbox.runsandbox.statussandbox.logscompute.modalharbor ls --plain见。
references/sandbox-loop.md