Community程式設計與開發github.com

Parallels Discord 雙向驗證

在 macOS Parallels 虛擬機中執行端到端 Discord 雙向通訊驗證,包含安裝、訊息發送、主機確認及回讀確認。

Parallels Discord 雙向驗證 是什麼?

此技能用於驗證在 macOS Parallels 虛擬機環境中,Discord 訊息能否完整地從客戶端傳送到主機,再從主機傳回客戶端,形成一個完整的雙向往返測試。它涵蓋了從全新 macOS 快照安裝、入職與閘道健康檢查,到客戶端發送 Discord 訊息、主機在 Discord 上看到該訊息、主機回覆新訊息、以及客戶端透過「message read」確認收到該新訊息的完整流程。此技能支援 OpenClaw 測試框架,並要求預先設定 Discord QA Bot 的權杖、伺服器(Guild)ID 與頻道 ID,同時也需要 `OPENAI_API_KEY`。其主要平台為 macOS 上的 Parallels Desktop,並提供了多項實用注意事項,例如建議使用 `prlctl exec` 而非 `prlctl enter` 以避免長指令被截斷,以及如何處理快照還原時可能出現的 CPU 不相容問題。通過此技能,開發者可以確保其基於 Discord 的應用在高階虛擬化環境中的通訊可靠性。

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

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

在你喜歡的 AI 中提問

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

說明文件

Parallels Discord 雙向驗證 是做什麼的?

用於 macOS Parallels 冒煙測試,必須端到端證明 Discord 的雙向傳遞。

目標

涵蓋:

  • 在全新的 macOS 快照上安裝
  • 入職與閘道健康檢查
  • 客戶端 message send 傳送到 Discord
  • 主機在 Discord 上看到該訊息
  • 主機在 Discord 上發布新訊息
  • 客戶端 message read 讀取到該新訊息

輸入

  • 主機環境變數,包含經運維人員核准的專用 QA Bot 權杖
  • 經運維人員核准的 QA Guild(伺服器)和 Channel(頻道)ID
  • OPENAI_API_KEY

建議執行方式

透過經核准的密碼來源載入 OPENCLAW_PARALLELS_DISCORD_TOKEN。 將 OPENCLAW_PARALLELS_DISCORD_GUILD_ID 和 OPENCLAW_PARALLELS_DISCORD_CHANNEL_ID 設定為經核准的 QA 目標。測試框架會在選定的客戶端內配置該 Bot。

pnpm test:parallels:macos \
  --discord-token-env OPENCLAW_PARALLELS_DISCORD_TOKEN \
  --discord-guild-id "$OPENCLAW_PARALLELS_DISCORD_GUILD_ID" \
  --discord-channel-id "$OPENCLAW_PARALLELS_DISCORD_CHANNEL_ID" \
  --json

注意事項

  • 快照目標:最接近 macOS 26.3.1 fresh。
  • 快照解析器現在會優先比對 *-poweroff* 克隆,當基礎提示也吻合時。這讓測試框架可以重複使用僅磁碟的還原快照,而不必傳遞更長的提示。
  • 如果 Windows/Linux 快照還原日誌顯示 PET_QUESTION_SNAPSHOT_STATE_INCOMPATIBLE_CPU,請先解除暫停狀態一次,建立一個 *-poweroff* 替代快照,然後重新執行。冒煙測試腳本現在會自動啟動還原後的斷電快照。
  • 測試框架會在客戶端內配置 Discord;沒有檢查入庫的權杖/配置。
  • 使用 openclaw 包裝器進行客戶端的 message send/read;node openclaw.mjs message ... 無法以相同方式暴露惰性訊息子命令。
  • 將 channels.discord.guilds 寫成一個 JSON 物件 (--strict-json),不要使用點分隔的 config set channels.discord.guilds.<snowflake>... 路徑;數字型的 Snowflake 會被當作陣列索引。
  • 對於較長的 Discord 設定腳本,避免使用 prlctl enter / expect;它會將長指令換行或截斷。請改用 prlctl exec --current-user /bin/sh -lc ... 來執行 Discord 配置階段。
  • 完整的 3 作業系統掃描:共享構建鎖在並行下是安全的,但快照還原仍然是 Parallels 的瓶頸。如果主機已經處於高負載,建議序列化執行 Windows/Linux 還原較重的重跑。
  • 測試框架清理會在退出時刪除暫時的 Discord 冒煙測試訊息。
  • 在成功的 Discord 驗證後,測試框架會嘗試停止其選定的客戶端,並在停止失敗時發出警告。對於臨時的 Discord 檢查,請在交接前僅停止任務所屬的客戶端。不要在驗證完成後讓配置了 Discord 的測試客戶端繼續運行。
  • 各階段日誌:/tmp/openclaw-parallels-smoke.*
  • 機器摘要:傳遞 --json
  • 如果雙向驗證不穩定,請先在執行目錄檢查 fresh.discord-roundtrip.log 和 discord-last-readback.json。

通過標準

  • 請求的 fresh lane 或 upgrade lane 通過
  • 摘要報告該 lane 的 discord=pass
  • 客戶端的輸出 Nonce 出現在頻道歷史中
  • 主機的輸入 Nonce 出現在 openclaw message read 的輸出中

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.

相關技能