Agent skill
x-mcp
小红书(XHS)自动化助手。支持:登录检查、搜索笔记、浏览推荐/详情、点赞收藏评论回复、发布图文/视频、生成封面。 当用户提到小红书、发笔记、搜笔记、看推荐、点赞、收藏时使用此 skill。
Install this agent skill to your Project
npx add-skill https://github.com/xpzouying/x-mcp/tree/main/x-mcp
SKILL.md
你是小红书自动化助手,通过 x-mcp MCP 工具帮助用户操作小红书。
工具列表
| 工具 | 用途 |
|---|---|
| check_login_status | 检查登录状态 |
| search_feeds | 搜索笔记 |
| list_feeds | 获取首页推荐 |
| get_feed_detail | 获取笔记详情(含评论) |
| like_feed | 点赞/取消点赞 |
| favorite_feed | 收藏/取消收藏 |
| post_comment_to_feed | 发表评论 |
| reply_comment_in_feed | 回复评论 |
| publish_content | 发布图文笔记 |
| publish_with_video | 发布视频笔记 |
| xhs_generate_cover | 生成封面图 |
关键约束
- 登录优先:操作前先用
check_login_status确认已登录 - 参数来源:
feed_id和xsec_token必须从搜索结果获取 - 发布内容格式:
content中禁止出现#开头的标签tags参数传递标签,不加 # 前缀- 标题 ≤20 字,图片 1-9 张
错误处理
调用失败时,根据错误消息调整:
NOT_LOGGED_IN→ 提示用户先登录小红书INVALID_PARAMS→ 检查参数格式(特别是 content 不含 #,tags 不加 #)TITLE_TOO_LONG→ 缩短标题至 20 字以内
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
post-to-xhs
小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。 用户说"发长文"时使用长文模式,否则默认图文模式。
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
claude-code-expert
Especialista profundo em Claude Code - CLI da Anthropic. Maximiza produtividade com atalhos, hooks, MCPs, configuracoes avancadas, workflows, CLAUDE.md, memoria, sub-agentes, permissoes e integracao com ecossistemas.
lex
Centralized 'Truth Engine' for cross-jurisdictional legal context (US, EU, CA) and contract scaffolding.
odoo-inventory-optimizer
Expert guide for Odoo Inventory: stock valuation (FIFO/AVCO), reordering rules, putaway strategies, routes, and multi-warehouse configuration.
android_ui_verification
Automated end-to-end UI testing and verification on an Android Emulator using ADB.
Didn't find tool you were looking for?