xiaohongshu-skills

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

autoclaw-cc/xiaohongshu-skillsUpdated Jun 15, 2026

Works with

Claude CodeCursorClineWindsurfCodexGooseGitHub CopilotZed

16

total installs

16

this week

951

GitHub stars

0

upvotes

Install Skill

Run in your terminal

$npx skills add https://github.com/autoclaw-cc/xiaohongshu-skills --skill xiaohongshu-skills

16

installs

16

this week

951

stars

Installation Guide

How to use xiaohongshu-skills on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your machine
  • Node.js 16+ with npm — verify with node --version
  • Active project directory where you want to add xiaohongshu-skills
2

Run the install command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/autoclaw-cc/xiaohongshu-skills --skill xiaohongshu-skills

Fetches xiaohongshu-skills from autoclaw-cc/xiaohongshu-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI shows a list of agents. Use arrow keys and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ────────────────
│ · Cline · Codex · Goose · Windsurf
│ ●Cursor(selected)
│ · Cursor · Aider · Continue
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/xiaohongshu-skills

Restart Cursor to activate xiaohongshu-skills. Access via /xiaohongshu-skills in your agent's command palette.

Security Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.

Documentation

小红书自动化 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 — 复合运营

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

快速开始

# 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 启动浏览器。
  • 操作超时:检查网络连接,适当增加等待时间。
  • 频率限制:降低操作频率,增大间隔。

List & Monetize Your Skill

Submit your Claude Code skill and start earning

Get started →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Steps

  1. 1Install product management skill
  2. 2Start with user story generation for known feature
  3. 3Progress to competitive analysis: research 2-3 competitors
  4. 4Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5Draft stakeholder communications and refine based on feedback
  6. 6Build template library for recurring PM tasks
  7. 7Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use when

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid when

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Related Skills

Reviews

4.727 reviews
  • N
    Noah KapoorDec 16, 2024

    xiaohongshu-skills fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • O
    Omar MenonNov 7, 2024

    xiaohongshu-skills is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • O
    Omar PerezOct 26, 2024

    Solid pick for teams standardizing on skills: xiaohongshu-skills is focused, and the summary matches what you get after install.

  • S
    Sakshi PatilSep 13, 2024

    Solid pick for teams standardizing on skills: xiaohongshu-skills is focused, and the summary matches what you get after install.

  • H
    Harper GuptaSep 5, 2024

    I recommend xiaohongshu-skills for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • A
    Aanya MartinSep 5, 2024

    xiaohongshu-skills fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • O
    Omar WhiteAug 24, 2024

    Keeps context tight: xiaohongshu-skills is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • C
    Carlos KhannaAug 24, 2024

    xiaohongshu-skills has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • C
    Chaitanya PatilAug 4, 2024

    xiaohongshu-skills is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • P
    Piyush GJul 23, 2024

    xiaohongshu-skills fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

showing 1-10 of 27

1 / 3

Discussion

Comments — not star reviews
  • No comments yet — start the thread.