Xiaohongshu

From AceDataCloud/Skills · View interactive version

Xiaohongshu is an AI agent skill from the GitHub repository AceDataCloud/Skills. Operate Xiaohongshu / RED through the user's paired browser device: login, recommendations, filtered search, note/comment/profile inspection, content planning, image/video/long-article publishing, scheduling, product binding, comments/replies, likes, and favorites. Use for 小红书, 红书, XHS, RED, 发笔记, 搜笔

How to use this skill

Skill file

Xiaohongshu local browser

Operate only through the generic browser.* facades in a BrowserSession created by aichat2 on an online-compatible paired device. Xiaohongshu-specific page semantics, workflows, validation, and reconciliation live in this Skill package; never request a provider-specific core tool or remote browser.

The facade-to-policy mapping is pinned by the generated compact manifest contract. Use only the facades listed in allowed_tools, narrowed further by the selected operation. There are no aliases or compatibility tool names; execution authorization is expressed through stable policy capabilities.

Mandatory boundaries

Workflow routing

Read only the reference needed for the current request:

| Intent | Required reference |

|---|---|

| Login, QR, account switch | login |

| Recommendations, search, filters, detail, comments, profile, planning | browse |

| Image, video, long article, schedule, original, visibility, products | publish |

| Like, favorite, comment, reply | interactions |

| Any uncertain write result or interrupted workflow | reconciliation |

| Feature parity, route contracts, and selector diagnostics | MCP parity |

For publish/search validation and feed-card parsing, use the shipped stdlib-only contract helper:

XHS_CONTRACT="$SKILL_DIR/scripts/xhs_contract.py"
test -f "$XHS_CONTRACT" || { echo "Xiaohongshu contract helper is unavailable" >&2; exit 1; }

The helper is deterministic and has no network or browser access. Pass JSON through a quoted here-document; never interpolate page text into a shell command. Its commands are:

Completion rules

Always browser.wait for the content you need, then read. A read taken straight

after navigating comes back empty and must not be reported as "no data".

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.