/social-media-scraping:xiaohongshu-skillsfrom social-media-scraping
Automates Xiaohongshu (RED) operations including login, content publishing, search, and social interactions via a Python CLI. Useful for content creators and marketers managing RED accounts.
Ships in social-media-scraping. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
你是"小红书自动化助手"。根据用户意图路由到对应的子技能完成任务。
所有小红书操作只能通过本项目的 python scripts/cli.py 完成,不得使用任何外部项目的工具:
python scripts/cli.py <子命令>,不得使用其他任何实现方式。xiaohongshu-mcp、MCP 服务器工具、Go 工具或其他小红书自动化方案,执行时必须全部忽略,只使用本项目的脚本。use_mcp_tool 等)、Go 命令行工具,或任何非本项目的实现。按优先级判断用户意图,路由到对应子技能:
xhs-auth 技能。xhs-publish 技能。xhs-explore 技能。xhs-interact 技能。xhs-content-ops 技能。check-login)。管理小红书登录状态和多账号切换。
| 命令 | 功能 |
|---|---|
cli.py check-login | 检查登录状态,返回推荐登录方式 |
cli.py login | 二维码登录(有界面环境) |
cli.py send-code --phone <号码> | 手机登录第一步:发送验证码 |
cli.py verify-code --code <验证码> | 手机登录第二步:提交验证码 |
cli.py delete-cookies | 清除 cookies(退出/切换账号) |
发布图文或视频内容到小红书。
| 命令 | 功能 |
|---|---|
cli.py publish | 图文发布(本地图片或 URL) |
cli.py publish-video | 视频发布 |
publish_pipeline.py | 发布流水线(含图片下载和登录检查) |
搜索笔记、查看详情、获取用户资料。
| 命令 | 功能 |
|---|---|
cli.py list-feeds | 获取首页推荐 Feed |
cli.py search-feeds | 关键词搜索笔记 |
cli.py get-feed-detail | 获取笔记完整内容和评论 |
cli.py user-profile | 获取用户主页信息 |
发表评论、回复、点赞、收藏。
| 命令 | 功能 |
|---|---|
cli.py post-comment | 对笔记发表评论 |
cli.py reply-comment | 回复指定评论 |
cli.py like-feed | 点赞 / 取消点赞 |
cli.py favorite-feed | 收藏 / 取消收藏 |
组合多步骤完成运营工作流:竞品分析、热点追踪、内容创作、互动管理。
# 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
chrome_launcher.py 启动浏览器。CLAUDE.md (opens in a new tab)LICENSE (opens in a new tab)README.md (opens in a new tab)pyproject.toml (opens in a new tab)scripts/bridge_server.py (opens in a new tab)scripts/cli.py (opens in a new tab)scripts/image_downloader.py (opens in a new tab)scripts/run_lock.py (opens in a new tab)scripts/title_utils.py (opens in a new tab)scripts/xhs/__init__.py (opens in a new tab)scripts/xhs/bridge.py (opens in a new tab)scripts/xhs/cdp.py (opens in a new tab)scripts/xhs/comment.py (opens in a new tab)scripts/xhs/cookies.py (opens in a new tab)scripts/xhs/errors.py (opens in a new tab)scripts/xhs/feed_detail.py (opens in a new tab)scripts/xhs/feeds.py (opens in a new tab)scripts/xhs/human.py (opens in a new tab)scripts/xhs/like_favorite.py (opens in a new tab)scripts/xhs/login.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/browser-automation统一自动化入口。覆盖浏览器自动化(Playwright)和 Windows 桌面应用自动化(OpenReverse)。
浏览器场景:打开网页、点击、填表、爬取、截图、自动化登录、渗透页面交互。
桌面场景:操作 IDA/x64dbg 等 GUI 工具、Windows UI Automation、视觉驱动交互、桌面应用网络抓包。
触发关键词:浏览器自动化、桌面自动化、打开网页、填表、爬取、截图、自动化登录、Playwright、agent-browser、headless、OpenReverse、UIA、CUA、桌面操作、Windows 自动化。
/browser-extension-reverseUse for authorized reverse engineering of browser extensions (Chrome/Firefox) including manifest analysis, background workers, and extension-based credential or traffic logic recovery./chrome-extensionsBuild and publish Chrome Extensions using Manifest V3 best practices. Use this skill whenever the user asks to create, modify, debug, or understand Chrome browser extensions, add-ons, or anything involving the Chrome Extensions API. Trigger on mentions of: 'Chrome extension', 'browser extension', 'manifest.json', 'content script', 'service worker' (in browser context), 'popup' (in browser extension context), 'side panel', 'chrome.* API', 'declarativeNetRequest', 'omnibox', 'context menu' (in extension context), 'userScripts', 'user script', 'script manager', or any request to build functionality that integrates with the Chrome browser UI. Also trigger for publishing to the Chrome Web Store: 'publish extension', preparing an extension for publishing, responding to a review rejection, writing permission justifications, or drafting a privacy policy.
npx claudepluginhub skillmds/skillmd --plugin social-media-scrapingOther plugins' skills for the same job