Community编程与开发github.com

OpenClaw Docker E2E 编写

用于编写 OpenClaw Docker 端到端测试以及实时提供商 Docker 通道。

OpenClaw Docker E2E 编写 是什么?

该技能专为 OpenClaw 项目设计,用于编写和修改 Docker 端到端(E2E)测试通道、发布路径 Docker 测试以及实时提供商 Docker 验证。它通过提供明确的通道选择规则(确定性 Docker vs 实时 Docker)和详细的编写规范,帮助开发者高效、安全地构建测试。技能支持 Claude Code、Cursor 等 AI 编码助手,要求测试辅助代码放置在正确目录、镜像服务器记录边界请求为 JSONL、客户端断言真实依赖负载而非仅过程成功。同时强调媒体与视觉测试中预期答案仅存在于像素或提供商输出中,并随机化答案以验证真实理解。最后提供了完整的验证步骤,包括代码格式化、语法检查、单元测试和通道运行,确保变更质量。

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

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

在你喜欢的 AI 中提问

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

文档

OpenClaw Docker E2E 编写 是做什么的?

在添加或修改 Docker E2E 通道、发布路径 Docker 测试或实时提供商 Docker 验证时使用此技能。

通道选择

  • 确定性 Docker:模拟依赖/服务器,断言跨越边界的精确运行时合约。
  • 实时 Docker:仅当用户可见行为需要真实服务时,才使用真实提供商凭证/模型。
  • 当两者能证明不同风险时优先使用两者:确定性用于字节/负载路由,实时用于实际提供商行为。

编写规则

  • 仅用于测试的辅助函数位于 test/helpers 或 scripts/e2e/lib/<lane>/ 中,而非 src/**,除非生产代码导入了它们。
  • 通过包安装的应用从 /app 运行;仅挂载显式的 harness/helper 路径为只读。
  • 模拟服务器应将边界请求记录为 JSONL,客户端应断言真实依赖负载,而不仅仅是处理成功。
  • 在同一变更中添加包脚本和 scripts/lib/docker-e2e-scenarios.mts 通道。
  • 如果通道从 npm 安装插件,通过环境变量默认指定版本,以便已发布和本地覆盖路径都可测试。

媒体与视觉

  • 预期答案必须仅存在于正在测试的像素或提供商输出中。
  • 使用中性文件名、中性提示词,避免元数据泄漏。
  • 随机位图/OCR 令牌重用仓库 OCR 安全字母表 24567ACEF,除非测试拥有更强的字形集。
  • 当需要证明真实图像理解时,使每个运行的预期答案唯一。

chat.send 端到端测试

  • 要求 chat.send 返回 status: "started" 和一个字符串 runId。
  • 使用 agent.wait 等待完成。
  • 当事件顺序非测试行为时,通过 chat.history 断言最终用户可见文本。
  • 仅当错误路径需要排队入站/通道上下文时,才保留原始通道/账户元数据。

验证

运行覆盖所修改通道的最小验证:

pnpm exec oxfmt --write <changed files>
node --check <new .mjs files>
bash -n <new .sh files>
node scripts/run-vitest.mjs test/scripts/docker-e2e-plan.test.ts
OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:<lane>

对于实时提供商通道,在确定性 Docker 通过后运行匹配的实时 Docker 脚本。在提交/PR 前以 $autoreview 结束。

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.

相关技能