skills/xhs-cli/SKILL.md
小红书 CLI 工具。搜索笔记、查看详情和评论、获取用户信息、账号数据统计、自动发布图文。当用户提到小红书、XHS、红书、笔记搜索、发帖时使用此 Skill。
npx skillsauth add 0xranx/agent-kit xhs-cliInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通过 Playwright 浏览器自动化实现小红书 Web API 调用,无需官方 API Key。
pip install -r requirements.txt && playwright install chromiumpython xhs.py login(会打开浏览器,手动扫码)验证登录状态:
python skills/xhs-cli/xhs.py me
以下情况使用此 Skill:
python skills/xhs-cli/xhs.py search "关键词"
python skills/xhs-cli/xhs.py search "关键词" --sort time # 按时间排序
python skills/xhs-cli/xhs.py search "关键词" --type video # 只搜视频
python skills/xhs-cli/xhs.py detail <note_id> <xsec_token> # 笔记详情
python skills/xhs-cli/xhs.py comments <note_id> <xsec_token> # 评论列表
python skills/xhs-cli/xhs.py note <note_id> <xsec_token> # 详情 + 评论
note_id 和 xsec_token 从搜索结果中获取。
python skills/xhs-cli/xhs.py me # 当前登录用户
python skills/xhs-cli/xhs.py user <user_id> # 查看用户主页
python skills/xhs-cli/xhs.py unread # 未读通知
python skills/xhs-cli/xhs.py stats # 所有帖子数据概览
python skills/xhs-cli/xhs.py stats --detail # 含每篇帖子详情
需要在 config.yaml 中配置 account_name 和 search_keyword。
python skills/xhs-cli/xhs_publish.py login # 创作者中心登录
python skills/xhs-cli/xhs_publish.py publish --draft draft.md --images a.jpg b.jpg # 发布
python skills/xhs-cli/xhs_publish.py publish --draft draft.md --images a.jpg --auto # 跳过确认
草稿文件格式:
## 标题
帖子标题
## 正文
正文内容...
## 话题标签
#标签1 #标签2 #标签3
search "XX" 搜索note <id> <token> 查看详情+评论stats --detail 获取全部帖子数据user <user_id> 获取主页信息comments 看评论区反馈login 扫码登录,Cookie 保存在 data/xhs_cookie.txtxsec_token 有时效性,过期需重新搜索xhs_publish.py logindocumentation
飞书文档助手。读写飞书云文档和知识库,支持创建、导出、精确编辑、同步到知识库、群消息通知。当用户提到飞书文档、知识库、wiki,或发送 feishu.cn 链接时使用此 Skill。
tools
抖音 CLI 工具。搜索视频、查看详情和评论、获取用户信息和作品列表、导出数据。当用户提到抖音、Douyin、短视频搜索时使用此 Skill。
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------