{"kind":"Skill","metadata":{"namespace":"community","name":"parallels-discord-roundtrip","version":"0.1.0"},"spec":{"description":"Run macOS Parallels smoke with Discord send, host verification, host reply, and guest readback proof.","files":{"SKILL.md":"---\nname: parallels-discord-roundtrip\ndescription: Run macOS Parallels smoke with Discord send, host verification, host reply, and guest readback proof.\n---\n\n# Parallels Discord Roundtrip\n\nUse when macOS Parallels smoke must prove Discord two-way delivery end to end.\n\n## Goal\n\nCover:\n\n- install on fresh macOS snapshot\n- onboard + gateway health\n- guest `message send` to Discord\n- host sees that message on Discord\n- host posts a new Discord message\n- guest `message read` sees that new message\n\n## Inputs\n\n- host env var with Discord bot token\n- Discord guild ID\n- Discord channel ID\n- `OPENAI_API_KEY`\n\n## Preferred run\n\n```bash\nexport OPENCLAW_PARALLELS_DISCORD_TOKEN=\"$(\n  ssh peters-mac-studio-1 'jq -r \".channels.discord.token\" ~/.openclaw/openclaw.json' | tr -d '\\n'\n)\"\n\npnpm test:parallels:macos \\\n  --discord-token-env OPENCLAW_PARALLELS_DISCORD_TOKEN \\\n  --discord-guild-id 1456350064065904867 \\\n  --discord-channel-id 1456744319972282449 \\\n  --json\n```\n\n## Notes\n\n- Snapshot target: closest to `macOS 26.3.1 fresh`.\n- Snapshot resolver now prefers matching `*-poweroff*` clones when the base hint also matches. That lets the harness reuse disk-only recovery snapshots without passing a longer hint.\n- If Windows/Linux snapshot restore logs show `PET_QUESTION_SNAPSHOT_STATE_INCOMPATIBLE_CPU`, drop the suspended state once, create a `*-poweroff*` replacement snapshot, and rerun. The smoke scripts now auto-start restored power-off snapshots.\n- Harness configures Discord inside the guest; no checked-in token/config.\n- Use the `openclaw` wrapper for guest `message send/read`; `node openclaw.mjs message ...` does not expose the lazy message subcommands the same way.\n- Write `channels.discord.guilds` in one JSON object (`--strict-json`), not dotted `config set channels.discord.guilds.\u003csnowflake\u003e...` paths; numeric snowflakes get treated like array indexes.\n- Avoid `prlctl enter` / expect for long Discord setup scripts; it line-wraps/corrupts long commands. Use `prlctl exec --current-user /bin/sh -lc ...` for the Discord config phase.\n- Full 3-OS sweeps: the shared build lock is safe in parallel, but snapshot restore is still a Parallels bottleneck. Prefer serialized Windows/Linux restore-heavy reruns if the host is already under load.\n- Harness cleanup deletes the temporary Discord smoke messages at exit.\n- After a successful Discord roundtrip, shut down the macOS guest before handoff (`prlctl stop \"macOS Tahoe\"`). The macOS smoke harness should do this automatically after successful Discord proof; still stop the VM manually after ad-hoc Discord checks. Do not leave the Discord-configured VM running; it can keep reading/posting in `#maintainer` and spam Discord after the proof is complete.\n- Per-phase logs: `/tmp/openclaw-parallels-smoke.*`\n- Machine summary: pass `--json`\n- If roundtrip flakes, inspect `fresh.discord-roundtrip.log` and `discord-last-readback.json` in the run dir first.\n\n## Pass criteria\n\n- fresh lane or upgrade lane requested passes\n- summary reports `discord=pass` for that lane\n- guest outbound nonce appears in channel history\n- host inbound nonce appears in `openclaw message read` output\n"},"import":{"commit_sha":"424c6d0a5f4665b803ad6768d08b0be7659deaf4","imported_at":"2026-05-18T20:13:36Z","license_text":"MIT License\n\nCopyright (c) 2025 Peter Steinberger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","owner":"openclaw","repo":"openclaw/openclaw","source_url":"https://github.com/openclaw/openclaw/tree/424c6d0a5f4665b803ad6768d08b0be7659deaf4/.agents/skills/parallels-discord-roundtrip"}},"content_hash":[74,236,67,63,56,24,164,162,178,203,17,222,145,56,8,74,103,233,206,153,172,55,29,205,152,97,175,117,132,183,163,189],"trust_level":"unsigned","yanked":false}
