
Xiaohongshu
Operate Xiaohongshu (RED/XHS) through xiaohongshu-mcp: login, publish, search, interact, and plan content without bypassing the MCP stack.
Overview
Xiaohongshu is an agent skill most often used in Launch (also Grow) that routes RED/XHS actions through xiaohongshu-mcp with MCP availability, login, and user-confirm gates before publish or comment.
Install
npx skills add https://github.com/autoclaw-cc/xiaohongshu-mcp-skills --skill xiaohongshuWhat is this skill?
- MCP-gated router: install, login, post, search, explore, interact, profile, content-plan subflows
- Hard gate: if check_login_status is missing, only prompt /setup-xhs-mcp—no Playwright/WebFetch substitutes
- Write ops (publish, comment) require user confirmation before send
- feed_id and xsec_token must come from search/browse results, never fabricated
- Triggers on 小红书/RED/XHS phrasing and implicit种草/博主 scenarios
- 8 routed intent paths: setup, login, post, search, explore, interact, profile, content-plan
- 4 global constraints: MCP connection, login priority, user confirm on writes, non-fabricated feed parameters
Adoption & trust: 2.4k installs on skills.sh; 224 GitHub stars; 1/3 security scanners passed (skills.sh audits).
What problem does it solve?
You want to run 小红书 posting and research from your agent but keep ending up with broken automations when MCP is not wired or IDs are guessed.
Who is it for?
Indie operators and creator-founders already deploying xiaohongshu-mcp who need consistent login, publish, and search playbooks in Chinese social.
Skip if: Users unwilling to run setup-xhs-mcp, or workflows that require bypassing MCP with Playwright/WebFetch when tools are offline.
When should I use this skill?
User mentions 小红书, 红书, XHS, RED, 发笔记, 搜笔记, 种草, 博主, or describes clearly XHS-native scenarios.
What do I get? / Deliverables
Your agent follows the intent router to the right xiaohongshu-mcp subflow, confirms writes with you, and uses only tool-returned feed_id and xsec_token values.
- Routed MCP operations (search, read feeds, profile views)
- User-approved publishes or comments on Xiaohongshu
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Publishing and discovery on XHS is distribution work—canonical Launch shelf—even though planning and engagement spill into Grow. Distribution covers getting notes live, search visibility, and profile-level reach on a consumer social channel.
Where it fits
After login check, draft a图文 note and hold for your OK before post-to-xhs sends it live.
Run xhs-content-plan for 选题 and competitor angles before a product drop week.
Use xhs-search to collect real feed_id values then open detail via xhs-explore for comment tone research.
Use xhs-interact to reply to high-intent comments only after you confirm the text.
How it compares
MCP-orchestrated social ops skill—not generic web scraping or a Western-only scheduling SaaS.
Common Questions / FAQ
Who is xiaohongshu for?
Solo builders and marketers on RED who connect xiaohongshu-mcp to their agent and need guarded login, publish, and discovery flows.
When should I use xiaohongshu?
At Launch for distributing notes and search visibility, and at Grow for content planning, competitor reads, likes, comments, and blogger profile research.
Is xiaohongshu safe to install?
Write actions are user-confirmed and account-linked; check Security Audits on this page and treat posts/comments as irreversible public actions.
SKILL.md
READMESKILL.md - Xiaohongshu
你是小红书自动化助手,通过 xiaohongshu-mcp 的 MCP 工具帮助用户操作小红书。 ## 前置检查(每次执行必做) 所有小红书操作依赖 xiaohongshu-mcp 提供的 MCP 工具(如 `check_login_status`、`search_feeds` 等)。执行任何操作前,先确认这些工具是否可用: **判断方法**:检查当前可用的 MCP 工具列表中是否存在 `check_login_status`。 - **工具存在** → 正常执行后续流程 - **工具不存在** → 说明 xiaohongshu-mcp 服务未配置。直接告知用户:「小红书 MCP 服务尚未连接,请先运行 `/setup-xhs-mcp` 完成部署和配置。」不要尝试用其他工具(如 Playwright、WebFetch)代替。 ## 意图识别与路由 根据用户输入判断意图,然后直接按对应子 skill 的指令执行。如果意图不明确,先询问用户想做什么。 | 用户意图 | 执行 | 典型说法 | |---|---|---| | 安装部署 | 按 `setup-xhs-mcp` 执行 | 安装、部署、配置、第一次用、连不上 | | 登录 | 按 `xhs-login` 执行 | 登录、扫码、切换账号、检查登录 | | 发布内容 | 按 `post-to-xhs` 执行 | 发笔记、发图文、发视频、写一篇、上传 | | 搜索 | 按 `xhs-search` 执行 | 搜索、找笔记、搜一下、有没有 | | 浏览详情 | 按 `xhs-explore` 执行 | 推荐、首页、看详情、看评论 | | 互动 | 按 `xhs-interact` 执行 | 点赞、收藏、评论、回复 | | 查看用户 | 按 `xhs-profile` 执行 | 博主主页、看看这个作者 | | 内容策划 | 按 `xhs-content-plan` 执行 | 选题、竞品分析、热门、涨粉 | ## 全局约束 1. **MCP 连接优先**:必须通过前置检查确认 MCP 工具可用后才能执行任何操作——不可用时只提示用户运行 `/setup-xhs-mcp`,禁止用 Playwright、WebFetch 或其他非 xiaohongshu-mcp 的工具替代 2. **登录优先**:MCP 连接就绪后,除安装部署外,操作前先用 `check_login_status` 确认登录状态——未登录的情况下调用其他工具会失败 3. **用户确认**:发布、评论等写操作执行前展示内容让用户确认——因为这些操作发出后无法撤回,代表用户的公开行为 4. **参数来源**:`feed_id` 和 `xsec_token` 必须从搜索或浏览结果中获取,不可编造——编造的参数会导致 MCP 工具报错 # If you prefer the allow list template instead of the deny list, see community template: # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore # # Binaries for programs and plugins *.exe *.exe~ *.dll *.so *.dylib # Test binary, built with `go test -c` *.test # Code coverage profiles and other test artifacts *.out coverage.* *.coverprofile profile.cov # Dependency directories (remove the comment below to include it) # vendor/ # Go workspace file go.work go.work.sum # env file .env # Editor/IDE # .idea/ # .vscode/ # Ralph Loop PROMPT.md .claude/.ralph-loop.local.md # CLAUDE.md Skills 层不包含业务实现代码,所有功能通过调用 xiaohongshu-mcp 的 MCP 工具完成。 ## MCP 工具映射表 | MCP 工具 | 类型 | 对应 Skill | 说明 | |---|---|---|---| | `check_login_status` | ReadOnly | xhs-login | 检查登录状态 | | `get_login_qrcode` | ReadOnly | xhs-login | 获取登录二维码 | | `delete_cookies` | Destructive | xhs-login | 删除 cookies 重置登录 | | `publish_content` | Destructive | post-to-xhs | 发布图文笔记 | | `publish_with_video` | Destructive | post-to-xhs | 发布视频笔记 | | `list_feeds` | ReadOnly | xhs-explore | 获取推荐流 | | `search_feeds` | ReadOnly | xhs-search | 搜索笔记 | | `get_feed_detail` | ReadOnly | xhs-explore | 获取笔记详情和评论 | | `user_profile` | ReadOnly | xhs-profile | 获取用户主页 | | `like_feed` | Destructive | xhs-interact | 点赞/取消点赞 | | `favorite_feed` | Destructive | xhs-interact | 收藏/取消收藏 | | `post_comment_to_feed` | Destructive | xhs-interact | 发表评论 | | `reply_comment_in_feed` | Destructive | xhs-interact | 回复评论 | ## SKILL.md 编写规范 每个 SKILL.md 包含 YAML frontmatter(name + description)和 Markdown 正文。 正文必须包含:输入判断、约束条件、执行流程(含 MCP 工具调用)、失败处理。 编写原则: - 控制在 200 行以内 - Destructive 操作需用户确认 - 工具名和参数必须与 xiaohongshu-mcp 源码一致 ## 参考资源 - **xiaohongshu-mcp 源码**:`~/src/zy/xiaohongshu-mcp`(Go MCP 服务) --- name: xhs-interact description: | 对小红书笔记进行互动:点赞/取消点赞、收藏/取消收藏、发表评论、回复评论。 当用户想对小红书笔记进行互动时使用——赞一下、收藏一下、留个评论、回复某条评论、取消点赞、取消收藏等。 --- ## 输入判断 根据用户意图路由: - 点赞/取消点赞 → 点赞流程 - 收藏/取消收藏 → 收藏流程 - 发表评论 → 评论流程 - 回复评论 → 回复流程 ## 约束 - 评论和回复执行前展示内容让用户确认(评论以用户身份公开发表,无法撤回) - 点赞和收藏可直接执行(操作可逆,MCP 服务有幂等处理) - 所有操作都需要 `feed_id` + `xsec_token`(来自搜索或详情结果,编造会导致报错) ## 执行流程 ### 点赞 调用 `like_feed`: - `feed_id`(string,必填) - `xsec_token`(string,必填) - `unlike`(bool,可选)— true 取消点赞,默认 false 点赞 已点赞时再点赞会自动跳过,反之同理。 ### 收藏 调用 `favorite_feed`: - `feed_id`(string,必填) - `xsec_token`(string,必填) - `unfavorite`(bool,可选)— true 取消收藏,默认 false 收藏 已收藏时再收藏会自动跳过,反之同理。 ### 发表评论 调用 `post_comment_to_feed`: - `feed_id`(string,必填) - `xsec_token`(string,必填) - `content`(string,必填)— 评论内容 发送前展示评论内容让用户确认。 ### 回复评论 调用 `reply_c