Community编程与开发github.com

Slack端到端测试

使用Convex租用的用户OAuth或QA机器人测试Slack;检查凭据、执行用户消息操作、验证Gateway行为,并区分API证据与真实Slack客户端交互。

Slack端到端测试 是什么?

该技能提供了一套完整的Slack端到端测试框架,支持两种主要模式:使用共享用户OAuth进行只读或轻度消息操作测试,以及利用现有QA Lab的Gateway lane进行深度Gateway行为验证。它通过Convex租用机制管理凭据池,无需代理直接接触Slack令牌。用户可通过`--smoke`标志创建、编辑、删除一条合成消息,而Gateway lane则允许测试原生生命周期、模型工具调用、配置重启等复杂场景。技能还严格界定了自动化证据与人工客户端观察的边界,例如API写入不等于Slack客户端渲染,从而确保测试结果的准确性。该技能设计用于CI/CD流水线,支持确定性模型和隔离的Gateway连接。

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

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

在你喜欢的 AI 中提问

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

文档

Slack 代理端到端测试

选择证明方式

目标入口点边界
检查共享用户 OAuth下方只读命令用户/工作区标识和频道历史记录;无需 Gateway
执行用户撰写的文本操作相同命令加 --smoke创建、读取、编辑、删除、验证消失;无 Gateway 回复声明
验证 OpenClaw 入口、回复、工具、文件或重启下方现有 QA Lab 测试通道租用的驱动/SUT 机器人以及隔离的 Gateway
验证真实点击、斜杠命令或渲染授权 Slack 客户端实际客户端观察,而非重建的 API 数据

从包含常规依赖和现有 Convex 登录的源码检出开始。如有需要,请求操作者运行 convex login 或缓存的 bunx --no-install convex login。代理提供授权池;代理无需复制 Slack 令牌。单靠登录无法补充缺失的池凭据或授予 Slack 权限。

用户 OAuth:无需 QA Lab 运行

node .agents/skills/slack-e2e/scripts/user-oauth-smoke.mjs
node .agents/skills/slack-e2e/scripts/user-oauth-smoke.mjs --smoke

默认模式为在 Slack 中只读;两种模式都获取、维持心跳并释放 Convex 租约。--smoke 会创建一条合成且未提及的顶级消息,检查存储的作者身份,编辑并删除该精确消息。现有的工作区监听者仍可观察到它。每条命令使用一个新的私有工件目录,并打印安全结果及其路径。

阅读用户 OAuth 设置与恢复了解池负载、权限、结果解释和故障处理。此技能拥有的命令重用现有租约辅助工具;它不更改任何 QA Lab 代码或发布通道,也不启动 Gateway 或模型。它不会向 qa slack 添加用户驱动选项。

现有 Gateway 测试通道

使用源码检出的 QA Lab 所有者进行 Gateway 验证,而不是单独的机器人运行器。一次运行拥有一对租用的驱动/SUT、一个临时 Gateway、原生夹具收据和私有工件。驱动没有 Socket Mode 连接:SUT Gateway 独占拥有应用令牌和事件传递。

  1. 使用上述现有 Convex 登录。命令行中不应包含 Slack 令牌、代理密钥、模型凭据、应用创建或作用域授权。

  2. 检查可用场景和运行就绪状态:

    pnpm openclaw qa slack --list-scenarios
    pnpm openclaw qa slack --doctor --output-dir .artifacts/qa-e2e/slack-doctor
    

    Doctor 检查实际租约:同一工作区中不同的机器人身份、两个机器人的频道访问权限、拥有的 Gateway 连接以及声明的 OAuth 作用域。已知缺失的作用域会失败并显示其参与者和确切名称。缺失作用域元数据意味着变异能力未验证,而非已授予。缺失的可选文件/反应作用域不会阻塞纯文本流程;它们会在分发前阻塞受影响的原生操作。Doctor 的完整生命周期能力判定仍与强制连接就绪状态分开。池/登录/权限失败是所有者的先决条件,而不是旋转凭据直到一个通过的借口。每次后续运行都会检查自己的租约。

  3. 运行原生生命周期配置:

    pnpm openclaw qa slack \
      --scenario-file qa/scenarios/channels/slack-e2e-lifecycle.yaml \
      --output-dir .artifacts/qa-e2e/slack-lifecycle
    

    --doctor 和 --scenario-file 默认使用 Convex、CI 角色和 mock-openai。这是使用确定性模型的真实 Slack/Gateway 传输。显式覆盖仍可用;普通的精心策划的 qa slack 默认值不变。每次运行使用唯一的输出目录。额外的 --scenario-file 参数选择额外的完整 YAML 场景。

  4. 在声称成功之前阅读摘要、证据和清理结果。选择功能配置以获取原生操作或模型工具证据,以及运行时配置以获取配置/重启、自定义流程、取消、工件和恢复。

证据边界

表面自动化证明的内容
提及/静默入站、拥有的编辑/删除、反应、上传、线程回复夹具/API 操作和显式存储回读;而非模型工具调用
关联的 SUT 回复入站后租用 SUT 的存储回复;必须指定模拟或真实模型
Gateway 调试代理捕获Slack 接受了 Gateway API 写入;既不是 Socket Mode 事件传递也不是渲染
Block Kit、文件 ID、反应状态仅存储结构和标识
人工斜杠调用、真实按钮点击、代理视图、可见渲染、人工键入手动/Mantis 客户端通道;机器人/API 证据不足

对于视觉或人类交互请求,请使用已授权并登录的 Slack 客户端;维护的 Mantis 工作流程位于 docs/concepts/qa-e2e-automation/operator-flow.md。检查它实际捕获了哪个表面:--approval-checkpoints 渲染 API 消息数据,而非 Slack 客户端。Slack 登录截图不能证明工作区操作。将检查后的客户端截图与原生证据一起保存。通过 API 发布斜杠文本不是斜杠调用;Gateway 批准 RPC 不是按钮点击。不要从代理状态推断输入,也不要使用 SUT 应用令牌启动另一个 Socket Mode 记录器。

完成

报告场景/模型通道、存储的原生标识或安全计数、工件路径、清理结果、缺失的权限以及任何仅手动的差距。保持原始 Gateway 捕获、频道 ID、消息、媒体和租约材料私有;仅发布清理后的证据。成功的 API 响应但存储回读失败、发送不明确或清理失败不是端到端通过。

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.

相关技能