platforms/codex/skills/opencode-copilot-opus/SKILL.md
Use this skill when you need Codex to collaborate with GitHub Copilot Opus (via opencode), especially for architecture review, second-opinion validation, and iterative discussion that must continue in the same opencode session_id. Covers model selection for github-copilot/claude-opus-4.6, stable sandbox-safe invocation, session continuity with -c / -s, and troubleshooting common opencode errors.
npx skillsauth add codingsamss/ai-dotfiles opencode-copilot-opusInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to make Codex and Copilot Opus discuss the same topic in multiple rounds while preserving context in one opencode session.
-c or explicit -s <session_id>.Use the helper script:
~/.codex/skills/opencode-copilot-opus/scripts/opus_bridge.sh auth
~/.codex/skills/opencode-copilot-opus/scripts/opus_bridge.sh models
~/.codex/skills/opencode-copilot-opus/scripts/opus_bridge.sh new "请评审这个方案并给出风险清单"
~/.codex/skills/opencode-copilot-opus/scripts/opus_bridge.sh continue "补充背景:仅全范围检索"
~/.codex/skills/opencode-copilot-opus/scripts/opus_bridge.sh list-sessions
~/.codex/skills/opencode-copilot-opus/scripts/opus_bridge.sh run-session ses_xxx "继续上次结论,给8周计划"
new for first prompt in a topic.continue when the last opencode session is the one to extend.run-session <session_id> when continuity must be deterministic.session_id in notes/logs for reproducibility.Use a structured prompt to reduce drift:
背景:
- 现状...
- 约束...
目标:
- 本轮需要确认的问题...
请输出:
1) 风险清单(按严重度)
2) 控制措施
3) 是否建议推进与边界条件
Read references/troubleshooting.md when any opencode command fails.
Key fast fixes:
XDG_CACHE_HOME=/tmp.XDG_CONFIG_HOME=/tmp (safe mode).github-copilot/claude-opus-4.6.development
Query Midea MX / 美信 local message cache through the MX local HTTP query service from Codex. Use when the user asks to read MX sessions, search chat history, search messages globally or inside a group/session, list recent messages, or page message history. This is read-only and does not require send authorization. Never fall back to reading SQLite or app cache files directly.
development
Safely search MX users or groups and send Midea MX / 美信 IM messages from Codex. Use when the user asks to notify someone, send a message to a person or group, use a configured group alias, @ users, @ all, or send MX file/image messages. Read lookups need no extra authorization; every live send needs explicit user authorization for that exact target and message.
tools
MX channel output rules. Always active in MX conversations.
tools
Use the company WorkSpace `ws` CLI reliably as a delegated coding agent from Codex. Trigger when the user wants Codex to command `ws`, WorkSpace CLI, or the company opencode-derived coding tool to generate code, inspect a repo, run a bounded implementation task, or use a requested WorkSpace model while Codex reviews the output.