Community编程与开发github.com

OpenClaw 发布持续集成

运行、监控、调试并总结 OpenClaw 完整发布 CI,包括发布检查、实时提供商门控、安装/更新验证以及发布密钥预检。

OpenClaw 发布持续集成 是什么?

OpenClaw 发布 CI 技能旨在帮助发布维护者高效验证候选版本。它封装了完整的发布验证流程,包括预检、触发、监控和失败分类。该技能通过专用脚本(如 verify-provider-secrets.mjs 和 release-ci-summary.mjs)自动执行关键任务,并遵循严格的护栏规则,例如未经明确批准不得升级版本或分发发布,以及在触发昂贵的完整发布矩阵前必须验证提供商密钥。它支持通过 gh CLI 触发工作流,并指导用户监控父运行和子运行状态,仅在必要时获取失败任务的日志,以避免 REST API 配额耗尽。该技能适用于 Claude Code 或其他兼容的 AI 代理平台,帮助用户快速准确地诊断 CI 失败,区分代码错误与提供商问题,并记录证据以供后续参考。

兼容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/.agents/skills/openclaw-release-ci

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

OpenClaw 发布持续集成 是做什么的?

配合 $openclaw-release-maintainer 和 $openclaw-testing 使用,当候选版本需要完整验证、安装/更新证明、实时提供商检查或 CI 恢复时。

护栏规则

  • 未经操作员明确批准,不得进行版本升级、打标签、npm 发布、GitHub 发布或发布升级。
  • 在触发昂贵的完整发布矩阵之前,先验证提供商密钥。
  • 不要从未经验证的 1Password 候选值中设置 GitHub 密钥。如果候选值返回 401/403,保留现有密钥不变,并报告确切缺失的提供商。
  • 使用 $one-password 进行密钥读写:一个持久的 tmux 会话,仅限目标条目,不输出密钥内容。
  • 监控一个父运行及紧凑的子运行摘要。避免广泛的 gh run view 轮询循环;REST 配额容易耗尽。
  • 仅获取失败或当前阻塞任务的日志。如果配额低,停止轮询并等待重置。
  • 将实时提供商的偶然故障与代码失败区分开:在编辑代码之前,证明密钥有效性、提供商 HTTP 状态、重试证据以及确切失败的通道。

预检

在完整发布验证之前:

node .agents/skills/openclaw-release-ci/scripts/verify-provider-secrets.mjs --required openai,anthropic,fireworks
gh api rate_limit --jq '.resources.core'
git status --short --branch
git rev-parse HEAD

1Password 服务账号的值是发布提供商预检的首要来源。先注入这些确切的目标密钥,然后运行验证器;仅在环境变量已为此发布有意注入时才使用环境变量。该脚本仅打印提供商状态和 HTTP 类,绝不打印令牌。

触发

优先在 main 分支上使用可信工作流,目标设置为确切的发布 SHA:

gh workflow run full-release-validation.yml \
  --repo openclaw/openclaw \
  --ref main \
  -f ref=<release-sha> \
  -f provider=openai \
  -f mode=both \
  -f release_profile=full \
  -f rerun_group=all

除非操作员明确要求广泛的建议提供商/媒体矩阵,否则使用 release_profile=stable。在针对性修复后,使用狭窄的 rerun_group。

监控

使用摘要助手,而不是重复的原始轮询:

node .agents/skills/openclaw-release-ci/scripts/release-ci-summary.mjs <full-release-run-id>

然后仅在有用时监控:

gh run watch <full-release-run-id> --repo openclaw/openclaw --exit-status

在结束回合或切换策略前停止监控。

失败分类

  1. 确认父运行 SHA 和子运行 ID。
  2. 仅列出失败的任务:
    gh run view <child-run-id> --repo openclaw/openclaw --json jobs \
      --jq '.jobs[] | select(.conclusion=="failure" or .conclusion=="timed_out" or .conclusion=="cancelled") | [.databaseId,.name,.conclusion,.url] | @tsv'
    
  3. 获取一个失败任务的日志。如果遇到速率限制,记下重置时间并避免更多 REST 调用。
  4. 对于看起来是密钥相关的失败,在编辑代码前从相同的密钥源验证提供商端点。
  5. 对于实时缓存失败,检查是密钥缺失/无效、文本为空、提供商拒绝、超时还是基线缺失。在没有明确提供商证据的情况下,不要减弱发布门控。
  6. 进行窄范围修复,运行本地/变更证明,提交,推送,重新运行最小匹配组。

证据

记录:

  • 发布 SHA
  • 完整父运行 URL
  • 子运行 ID 和结论:CI、发布检查、插件预发布、NPM Telegram
  • 目标本地证明命令
  • 提供商密钥预检结果
  • 已知差距或无关失败

关于经验教训和恢复模式,请阅读 references/release-ci-notes.md。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相关技能