Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

xiaohongshu-cli — Claude Code skill: what it does, how to install

Controls Xiaohongshu accounts directly through your coding agent. Searches notes, extracts comments, likes posts, and publishes content using a CLI tool.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add jackwener/xiaohongshu-cli --skill xiaohongshu-cli -a claude-code
Open on GitHub

What xiaohongshu-cli does

This skill connects your agent to Xiaohongshu via the xhs terminal utility. It lets the model search notes, inspect trending posts, read full comment threads, and follow authors. Creating new posts with images is also supported.

The setup depends on Python 3.10+ and the xiaohongshu-cli package. You can install the binary using uv tool install xiaohongshu-cli or pipx install xiaohongshu-cli. Output defaults to structured YAML or JSON for machine consumption.

Autonomous execution stops when credentials are missing or expired. The utility attempts to extract active cookies from local desktop browsers, or you must scan a terminal QR code with xhs login --qrcode. When the platform triggers a captcha, you will need to open a browser and solve it manually.

What it helps with

  • search notes and trending feeds by keywords
  • extract comments and replies for specific posts
  • like notes and manage saved bookmarks
  • publish new notes with text and images

Example prompts for the agent

  • Search Xiaohongshu for trending travel notes and show top results.
  • Check xhs auth status and fetch all comments for note 1 in JSON.

How to install xiaohongshu-cli

1Skills CLI (Vercel)

npx skills add jackwener/xiaohongshu-cli --skill xiaohongshu-cli -a claude-code

2Manually: put the files in place

~/.claude/skills/xiaohongshu-cli/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/xiaohongshu-cli/

Similar

ai-prompt-research every-app This skill discovers questions people ask ChatGPT about your niche, shows how the model answers them, and reveals which sites it cites. Learn where your brand appears in AI responses and where competitors show up instead. Claude Code CX Codex Cursor +1 837installs content-creator sickn33 Drafts audience-focused articles and social posts using brand examples and local text diagnostics. Useful for planning editorial calendars and checking keyword density. Claude Code CX Codex Cursor +1 1,100installs ce-promote EveryInc Drafts launch posts and changelog blurbs directly from git diffs or pull requests. Useful for engineers who want ready-to-use release copy without waiting on marketing. Claude Code CX Codex Cursor +1 1,000installs showcase-video rehan-remade Records the game window with the game's own audio, then cuts a short clip or trailer about a mod: titles, transitions, music, fade-out. Claude Code CX Codex Cursor +1 1,400installs firecrawl-competitive-intel firecrawl Monitors competitor pricing, feature releases, and changelogs using Firecrawl. Useful for ongoing market tracking and generating structured intelligence reports. Claude Code CX Codex Cursor +1 31,300installs hooked-ux wondelai Scores a product's engagement loop against the Hook Model and caps designs the Manipulation Matrix calls extractive. Useful when signups stop coming back. Claude Code CX Codex Cursor +1 6,200installs marketing-ideas coreyhaines31 This skill suggests marketing ideas for SaaS and software products based on their stage and available resources. Use it when you need a place to start with growth. Claude Code CX Codex Cursor +1 146,400installs revops coreyhaines31 This skill helps design RevOps workflows for lead stages, scoring, routing, and marketing-to-sales handoffs. Use it when CRM processes need clear rules. Claude Code CX Codex Cursor +1 113,000installs

Questions about xiaohongshu-cli

How to install xiaohongshu-cli in Claude Code?

Run npx skills add jackwener/xiaohongshu-cli --skill xiaohongshu-cli -a claude-code. You also need the xhs binary, installed via uv tool install xiaohongshu-cli.

What does xiaohongshu-cli do?

It lets your agent search notes, read discussions, interact with publications, and publish new posts on Xiaohongshu using the command line.

How does authentication work in xhs?

Run xhs login to pull session cookies from supported desktop browsers. If cookies are not found, use xhs login --qrcode to log in via a terminal QR code.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor