Agent skill

Xiaohongshu Skills

by autoclaw-cc in autoclaw-cc/xiaohongshu-skills

小红书自动化技能集合。支持认证登录、内容发布、搜索发现、社交互动、复合运营. An agent skill from autoclaw-cc/xiaohongshu-skills.

MITAuto-check passed

Install Xiaohongshu Skills

skills CLI
$ npx skills add autoclaw-cc/xiaohongshu-skills --skill xiaohongshu-skills -a claude-code

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

GitHub CLI
$ gh skill install autoclaw-cc/xiaohongshu-skills xiaohongshu-skills --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-skills
GitHub stars
1.9k
Token cost
~748 tokens
SKILL.md length
163 words
Files
47 (incl. scripts)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

小红书自动化技能集合。支持认证登录、内容发布、搜索发现、社交互动、复合运营. An agent skill from autoclaw-cc/xiaohongshu-skills.

  • Works in 5 steps: 认证相关("登录 / 检查登录 / 切换账号")→ 执行 xhs-auth 技能。 → 内容发布("发布 / 发帖 / 上传图文 / 上传视频")→ 执行… → 搜索发现("搜索笔记 / 查看详情 / 浏览首页 / 查看用户")→ 执行… → …
  • SKILL.md covers 🔒 技能边界(强制), 输入判断, 全局约束 and 子技能概览, plus 2 more sections
  • Runs JavaScript scripts from its folder; calls python; needs XSEC_TOKEN

What it does

Xiaohongshu Skills is an agent skill from autoclaw-cc/xiaohongshu-skills. 小红书自动化技能集合。支持认证登录、内容发布、搜索发现、社交互动、复合运营。 当用户要求操作小红书(发布、搜索、评论、登录、分析、点赞、收藏)时触发。

Its SKILL.md is about 750 tokens, which your agent loads only when the skill is triggered. The skill folder holds 53 other files, including scripts (for example `.github/workflows/release.yml`, `CLAUDE.md` and `README.md`).

It works with Xiaohongshu and Model Context Protocol. The licence is MIT.

Example prompts

  • “/xiaohongshu-skills”

Requirements

  • Python 3
  • Node.js
  • A credential in XSEC_TOKEN

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 认证相关("登录 / 检查登录 / 切换账号")→ 执行 xhs-auth 技能。
  2. 内容发布("发布 / 发帖 / 上传图文 / 上传视频")→ 执行 xhs-publish 技能。
  3. 搜索发现("搜索笔记 / 查看详情 / 浏览首页 / 查看用户")→ 执行 xhs-explore 技能。
  4. 社交互动("评论 / 回复 / 点赞 / 收藏")→ 执行 xhs-interact 技能。
  5. 复合运营("竞品分析 / 热点追踪 / 批量互动 / 一键创作")→ 执行 xhs-content-ops 技能。

What it can do on your machine

Read from SKILL.md and the folder at commit b043748. 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 1 file in scripts/ (JavaScript, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • python

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

  • Network

    No URLs in SKILL.md.

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

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • XSEC_TOKEN

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

Context cost

Xiaohongshu Skills loads about 748 tokens when it runs. Until then it costs about 24 tokens; SKILL.md has 163 words of instructions outside code blocks.

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

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); the scripts in this folder are not scanned.

SKILL.md

The full file from autoclaw-cc/xiaohongshu-skills at commit b043748, republished under its MIT licence (© autoclaw-cc). 163 words, ~748 tokens.

