Agent skill

Xiaohongshu CLI

by jackwener in jackwener/xiaohongshu-cli

Use xiaohongshu-cli for ALL Xiaohongshu (Little Red Book, 小红书) operations — searching notes, reading content, browsing users, liking, collecting, commenting, following, and posting.

No licenceAuto-check passed

Install Xiaohongshu CLI

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

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jackwener/xiaohongshu-cli xiaohongshu-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
xiaohongshu-cli
GitHub stars
2.7k
Token cost
~2.3k tokens
SKILL.md length
801 words
Files
53
Skills in repo
1
Repo updated
First seen
Licence
None found

At a glance

Use xiaohongshu-cli for ALL Xiaohongshu (Little Red Book, 小红书) operations — searching notes, reading content, browsing users, liking, collecting, commenting, following, and posting.

  • Works in 3 steps: Check if already authenticated → Guide user to authenticate → Handle common auth issues
  • Requests any Xiaohongshu interaction
  • SKILL.md covers Setup, Authentication, Agent Defaults and Command Reference, plus 6 more sections
  • Runs Python scripts from its folder; calls jq and uv; reaches xiaohongshu.com

What it does

Xiaohongshu CLI is an agent skill from jackwener/xiaohongshu-cli. Use xiaohongshu-cli for ALL Xiaohongshu (Little Red Book, 小红书) operations — searching notes, reading content, browsing users, liking, collecting, commenting, following, and posting. Invoke whenever the user requests any Xiaohongshu interaction.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 56 other files (for example `.github/ISSUE_TEMPLATE/bug_report.yml`, `.github/ISSUE_TEMPLATE/feature_request.yml` and `.github/workflows/ci.yml`).

It works with Xiaohongshu. The repository describes itself as: A CLI for Xiaohongshu (小红书) — search, read, interact via reverse-engineered API.

When your agent uses it

  • Requests any Xiaohongshu interaction

Example prompts

  • “/xiaohongshu-cli”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Check if already authenticated
  2. Guide user to authenticate
  3. Handle common auth issues

What it can do on your machine

Read from SKILL.md and the folder at commit 4d63f3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • jq
    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • xiaohongshu.com

    Also links to:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Xiaohongshu CLI loads about 2.3k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 801 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 801 words (~2,295 tokens).

“Binary: xhs Credentials: browser cookies (auto-extracted) or browser-assisted QR login (--qrcode)”

— opening of SKILL.md by jackwener
name
xiaohongshu-cli
author
jackwener
version
0.6.4
tags
xiaohongshu, xhs, redbook, 小红书, social-media, cli

Read the full SKILL.md on GitHub

Files

SKILL.md and 52 other files in the repository root of jackwener/xiaohongshu-cli.

  • SKILL.md
  • .github/ISSUE_TEMPLATE/bug_report.yml
  • .github/ISSUE_TEMPLATE/feature_request.yml
  • .github/workflows/ci.yml
  • .github/workflows/publish.yml
  • .gitignore
  • README.md
  • SCHEMA.md
  • pyproject.toml
  • tests/__init__.py
  • tests/conftest.py
  • tests/test_anti_detection.py
  • tests/test_cli.py
  • tests/test_client.py
  • tests/test_cookies.py
  • tests/test_creator.py
  • tests/test_creator_signing.py
  • … and 36 more

Open the folder on GitHubat commit 4d63f3c

Compare with similar skills

Xiaohongshu CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Xiaohongshu CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xiaohongshu CLI this skilljackwener/xiaohongshu-cli2.7k—~2.3kAutomated safety check: PassNone
Agent ReachPanniantong/Agent-Reach93k—~1.4kAutomated safety check: PassMIT
Guizang Social Cardsop7418/guizang-social-card-skill7.4k1 repos~7.8kAutomated safety check: PassAGPL-3.0
Video Podcast MakerAgents365-ai/video-podcast-maker1.7k—~4.9kAutomated safety check: PassMIT
Xhs Note Creatorcomeonzhj/Auto-Redbook-Skills2.3k—~580Automated safety check: NotesNone
Xhs Virtual Productchenjin-cmd/xhs-virtual-product726—~862Automated safety check: PassMIT

