Community编程与开发github.com

Parallels Discord 往返测试

在 macOS Parallels 虚拟机中执行端到端的 Discord 双向消息传递冒烟测试,验证来宾与主机之间的通信。

Parallels Discord 往返测试 是什么?

该技能用于在 macOS Parallels 虚拟机上执行完整的 Discord 双向消息传递冒烟测试。它首先在干净的 macOS 快照上安装和配置 OpenClaw 环境,包括 Discord 机器人集成。整个流程覆盖:初始安装、网关健康检查、来宾向 Discord 发送消息、主机在 Discord 上验证并回复、来宾读取主机回复的端到端循环。该技能支持通过环境变量注入 Discord 令牌、服务器和频道 ID,并自动处理快照恢复、来宾配置和清理工作。适用于 macOS Parallels 自动化测试场景,可确保 Discord 双向通信在虚拟化环境中的可靠性。测试结果以 JSON 格式输出,并支持 `discord=pass` 的判断标准。

兼容平台~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 机器人令牌
  • 经操作员批准的 QA 服务器和频道 ID
  • OPENAI_API_KEY

推荐运行方式

通过认可的密钥源加载 OPENCLAW_PARALLELS_DISCORD_TOKEN。 设置 OPENCLAW_PARALLELS_DISCORD_GUILD_ID 和 OPENCLAW_PARALLELS_DISCORD_CHANNEL_ID 为认可的 QA 目标。测试框架会在选定的来宾内部配置该机器人。

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 ... 不会以相同方式暴露惰性消息子命令。
  • 在一个 JSON 对象(--strict-json)中写入 channels.discord.guilds,不要使用点分隔的 config set channels.discord.guilds.<snowflake>... 路径;数字雪花 ID 会被当作数组索引处理。
  • 避免对较长的 Discord 设置脚本使用 prlctl enter / expect;它会换行/损坏长命令。对于 Discord 配置阶段,请使用 prlctl exec --current-user /bin/sh -lc ...。
  • 完整的 3 个操作系统扫描:共享构建锁在并行时是安全的,但快照恢复仍然是 Parallels 的瓶颈。如果主机已经负载较高,建议串行化 Windows/Linux 恢复密集型重新运行。
  • 测试框架清理会在退出时删除临时的 Discord 冒烟消息。
  • 测试框架在 Discord 验证成功后会尝试停止其选定的来宾,并在停止失败时发出警告。对于临时 Discord 检查,在手机关闭前只停止任务拥有的来宾。不要在验证后让配置了 Discord 的测试来宾继续运行。
  • 各阶段日志:/tmp/openclaw-parallels-smoke.*
  • 机器摘要:传递 --json
  • 如果往返测试不稳定,请首先检查运行目录中的 fresh.discord-roundtrip.log 和 discord-last-readback.json。

通过标准

  • 请求的 fresh 通道或升级通道通过
  • 摘要针对该通道报告 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.

相关技能