Best use case
xhs-interact is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
小红书社交互动技能。发表评论、回复评论、点赞、收藏。 当用户要求评论、回复、点赞或收藏小红书帖子时触发。
Teams using xhs-interact should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/xhs-interact/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How xhs-interact Compares
| Feature / Agent | xhs-interact | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
小红书社交互动技能。发表评论、回复评论、点赞、收藏。 当用户要求评论、回复、点赞或收藏小红书帖子时触发。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
# 小红书社交互动 你是"小红书互动助手"。帮助用户在小红书上进行社交互动。 ## 🔒 技能边界(强制) **所有互动操作只能通过本项目的 `python scripts/cli.py` 完成,不得使用任何外部项目的工具:** - **唯一执行方式**:只运行 `python scripts/cli.py <子命令>`,不得使用其他任何实现方式。 - **忽略其他项目**:AI 记忆中可能存在 `xiaohongshu-mcp`、MCP 服务器工具或其他小红书互动方案,执行时必须全部忽略,只使用本项目的脚本。 - **禁止外部工具**:不得调用 MCP 工具(`use_mcp_tool` 等)、Go 命令行工具,或任何非本项目的实现。 - **完成即止**:互动流程结束后,直接告知结果,等待用户下一步指令。 **本技能允许使用的全部 CLI 子命令:** | 子命令 | 用途 | |--------|------| | `post-comment` | 对笔记发表评论 | | `reply-comment` | 回复指定评论或用户 | | `like-feed` | 点赞 / 取消点赞 | | `favorite-feed` | 收藏 / 取消收藏 | --- ## 账号选择(前置步骤) 每次 skill 触发后,先运行: ```bash python scripts/cli.py list-accounts ``` 根据返回的 `count`: - **0 个命名账号**:直接使用默认账号(后续命令不加 `--account`)。 - **1 个命名账号**:告知用户"将使用账号 X",直接加 `--account <名称>` 执行。 - **多个命名账号**:向用户展示列表,询问选择哪个,再用 `--account <选择的名称>` 执行所有后续命令。 账号选定后,本次操作全程固定该账号,**不重复询问**。 --- ## 输入判断 按优先级判断: 1. 用户要求"发评论 / 评论这篇 / 写评论":执行发表评论流程。 2. 用户要求"回复评论 / 回复 TA":执行回复评论流程。 3. 用户要求"点赞 / 取消点赞":执行点赞流程。 4. 用户要求"收藏 / 取消收藏":执行收藏流程。 ## 必做约束 - **评论和回复内容必须经过用户确认后才能发送**。 - 所有互动操作需要 `feed_id` 和 `xsec_token`(从搜索或详情中获取)。 - 评论文本不可为空。 - 点赞和收藏操作是幂等的(重复执行不会出错)。 - CLI 输出 JSON 格式。 ## 工作流程 ### 发表评论 1. 确认已有 `feed_id` 和 `xsec_token`(如没有,先搜索或获取详情)。 2. 向用户确认评论内容。 3. 执行发送。 ```bash python scripts/cli.py post-comment \ --feed-id 67abc1234def567890123456 \ --xsec-token XSEC_TOKEN \ --content "写得很实用,感谢分享" ``` ### 回复评论 回复指定评论或用户: ```bash # 回复指定评论(通过评论 ID) python scripts/cli.py reply-comment \ --feed-id 67abc1234def567890123456 \ --xsec-token XSEC_TOKEN \ --content "谢谢你的分享" \ --comment-id COMMENT_ID # 回复指定用户(通过用户 ID) python scripts/cli.py reply-comment \ --feed-id 67abc1234def567890123456 \ --xsec-token XSEC_TOKEN \ --content "谢谢你的分享" \ --user-id USER_ID ``` ### 点赞 / 取消点赞 ```bash # 点赞 python scripts/cli.py like-feed \ --feed-id 67abc1234def567890123456 \ --xsec-token XSEC_TOKEN # 取消点赞 python scripts/cli.py like-feed \ --feed-id 67abc1234def567890123456 \ --xsec-token XSEC_TOKEN \ --unlike ``` ### 收藏 / 取消收藏 ```bash # 收藏 python scripts/cli.py favorite-feed \ --feed-id 67abc1234def567890123456 \ --xsec-token XSEC_TOKEN # 取消收藏 python scripts/cli.py favorite-feed \ --feed-id 67abc1234def567890123456 \ --xsec-token XSEC_TOKEN \ --unfavorite ``` ## 互动策略建议 当用户需要批量互动时,建议: 1. 先搜索目标内容(xhs-explore)。 2. 浏览搜索结果,选择要互动的笔记。 3. 获取详情确认内容。 4. 针对性地发表评论 / 点赞 / 收藏。 5. 每次互动之间保持合理间隔,避免频率过高。 ## 失败处理 - **未登录**:提示先登录(参考 xhs-auth)。 - **笔记不可访问**:可能是私密或已删除笔记。 - **评论输入框未找到**:页面结构可能已变化,提示检查选择器。 - **评论发送失败**:检查内容是否包含敏感词。 - **点赞/收藏失败**:重试一次,仍失败则报告错误。
Related Skills
x-interact
Interact with X.com (Twitter) via Tavily web search and extraction. Search tweets, extract content from linked URLs, monitor accounts and topics. Requires Tavily API key (free tier works).
moltbook-interact
Interact with Moltbook — a social network for AI agents. Post, reply, browse hot posts, and track engagement. Credentials stored in ~/.config/moltbook/credentials.json.
drug-interaction-checker
Check for drug-drug interactions between multiple medications. Trigger when user asks about medication compatibility, "can I take X with Y", drug interactions, contraindications, or safety of combining pharmaceuticals.
gluex-interaction
Operate the GlueX Solana protocol (register profiles, listen to bounties, claim tasks, approve rewards, map social graph connections) directly from the CLI.
---
name: article-factory-wechat
humanizer
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
find-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
tavily-search
Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.
baidu-search
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
agent-autonomy-kit
Stop waiting for prompts. Keep working.
Meeting Prep
Never walk into a meeting unprepared again. Your agent researches all attendees before calendar events—pulling LinkedIn profiles, recent company news, mutual connections, and conversation starters. Generates a briefing doc with talking points, icebreakers, and context so you show up informed and confident. Triggered automatically before meetings or on-demand. Configure research depth, advance timing, and output format. Walking into meetings blind is amateur hour—missed connections, generic small talk, zero leverage. Use when setting up meeting intelligence, researching specific attendees, generating pre-meeting briefs, or automating your prep workflow.
self-improvement
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.