platforms/codex/skills/xiaohongshu-session-reader/SKILL.md
Use this skill to read Xiaohongshu (小红书) via HTTP/API first with local logged-in Chrome cookies, then Codex Chrome plugin for logged-in browser fallback; use Playwright only when explicitly enabled. Supports profile card extraction, note detail extraction, and conditional comment fallback when API is blocked.
npx skillsauth add codingsamss/ai-dotfiles xiaohongshu-session-readerInstall 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.
Before extraction:
python3 --version
Fallback-only prerequisite:
codex mcp get playwright-ext # only for explicit Playwright fallback
python3 <skill_dir>/scripts/xhs_http_reader.py \
--url "<xhslink_or_xiaohongshu_url>" \
--mode auto \
--max-items 40 \
--max-comments 20 \
--pretty
fallback.required=false, use returned data directly.fallback.required=true, switch to Codex Chrome plugin fallback:
playwright-ext is enabled.scripts/undercover_parser.py..cache/xhs_undercover_progress.json for batch tasks.300011), do not keep retrying aggressively.Use this structure:
{
"source": "<xhs link>",
"captured_at": "YYYY-MM-DD",
"groups": [
{ "id": 1, "words": ["词A", "词B", "词B", "词B"], "odd": "词A" }
]
}
If confidence is low, add note for manual verification.
scripts/xhs_http_reader.pyscripts/export_xhs_cookies.pyreferences/extraction-checklist.mdscripts/undercover_parser.pydevelopment
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.