harbor-bootstrap-and-claim
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUse this skill when the agent needs to connect to Harbor for the first time, restore an existing identity, or confirm that Harbor is reachable before using capabilities.
当Agent需要首次连接Harbor、恢复现有身份,或在使用功能前确认Harbor可访问时,使用本技能。
Rules
Rules
- Use Harbor CLI or API only.
- Never read Harbor's database directly.
- Treat published capabilities as the only executable source of truth.
- If Harbor returns a pending approval, report the approval step and wait.
- After an approval is granted, rerun the same claim command so Harbor can auto-restore the approved agent session.
- 仅允许使用Harbor CLI或API。
- 严禁直接读取Harbor的数据库。
- 将已发布的功能视为唯一可执行的可信来源。
- 如果Harbor返回待审批状态,请上报审批步骤并等待。
- 审批通过后,重新运行相同的申领命令,以便Harbor可以自动恢复已审批的Agent会话。
Operator loop
Operator loop
- If the target profile is not installed yet, run from the Harbor repo.
bash scripts/install-profile.sh <api-url> --profile <profile> - Confirm or switch profiles with ,
harbor profile ls --plain, andharbor profile current --plain.harbor profile use <profile> - Check Harbor reachability with .
harbor status --plain - If owner bootstrap has not happened yet for the selected profile, direct the operator to the Harbor dashboard to sign in and bootstrap owner access.
- Claim or restore the agent with .
harbor auth claim --display-name '<name>' --plain - If the claim returns , report
status=approval_requiredandapproval_id, wait for the owner to approve in the dashboard, then rerunapproval_urlto auto-restore the approved agent.harbor auth claim --display-name '<name>' --plain - After claim or restore succeeds, verify identity with or
harbor auth whoami --plain.harbor auth whoami --json - Run and summarize available published capabilities using capability-first language.
harbor ls --plain
harbor auth claim --plainstatusagent_idprofileownerapproval_idapproval_urlharbor auth whoami --plainprofileowner_scope_idowneragent_idagent_nameSee .
references/claim-flow.md- 如果目标配置文件尚未安装,请在Harbor代码仓库中运行命令。
bash scripts/install-profile.sh <api-url> --profile <profile> - 使用、
harbor profile ls --plain和harbor profile current --plain命令确认或切换配置文件。harbor profile use <profile> - 使用命令检查Harbor的可访问性。
harbor status --plain - 如果所选配置文件尚未完成所有者初始化,请引导操作员前往Harbor仪表盘登录并初始化所有者权限。
- 使用命令申领或恢复Agent身份。
harbor auth claim --display-name '<name>' --plain - 如果申领返回,请上报
status=approval_required和approval_id,等待所有者在仪表盘中完成审批,之后重新运行approval_url命令自动恢复已审批的Agent。harbor auth claim --display-name '<name>' --plain - 申领或恢复成功后,使用或
harbor auth whoami --plain命令验证身份。harbor auth whoami --json - 运行命令,以功能优先的表述方式总结可用的已发布功能。
harbor ls --plain
harbor auth claim --plainstatusagent_idprofileownerapproval_idapproval_urlharbor auth whoami --plainprofileowner_scope_idowneragent_idagent_name请参考文档。
references/claim-flow.md