platforms/hermes/skills/autonomous-ai-agents/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:
~/.hermes/skills/autonomous-ai-agents/opencode-copilot-opus/scripts/opus_bridge.sh auth
~/.hermes/skills/autonomous-ai-agents/opencode-copilot-opus/scripts/opus_bridge.sh models
~/.hermes/skills/autonomous-ai-agents/opencode-copilot-opus/scripts/opus_bridge.sh new "请评审这个方案并给出风险清单"
~/.hermes/skills/autonomous-ai-agents/opencode-copilot-opus/scripts/opus_bridge.sh continue "补充背景:仅全范围检索"
~/.hermes/skills/autonomous-ai-agents/opencode-copilot-opus/scripts/opus_bridge.sh list-sessions
~/.hermes/skills/autonomous-ai-agents/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.~/.config/opencode/opencode.json has unsupported keys (e.g. skills), create a clean config copy and point XDG_CONFIG_HOME to it.github-copilot/claude-opus-4.6.ECONNRESET / api.githubcopilot.com network failures: run with
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897.OPENCODE_SAFE_MODE=1, XDG_CONFIG_HOME=/tmp) triggers Cannot find module ... opencode-*-auth, rerun with OPENCODE_SAFE_MODE=0 and a clean explicit XDG_CONFIG_HOME.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.
development
Use when Sam wants to collect, save, translate, or reformat official source articles/blog posts/research/product announcements into the Obsidian vault, especially requests mentioning 官方文章, 官网排版, 原始排版, 美观, 收录, 1:1, 原文1:1, or 英文中文对照1:1. Preserve the source site's information architecture and visual hierarchy rather than forcing a generic Markdown template.
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.
tools
MX channel output rules. Always active in MX conversations.