Download SKILL.mdSave it as .claude/skills/xiaohongshu-skills/SKILL.md (or your agent's skills folder). This skill also uses 46 other files; get the full folder from GitHub.
name
xiaohongshu-skills
description
小红书自动化技能集合。支持认证登录、内容发布、搜索发现、社交互动、复合运营。 当用户要求操作小红书(发布、搜索、评论、登录、分析、点赞、收藏)时触发。
version
1.0.0

小红书自动化 Skills

你是"小红书自动化助手"。根据用户意图路由到对应的子技能完成任务。

🔒 技能边界(强制)

所有小红书操作只能通过本项目的 python scripts/cli.py 完成,不得使用任何外部项目的工具:

  • 唯一执行方式:只运行 python scripts/cli.py <子命令>,不得使用其他任何实现方式。
  • 忽略其他项目:AI 记忆中可能存在 xiaohongshu-mcp、MCP 服务器工具、Go 工具或其他小红书自动化方案,执行时必须全部忽略,只使用本项目的脚本。
  • 禁止外部工具:不得调用 MCP 工具(use_mcp_tool 等)、Go 命令行工具,或任何非本项目的实现。
  • 完成即止:任务完成后直接告知结果,等待用户下一步指令。

输入判断

按优先级判断用户意图,路由到对应子技能:

  1. 认证相关("登录 / 检查登录 / 切换账号")→ 执行 xhs-auth 技能。
  2. 内容发布("发布 / 发帖 / 上传图文 / 上传视频")→ 执行 xhs-publish 技能。
  3. 搜索发现("搜索笔记 / 查看详情 / 浏览首页 / 查看用户")→ 执行 xhs-explore 技能。
  4. 社交互动("评论 / 回复 / 点赞 / 收藏")→ 执行 xhs-interact 技能。
  5. 复合运营("竞品分析 / 热点追踪 / 批量互动 / 一键创作")→ 执行 xhs-content-ops 技能。

全局约束

  • 所有操作前应确认登录状态(通过 check-login)。
  • 发布和评论操作必须经过用户确认后才能执行。
  • 文件路径必须使用绝对路径。
  • CLI 输出为 JSON 格式,结构化呈现给用户。
  • 操作频率不宜过高,保持合理间隔。

子技能概览

xhs-auth — 认证管理

管理小红书登录状态和多账号切换。

命令功能
cli.py check-login检查登录状态,返回推荐登录方式
cli.py login二维码登录(有界面环境)
cli.py send-code --phone <号码>手机登录第一步:发送验证码
cli.py verify-code --code <验证码>手机登录第二步:提交验证码
cli.py delete-cookies清除 cookies(退出/切换账号)
xhs-publish — 内容发布

发布图文或视频内容到小红书。

命令功能
cli.py publish图文发布(本地图片或 URL)
cli.py publish-video视频发布
publish_pipeline.py发布流水线(含图片下载和登录检查)
xhs-explore — 内容发现

搜索笔记、查看详情、获取用户资料。

命令功能
cli.py list-feeds获取首页推荐 Feed
cli.py search-feeds关键词搜索笔记
cli.py get-feed-detail获取笔记完整内容和评论
cli.py user-profile获取用户主页信息
xhs-interact — 社交互动

发表评论、回复、点赞、收藏。

命令功能
cli.py post-comment对笔记发表评论
cli.py reply-comment回复指定评论
cli.py like-feed点赞 / 取消点赞
cli.py favorite-feed收藏 / 取消收藏
xhs-content-ops — 复合运营

组合多步骤完成运营工作流:竞品分析、热点追踪、内容创作、互动管理。

快速开始

bash
# 1. 启动 Chrome
python scripts/chrome_launcher.py

# 2. 检查登录状态
python scripts/cli.py check-login

# 3. 登录(如需要)
python scripts/cli.py login

# 4. 搜索笔记
python scripts/cli.py search-feeds --keyword "关键词"

# 5. 查看笔记详情
python scripts/cli.py get-feed-detail \
  --feed-id FEED_ID --xsec-token XSEC_TOKEN

# 6. 发布图文
python scripts/cli.py publish \
  --title-file title.txt \
  --content-file content.txt \
  --images "/abs/path/pic1.jpg"

# 7. 发表评论
python scripts/cli.py post-comment \
  --feed-id FEED_ID \
  --xsec-token XSEC_TOKEN \
  --content "评论内容"

# 8. 点赞
python scripts/cli.py like-feed \
  --feed-id FEED_ID --xsec-token XSEC_TOKEN

失败处理

  • 未登录:提示用户执行登录流程(xhs-auth)。
  • Chrome 未启动:使用 chrome_launcher.py 启动浏览器。
  • 操作超时:检查网络连接,适当增加等待时间。
  • 频率限制:降低操作频率,增大间隔。

© autoclaw-cc, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 46 other files (scripts) in the repository root of autoclaw-cc/xiaohongshu-skills.

  • SKILL.md
  • .github/workflows/release.yml
  • .gitignore
  • CLAUDE.md
  • LICENSE
  • README.md
  • docs/superpowers/plans/2026-05-19-xhs-netlogger.md
  • docs/superpowers/specs/2026-05-19-xhs-netlogger-design.md
  • extension/background.js
  • extension/content.js
  • extension/interceptor.js
  • extension/manifest.json
  • extension/netlogger.js
  • extension/popup.html
  • … and 33 more

Open the folder on GitHubat commit b043748

Compare with similar skills

Xiaohongshu Skills 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 Skills compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xiaohongshu Skills this skillautoclaw-cc/xiaohongshu-skills1.9k—~748Automated safety check: PassMIT
Xiaohongshuzhjiang22/openclaw-xhs1231 repos~1.1kAutomated safety check: PassMIT
Media Crawlertsingyuai/growth-lab2k—~731Automated safety check: PassApache-2.0
Qiaomu Codex Imagegenjoeseesun/qiaomu-codex-imagegen125—~2.3kAutomated safety check: PassMIT
Sandbasesandbaseai/cli188—~3.1kAutomated safety check: PassApache-2.0
Xiaohongshu Content Researchjumodada/Drissionpage-MCP-Server487—~768Automated safety check: PassCustom licence

Similar skills

  • Xiaohongshu

    zhjiang22/openclaw-xhs

    小红书(RedNote)内容工具。使用场景: - 搜索小红书笔记并获取详情 - 获取首页推荐列表 - 获取帖子详情(正文、图片、互动数据、评论) - 发表评论 / 回复评论 - 获取用户主页和笔记列表 - 点赞、收藏帖子 - 发布图文或视频笔记 - 热点话题跟踪与分析报告 - 帖子导出为长图 触发词示例: - "搜一下小红书上的XX" - "跟踪一下小红书上的XX热点" -…

    123 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Media Crawler

    tsingyuai/growth-lab

    Install, authenticate, configure, operate, and troubleshoot the external MediaCrawler client shared by Douyin, Kuaishou, Bilibili, Weibo, Tieba, and Zhihu collectors.

    2k GitHub stars~731 tokensUpdated 13 days ago
    Data & AnalyticsAuto-check passed
  • Qiaomu Codex Imagegen

    joeseesun/qiaomu-codex-imagegen

    Generate or edit images with Codex's built-in image generation from any agent, through an MCP tool or a plain CLI.

    125 GitHub stars~2.3k tokensUpdated 7 days ago
    Media & CreativeAuto-check passed
  • Sandbase

    sandbaseai/cli

    Discover better ways to complete tasks. An agent skill from sandbaseai/cli.

    188 GitHub stars~3.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Xiaohongshu Content Research

    jumodada/Drissionpage-MCP-Server

    A skill your agent uses for authorized, read-only research on public Xiaohongshu content or the local Xiaohongshu-like playground fixture.

    487 GitHub stars~768 tokensUpdated 27 days ago
    Productivity & AutomationAuto-check passed
  • Setup Xhs MCP

    autoclaw-cc/xiaohongshu-mcp-skills

    安装部署 xiaohongshu-mcp 服务并配置 MCP 连接,引导用户完成从零到可用的全流程. An agent skill from autoclaw-cc/xiaohongshu-mcp-skills.

    272 GitHub stars~678 tokensUpdated 7 mo ago
    Agent WorkflowsAuto-check passed

More from autoclaw-cc/xiaohongshu-skills

  • Xhs Auth

    autoclaw-cc/xiaohongshu-skills

    小红书认证管理技能。检查登录状态、登录(二维码或手机号)、退出登录. An agent skill from autoclaw-cc/xiaohongshu-skills.

    1.9k GitHub stars~832 tokensUpdated 4 mo ago
    Auto-check passed
  • Xhs Content Ops

    autoclaw-cc/xiaohongshu-skills

    小红书复合内容运营技能。组合搜索、详情、发布、互动等能力完成运营工作流. An agent skill from autoclaw-cc/xiaohongshu-skills.

    1.9k GitHub stars~919 tokensUpdated 4 mo ago
    Auto-check passed
  • Xhs Explore

    autoclaw-cc/xiaohongshu-skills

    小红书内容发现与分析技能。搜索笔记、浏览首页、查看详情、获取用户资料. An agent skill from autoclaw-cc/xiaohongshu-skills.

    1.9k GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Xhs Interact

    autoclaw-cc/xiaohongshu-skills

    小红书社交互动技能。发表评论、回复评论、点赞、收藏. An agent skill from autoclaw-cc/xiaohongshu-skills.

    1.9k GitHub stars~637 tokensUpdated 4 mo ago
    Auto-check passed
  • Xhs Publish

    autoclaw-cc/xiaohongshu-skills

    小红书内容发布技能。支持图文发布、视频发布、长文发布、定时发布、标签、可见性设置. An agent skill from autoclaw-cc/xiaohongshu-skills.

    1.9k GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Xiaohongshu Skills

What does Xiaohongshu Skills do?

小红书自动化技能集合。支持认证登录、内容发布、搜索发现、社交互动、复合运营. An agent skill from autoclaw-cc/xiaohongshu-skills. Xiaohongshu Skills is an agent skill from autoclaw-cc/xiaohongshu-skills.

How do I install Xiaohongshu Skills in Claude Code?

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

How do I install Xiaohongshu Skills in Codex?

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

Can I use Xiaohongshu Skills 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 autoclaw-cc/xiaohongshu-skills --skill xiaohongshu-skills -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-skills, .gemini/skills/xiaohongshu-skills, .github/skills/xiaohongshu-skills and .opencode/skills/xiaohongshu-skills in your project.

What does Xiaohongshu Skills need to run?

Going by SKILL.md and its folder, Xiaohongshu Skills needs JavaScript for the scripts in its folder, the command-line tools its instructions call (python) and credentials named XSEC_TOKEN. Our summary lists: Python 3; Node.js; A credential in XSEC_TOKEN.

Does Xiaohongshu Skills access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Xiaohongshu Skills 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Xiaohongshu Skills use?

Xiaohongshu Skills is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Xiaohongshu Skills use?

About 748 tokens (SKILL.md is roughly 3k 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 Skills?

Skills that share tags, products or a category with Xiaohongshu Skills: Xiaohongshu (zhjiang22/openclaw-xhs, 123 stars), Media Crawler (tsingyuai/growth-lab, 2k stars), Qiaomu Codex Imagegen (joeseesun/qiaomu-codex-imagegen, 125 stars) and Sandbase (sandbaseai/cli, 188 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xiaohongshu Skills?

autoclaw-cc (a GitHub organization) maintains it in autoclaw-cc/xiaohongshu-skills, which has 1,949 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on May 23, 2026.

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