platforms/codex/skills/mx-interaction/SKILL.md
Safely work with Midea MX / 美信 interactions from Codex. Use when the user asks to search MX users or groups, prepare or send an MX message, notify someone in MX, inspect MX message-query capabilities, search MX chat history, or understand MX ocToken / UA auth behavior. Prefer dry-run before any live send.
npx skillsauth add codingsamss/ai-dotfiles mx-interactionInstall 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 for MX / 美信读写交互. Keep all token handling local and explicit.
scripts/mx_safe_send.py for message sends. It dry-runs by default.--send and --confirm-user-authorized.mx_message_* tools only.mx_message_* tools are available in the current Codex context, say that the current context has no MX query tools and stop.references/auth-and-token.md.references/message-query.md.scripts/user_search.py.scripts/group_search.py.python3 scripts/mx_safe_send.py \
--from-id "<sender_uid>" \
--to-id "<receiver_uid_or_group_id>" \
--session-type p2p \
--body "message text"
python3 scripts/mx_safe_send.py \
--from-id "<sender_uid>" \
--to-id "<receiver_uid_or_group_id>" \
--session-type p2p \
--body "message text" \
--send \
--confirm-user-authorized
For file, image, @user, @all, or push fields, read references/auth-and-token.md and use the copied original scripts only when the user explicitly asks for those behaviors. The original im_send.py also requires --confirm-user-authorized for any live send.
Search users:
python3 scripts/user_search.py --keyword "<姓名/工号/邮箱前缀>"
Search groups:
python3 scripts/group_search.py --keyword "<群名关键字>" --limit 5
These commands require a valid token from MX_OC_TOKEN, the current MX/OpenClaw runtime MCP config, or /tmp/ua_token.txt; do not run them if the user asked for static analysis only.
Use mx_message_sessions, mx_message_list, mx_message_search_global, mx_message_search_session, and mx_message_history only when those tools are exposed in the current Codex tool list.
Do not emulate those tools with filesystem reads. mx_team_info and mx_team_search are documented in the MX package but are not exported by the current dist/src/tools/index, so treat them as unconfirmed until live tool availability proves otherwise.
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.