Community程式設計與開發github.com

slack-e2e

使用 Convex 租賃的使用者 OAuth 或 QA 機器人測試 Slack;檢查憑證、操作擁有的訊息、證明 Gateway 行為,並區分 API 證據與真實 Slack 用戶端互動。

slack-e2e 是什麼?

這個技能提供一套完整的端到端 (E2E) 測試框架,用於驗證 Slack 整合的各個面向。它支援兩種主要模式:一種是基於使用者 OAuth 的唯讀或煙霧測試模式,用於驗證憑證和基本訊息生命週期(建立、編輯、刪除),而無需完整的 QA 實驗室設定;另一種是使用隔離的 Gateway 和租賃的驅動程式/受測系統機器人配對的進階測試模式,用於證明 OpenClaw 的入站事件處理、回覆、工具使用、檔案上傳等功能。該技能專注於建立明確的證據邊界,區分可透過 API 操作自動驗證的內容(如訊息儲存與結構)與需要實際 Slack 用戶端互動的內容(如斜線命令、按鈕點擊或渲染)。它可在 Convex 平台上運作,並使用其租賃系統來管理機器人憑證,而無需在命令列中暴露敏感令牌。透過其 SKILL.md 文件中記錄的結構化腳本,開發人員可以執行設定檔檢查、執行生命週期測試流程,並解釋結果,確保 Slack 整合的正常運作,並將手動驗證僅限於適當的案例。

相容平台~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 測試通道租賃的驅動程式/受測系統機器人和隔離的 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 證明,而不是使用獨立的機器人執行器。一次執行擁有一組租賃的驅動程式/受測系統配對、一個臨時的 Gateway、原生固定裝置收據和私有工件。驅動程式沒有 Socket 模式連線:受測系統的 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 操作和明確的儲存回讀;非模型工具調用
關聯的受測系統回覆入站後從租賃的受測系統儲存的回覆;必須指定模擬或真實模型名稱
Gateway 偵錯代理擷取Slack 接受了 Gateway API 寫入;既非 Socket 模式事件傳遞亦非渲染
Block Kit、檔案 ID、反應狀態僅儲存的結構/身分
人類斜線調用、真實按鈕點擊、代理視圖、可見渲染、人類輸入手動/Mantis 用戶端測試通道;機器人/API 證據不足

對於視覺或人機互動請求,請使用已授權且已登入的 Slack 用戶端;維護中的 Mantis 工作流程位於 docs/concepts/qa-e2e-automation/operator-flow.md。檢查它實際擷取的是哪個表面:--approval-checkpoints 呈現的是 API 訊息數據,而不是 Slack 用戶端。Slack 登入截圖並非工作區操作的證明。請將檢查過的用戶端截圖與原生證據一起保存。透過 API 發布斜線文字並非斜線調用;Gateway 批准 RPC 亦非按鈕點擊。請勿從助理狀態推斷打字行為,或使用受測系統應用程式令牌啟動另一個 Socket 模式記錄器。

完成

報告場景/模型測試通道、儲存的原生身分或安全計數、工件路徑、清理結果、缺失的權限以及任何僅限手動的差距。保持原始 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.

相關技能