Xiaohongshu Post — Testing skill for Claude Code
Agent skill: publish image-and-text notes to Xiaohongshu (RED) from a logged-in Chrome profile via Playwright over CDP.
How to install Xiaohongshu Post
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open CatsMansion/xiaohongshu-post and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Xiaohongshu Post does
Agent skill: publish image-and-text notes to Xiaohongshu (RED) from a logged-in Chrome profile via Playwright over CDP. Real topic tags, pre-publish draft approval, logged-out public-visibility verification.
Alternatives in Testing
- Higgsfield Claude Skills — 19 Claude Code skills for Higgsfield AI — automate image generation, Seedance 2.0 video creation, and full UGC 329 ★
- API Spec — Generate Zalando-compliant OpenAPI 3.1 specs (one per bounded context) and publish to SmartBear SwaggerHub 172 ★
- Al PR Prepare.Prompt — Prepare a clean, documented pull request draft for AL features or fixes with summary, testing notes, and check 109 ★
README
xiaohongshu-post
An agent skill for publishing image-and-text notes to **Xiaohongshu (小红书 / RED)** from a logged-in Chrome profile, via Playwright over CDP.
The hard part of this task is not clicking "发布". It is:
- Keeping the login alive across agent turn boundaries — a browser process gets reaped when
the turn ends, no matter how it was started (
playwright-cli open --headed, a self-launched CDP Chrome, or a background task). What persists is the profile directory, not the process: cookies (includingid_token) live in$PROFILE_DIR/Default/Cookies. The fix is to re-launch Chrome against the same profile every turn; it comes back logged in. Never create a fresh profile per turn — that means a fresh SMS login every turn. - Getting a link that actually works for others — Xiaohongshu note pages are client-rendered,
so
curlcan never confirm public visibility; the only reliable check is a fresh logged-out browser context. And bare note URLs 404 without anxsec_token.
This skill encodes those two, plus the fiddly parts: multi-image upload, title/body limits, and inserting **real** topic tags through the Tiptap suggestion dropdown (plain `#text` is not a topic).
What it gives you
- A browser bootstrap (
scripts/bootstrap_browser.sh) that survives turn boundaries. scripts/publish_note.js— fill title/body/topics, upload images, screenshot the draft. It does not click 发布 unless you pass--publish.scripts/verify_note.js— extract note id /xsec_token/ short link, then prove public visibility from a logged-out context.references/selectors.md— every selector, API field, and known pitfall (with causes).references/copy-guide.md— title/body/image specs and a copy template.
When to activate (triggers)
- "发小红书" / "上传小红书" / "帮我发个笔记" / "post this to RED / Xiaohongshu"
- Automating a note publish where the account is already logged in.
- Recovering a public share link for a published note.
Related Skills
Instagram Carousel Plan
Plan an Instagram carousel — research a topic/links/notes into a reviewable carousel-spec.md (no image credits
Socialagent Post
Draft a platform-native post with hooks, media, tags, QA and approval notes.
Public Browser
Token-efficient Chrome browser automation MCP server for AI agents. Direct CDP, a11y-tree refs, multi-tab, ser
Sigma
Write, review, or convert a Sigma rule: valid YAML, correct logsource, ATT&CK tags, false positives, test note
Browz Agent Recipes
Copy-paste recipes for AI agents on Browz: one isolated browser profile per task over MCP (Claude Code, Cursor
Cc Chrome Devtools MCP Skill
This skill enables automated Chrome browser testing and performance analysis using the Chrome DevTools Protoco
Related Agents
LinkedIn Operator
Executes LinkedIn writes that have no API, through a logged-in browser MCP (Claude in Chrome or Playwright): p
Aun Browser Runner
Executes a scoped browser packet in a fresh context, reads named fields, and returns evidence plus verified cl
Apply Hunt
Job hunter for the /apply pipeline. Searches LinkedIn's public, logged-out job pages (via the stdlib li.py hel