Similar skills

  • Agent Reach

    Panniantong/Agent-Reach

    Routes web research and platform lookups across 16 sites, including Twitter, Reddit, YouTube, Bilibili, Xiaohongshu and GitHub, through one command-line tool.

    93k GitHub stars~1.4k tokensUpdated 22 days ago
    Productivity & AutomationAuto-check passed
  • Guizang Social Cards

    op7418/guizang-social-card-skill

    Produces social card sets for Xiaohongshu and WeChat: carousels, Live Photo motion cards and puzzle layouts, and WeChat cover pairs, rendered from single-file HTML.

    7.4k GitHub starsUsed in 1 repo~7.8k tokens
    Media & CreativeAuto-check passed
  • Video Podcast Maker

    Agents365-ai/video-podcast-maker

    A skill your agent uses when the user gives a topic and wants an automated topic-driven narrated explainer, podcast, or knowledge-summary video (Bilibili / YouTube / Xiaohongshu / Douyin / WeChat…

    1.7k GitHub stars~4.9k tokensUpdated 6 days ago
    Media & CreativeAuto-check passed
  • Xhs Note Creator

    comeonzhj/Auto-Redbook-Skills

    小红书笔记素材创作技能。当用户需要创建小红书笔记素材时使用这个技能。技能包含:根据用户的需求和提供的资料,撰写小红书笔记内容(标题+正文),生成图片卡片(封面+正文卡片),以及发布小红书笔记。支持 8 种精美排版主题和 4 种智能分页模式。

    2.3k GitHub stars~580 tokensUpdated 1 mo ago
    Auto-check: notes
  • Xhs Virtual Product

    chenjin-cmd/xhs-virtual-product

    This skill helps plan, select, produce, and market Xiaohongshu (RED) virtual/digital products — templates, knowledge bases, test tools, study materials.

    726 GitHub stars~862 tokensUpdated 6 days ago
    Knowledge ManagementAuto-check passed
  • Blogger Distiller

    otter1101/blogger-distiller

    A skill your agent uses when the user wants to analyze or distill a blogger/account on Xiaohongshu or Douyin, benchmark a target creator, or diagnose their own content strategy.

    692 GitHub stars~3.8k tokensUpdated 14 days ago
    Writing & ContentAuto-check: notes

Works with

Questions about Xiaohongshu CLI

What does Xiaohongshu CLI do?

Use xiaohongshu-cli for ALL Xiaohongshu (Little Red Book, 小红书) operations — searching notes, reading content, browsing users, liking, collecting, commenting, following, and posting. Xiaohongshu CLI is an agent skill from jackwener/xiaohongshu-cli. Use xiaohongshu-cli for ALL Xiaohongshu (Little Red Book, 小红书) operations — searching notes, reading content, browsing users, liking, collecting, commenting, following, and posting.

When should I use Xiaohongshu CLI?

Xiaohongshu CLI fits situations like: requests any Xiaohongshu interaction.

How do I install Xiaohongshu CLI in Claude Code?

Run `npx skills add jackwener/xiaohongshu-cli --skill xiaohongshu-cli -a claude-code`. Or copy the skill folder (the jackwener/xiaohongshu-cli repository) into .claude/skills/xiaohongshu-cli in your project. Claude Code loads it when a task matches its description.

How do I install Xiaohongshu CLI in Codex?

Run `npx skills add jackwener/xiaohongshu-cli --skill xiaohongshu-cli -a codex`. Or copy the skill folder (the jackwener/xiaohongshu-cli repository) into .agents/skills/xiaohongshu-cli in your project. Codex loads it when a task matches its description.

Can I use Xiaohongshu CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jackwener/xiaohongshu-cli --skill xiaohongshu-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xiaohongshu-cli, .gemini/skills/xiaohongshu-cli, .github/skills/xiaohongshu-cli and .opencode/skills/xiaohongshu-cli in your project.

What does Xiaohongshu CLI need to run?

Going by SKILL.md and its folder, Xiaohongshu CLI needs Python for the scripts in its folder and the command-line tools its instructions call (jq and uv). Our summary lists: Python 3.

Does Xiaohongshu CLI access the network?

SKILL.md names 2 domains. In commands or code: xiaohongshu.com; the agent is likely to contact it when it follows the instructions. As links in the text: github.com. This is read from the text; nothing was executed.

Is Xiaohongshu CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Xiaohongshu CLI use?

No licence was found for Xiaohongshu CLI or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Xiaohongshu CLI use?

About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Xiaohongshu CLI?

Skills that share tags, products or a category with Xiaohongshu CLI: Agent Reach (Panniantong/Agent-Reach, 93k stars), Guizang Social Cards (op7418/guizang-social-card-skill, 7.4k stars), Video Podcast Maker (Agents365-ai/video-podcast-maker, 1.7k stars) and Xhs Note Creator (comeonzhj/Auto-Redbook-Skills, 2.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xiaohongshu CLI?

jackwener (a GitHub user) maintains it in jackwener/xiaohongshu-cli, which has 2,656 GitHub stars. The repository was last updated on March 21, 2026.

Source: jackwener/xiaohongshu-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.