Community程式設計與開發github.com

openclaw-qa-testing

執行、監控、除錯、擴展或解釋 OpenClaw qa-lab 與 qa-channel 的測試場景、產出物及即時執行環境。

openclaw-qa-testing 是什麼?

此技能專為使用 OpenClaw 的開發者與 QA 工程師設計,用於自動化執行 qa-lab 與 qa-channel 的端到端測試場景。透過此技能,使用者可以運行完整測試套件(如所有場景或特定情景)、即時監控執行進度、檢查測試報表與摘要、並根據失敗模式進行除錯或修復。技能支援不同執行環境:mock 測試可使用 `mock-openai` 模式,真實驗證則使用 `live-frontier` 模式;也支援透過 Codex CLI 作為模型後端進行測試,並涵蓋角色評估(character evals)與 OpenTelemetry 遙測驗證。執行時需遵循預設工作流程,避免隨意指定模型參數,並依賴專案內的文件與參考資料(如 QA 憑證、WhatsApp 憑證、Codex CLI 使用方式)來確保安全與正確性。此技能主要適用於 Claude Code、Codex CLI 等開發助手平台,透過 CLI 命令與本地專案互動,產出物存放於 `.artifacts/qa-e2e/` 目錄。

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

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

OpenClaw QA 測試

使用此技能進行 qa-lab / qa-channel 相關工作。僅限本機儲存庫的 QA。

請先閱讀

  • docs/concepts/qa-e2e-automation.md
  • docs/help/testing.md
  • docs/channels/qa-channel.md
  • qa/README.md
  • qa/scenarios/index.yaml
  • extensions/qa-lab/src/suite.ts
  • extensions/qa-lab/src/character-eval.ts

模型策略

  • 正常的即時測試套件執行應使用 QA Lab 根據來源與驗證方式提供的預設值。
  • 請勿在預設情況下傳遞 --model、--alt-model 或 --fast。省略 --fast 不代表停用 fast 模式;fast 行為由來源端控制。
  • 對於特定場景的執行,完整的 execution.summary 具有權威性,並覆蓋通用的預設指引,包括當它要求其他標誌時。僅在 execution.config.requiredProvider 或 requiredModel 要求時,才加入明確的提供者/模型固定。

預設工作流程

  1. 讀取場景包與目前的測試套件實作。
  2. 決定執行環境(lane):
    • mock/開發:mock-openai
    • 真實驗證:live-frontier
  3. 對於正常的即時測試套件,使用:
pnpm openclaw qa suite \
  --provider-mode live-frontier \
  --output-dir .artifacts/qa-e2e/run-all-live-frontier-<標籤>
  1. 檢視輸出:
    • 摘要:.artifacts/qa-e2e/run-all-live-frontier-<標籤>/qa-suite-summary.json
    • 報告:.artifacts/qa-e2e/run-all-live-frontier-<標籤>/qa-suite-report.md
  2. 如果使用者想觀看即時 UI,請找到目前的 openclaw-qa 監聽埠號,並回報 http://127.0.0.1:<埠號>。
  3. 如果場景失敗,請修正產品或測試架構的根因,然後重新執行完整的測試環境。

OTEL 煙霧測試

針對本機 QA-lab OpenTelemetry 驗證,請使用:

pnpm qa:otel:smoke

這會啟動一個本機 OTLP/HTTP 追蹤接收器,透過 qa-channel 執行 otel-trace-smoke 場景,解碼發出的 protobuf spans,並驗證匯出的追蹤名稱與隱私合約。此流程不需要 Opik、Langfuse 或外部收集器的憑證。

QA 憑證與 1Password

在進行任何 QA 秘密查找或需要憑證的測試環境之前,請完整閱讀 QA 憑證與 1Password。該文件擁有 tmux 專用的秘密存取、經核准的參考資料、Convex 角色以及缺失參考的處理方式。調度不會預先提供憑證或繞過拒絕。

WhatsApp 即時憑證

對於 WhatsApp 憑證設定、更換或會話恢復,請在閱讀共用的 QA 憑證要求 之後,完整閱讀 WhatsApp 即時憑證。請將即時帳戶與憑證材料保存在儲存庫與驗證產出物之外。

角色評估

關於風格、角色或氛圍比較,請在選擇模型、建立 QA 環境或撰寫場景之前,完整閱讀角色評估。該參考文件擁有候選/評審預設值、來源建置要求、場景格式以及角色設定的主導權。

Codex CLI 模型執行環境

當 QA 應使用 Codex 作為其模型後端時,請在執行測試套件、手動 QA 或角色評估之前,完整閱讀 Codex CLI 模型執行環境。請將具體的模型名稱保留為使用者/設定輸入;該參考文件也涵蓋即時與 mock 環境的處理以及驗證問題排查。

儲存庫資訊

  • 種子場景位於 qa/scenarios/index.yaml 與 qa/scenarios/<主題>/*.yaml。
  • 主要即時執行器:extensions/qa-lab/src/suite.ts
  • QA lab 伺服器:extensions/qa-lab/src/lab-server.ts
  • 子閘道測試架構:extensions/qa-lab/src/gateway-child.ts
  • 合成頻道:extensions/qa-channel/

「完成」的定義

  • 請求的測試環境所有場景皆通過。
  • 使用者獲得:
    • 監看 URL(如適用)
    • 通過/失敗計數
    • 產出物路徑
    • 修正內容的簡潔說明

常見失敗模式

  • 即時超時太短:
    • 請在 extensions/qa-lab/src/suite.ts 中放寬即時等待時間
  • 探索功能無法找到儲存庫檔案:
    • 請在播種的工作區內將提示指向 repo/...
  • 子代理驗證過於脆弱:
    • 優先使用穩定的最終回覆證據,而非暫時的子會話列表
  • 測試架構「重建」延遲:
    • 髒的目錄樹可能觸發執行前建置;請預期此情況發生後才出現埠號

新增場景時

  • 在 qa/scenarios/ 下新增或更新場景 YAML;請勿新增 .md 場景檔案或圍欄式 YAML 區塊。
  • 保持 qa/scenarios/index.yaml 中的啟動預期一致
  • 在 extensions/qa-lab/src/suite.ts 中加入可執行的測試覆蓋範圍
  • 優先使用端到端斷言而非單純的 mock 檢查
  • 將輸出儲存在 .artifacts/qa-e2e/ 下

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.

相關技能