A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Claude Skill that publish on Red/Xiaohongshu/小红书
Publish images and notes to Xiaohongshu (小红书) with one command. Uses CDP mode to connect to your existing browser session.
v3.0.0 — Now using agent-browser with CDP mode for seamless browser automation
Publishing to Xiaohongshu manually is tedious:
| Pain Point | Description |
|---|---|
| Login Hassle | Must scan QR code every session |
| Multiple Images | Upload images one by one |
| Content Formatting | Copy-paste text, add tags manually |
| Time Consuming | 5-10 minutes per post |
| Task | Manual | With This Skill |
|---|---|---|
| Login | 30 sec - 1 min | Login once in browser, reuse session |
| Image upload (5 images) | 2-3 min | 30 sec |
| Title & content | 1-2 min | 10 sec |
| Total | 5-10 min | 1-2 min |
5x efficiency improvement
This skill uses CDP (Chrome DevTools Protocol) mode to connect to your existing browser:
1. Start Chrome with debug port
2. Login to Xiaohongshu once in browser
3. AI connects to your browser session
4. Automates publishing while you stay logged in
Images/Markdown File
↓ Python parsing
Structured Data (title, content, images, tags)
↓ agent-browser --cdp 9222
Your Chrome Browser (already logged in)
↓
Draft/Published Note
--cdp 9222 flag| Feature | v2.x | v3.0 |
|---|---|---|
| Connection mode | New browser each time | CDP (connect to existing) |
| Login handling | QR code detection + auth files | Login once in your browser |
| Session management | Auth state files | Browser's own session |
| Command format | npx agent-browser open ... | npx agent-browser --cdp 9222 open ... |
| Requirement | Details |
|---|---|
| Claude Code | claude.ai/code |
| Chrome | Launch with --remote-debugging-port=9222 |
| Python 3.9+ | With dependencies below |
| macOS | Currently macOS only |
# Install Python dependencies
pip install Pillow pyobjc-framework-Cocoa
Before using this skill, start Chrome with remote debugging:
# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
Tip: Add an alias to your shell config (~/.zshrc or ~/.bashrc):
alias chrome-debug='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222'
Then login to Xiaohongshu once: https://creator.xiaohongshu.com/publish/publish
Tip: After login, you can minimize the browser to the Dock. It must stay running, but you don't need to see it.
git clone https://github.com/wshuyi/xiaohongshu-publisher-skill.git
cp -r xiaohongshu-publisher-skill/skills/xiaohongshu-publisher ~/.claude/skills/
/plugin marketplace add wshuyi/xiaohongshu-publisher-skill
/plugin install xiaohongshu-publisher@wshuyi/xiaohongshu-publisher-skill
发布这些图片到小红书: /path/to/photo1.jpg, /path/to/photo2.jpg
标题是"周末探店"
Publish /path/to/note.md to Xiaohongshu
帮我把这篇笔记发到小红书,存草稿就行
/xiaohongshu-publisher /path/to/note.md
[1/5] Verify browser connection...
→ Connect to Chrome via CDP (port 9222)
→ Check if already logged in
[2/5] Parse content...
→ Extract title, content, images, tags
[3/5] Upload images...
→ Upload all images (1-18 supported)
[4/5] Fill title and content...
→ Add title, description, tags
[5/5] Save draft...
→ ✅ Review and publish manually
→ (Or publish directly if requested)
With CDP mode, account switching is handled by Chrome profiles:
发布这些图片到小红书:
- /path/to/photo1.jpg
- /path/to/photo2.jpg
- /path/to/photo3.jpg
标题: 周末好去处
内容: 发现了一家超赞的咖啡店...
标签: 咖啡, 探店, 周末
# 周末好去处


发现了一家超赞的咖啡店,环境特别好!
推荐指数:⭐⭐⭐⭐⭐
#咖啡 #探店 #周末
| Item | Limit |
|---|---|
| Images per note | 1-18 |
| Title length | ~20 characters recommended |
| Content length | ~1000 characters max |
| Tags | Up to 5 recommended |
| Image formats | JPG, PNG, GIF, WebP |
Q: Why CDP mode? A: CDP mode connects to your existing browser session. Benefits:
--cdp 9222Q: Browser not connecting? A: Make sure Chrome is running with debug port:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
Q: Session expired? A: Just re-login in your Chrome browser. The AI will use your active session.
Q: Windows/Linux support? A: Currently macOS only. PRs welcome for cross-platform support.
Q: Image upload failed? A: Check: valid path, supported format (jpg/png/gif/webp), file size within limits.
Q: Can I publish directly instead of draft? A: Yes, specify "直接发布" or "publish now" in your request.
xiaohongshu-publisher-skill/
├── .claude-plugin/
│ └── plugin.json # Plugin config
├── skills/
│ └── xiaohongshu-publisher/
│ ├── SKILL.md # Skill instructions
│ └── scripts/
│ ├── parse_note.py # Content parser
│ └── copy_to_clipboard.py
├── docs/
│ └── GUIDE.md # Detailed guide (中文)
├── README.md # This file (bilingual)
└── LICENSE
一键发布图片笔记到小红书。使用 CDP 模式连接到您已有的浏览器会话。
v3.0.0 — 使用 agent-browser + CDP 模式实现无缝浏览器自动化
手动发布小红书笔记太繁琐:
| 痛点 | 描述 |
|---|---|
| 登录麻烦 | 每次都要扫码登录 |
| 多图上传 | 一张一张上传图片 |
| 内容格式 | 复制粘贴文字,手动加标签 |
| 耗时长 | 每篇笔记 5-10 分钟 |
| 任务 | 手动 | 使用本技能 |
|---|---|---|
| 登录 | 30秒 - 1分钟 | 浏览器登录一次,复用会话 |
| 上传5张图片 | 2-3 分钟 | 30 秒 |
| 填写标题内容 | 1-2 分钟 | 10 秒 |
| 总计 | 5-10 分钟 | 1-2 分钟 |
效率提升 5 倍
本技能使用 CDP (Chrome DevTools Protocol) 模式 连接到您已有的浏览器:
1. 启动带调试端口的 Chrome
2. 在浏览器中登录小红书(只需一次)
3. AI 连接到您的浏览器会话
4. 自动化发布,保持登录状态
图片/Markdown 文件
↓ Python 解析
结构化数据 (标题, 内容, 图片, 标签)
↓ agent-browser --cdp 9222
您的 Chrome 浏览器 (已登录)
↓
草稿/已发布笔记
--cdp 9222 参数连接到您已有的浏览器| 功能 | v2.x | v3.0 |
|---|---|---|
| 连接模式 | 每次新开浏览器 | CDP (连接已有浏览器) |
| 登录处理 | 二维码检测 + auth 文件 | 浏览器登录一次即可 |
| 会话管理 | Auth 状态文件 | 浏览器自带会话 |
| 命令格式 | npx agent-browser open ... | npx agent-browser --cdp 9222 open ... |
| 需求 | 详情 |
|---|---|
| Claude Code | claude.ai/code |
| Chrome | 启动时加 --remote-debugging-port=9222 |
| Python 3.9+ | 需要下列依赖 |
| macOS | 目前仅支持 macOS |
# 安装 Python 依赖
pip install Pillow pyobjc-framework-Cocoa
使用本技能前,先启动带远程调试的 Chrome:
# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
小贴士:在 shell 配置文件 (~/.zshrc 或 ~/.bashrc) 中添加别名:
alias chrome-debug='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222'
然后在浏览器中登录小红书:https://creator.xiaohongshu.com/publish/publish
小贴士:登录后可以把浏览器最小化到 Dock。浏览器需要保持运行,但不需要看到它。
git clone https://github.com/wshuyi/xiaohongshu-publisher-skill.git
cp -r xiaohongshu-publisher-skill/skills/xiaohongshu-publisher ~/.claude/skills/
/plugin marketplace add wshuyi/xiaohongshu-publisher-skill
/plugin install xiaohongshu-publisher@wshuyi/xiaohongshu-publisher-skill
发布这些图片到小红书: /path/to/photo1.jpg, /path/to/photo2.jpg
标题是"周末探店"
帮我把这篇笔记发到小红书,存草稿就行
把 /path/to/note.md 发布到小红书
/xiaohongshu-publisher /path/to/note.md
[1/5] 验证浏览器连接...
→ 通过 CDP 连接到 Chrome(端口 9222)
→ 检查是否已登录
[2/5] 解析内容...
→ 提取标题、内容、图片、标签
[3/5] 上传图片...
→ 上传所有图片(支持 1-18 张)
[4/5] 填写标题和内容...
→ 添加标题、描述、标签
[5/5] 保存草稿...
→ ✅ 请手动检查后发布
→ (或直接发布,如果用户要求)
使用 CDP 模式时,账号切换通过 Chrome 用户配置文件实现:
发布这些图片到小红书:
- /path/to/photo1.jpg
- /path/to/photo2.jpg
- /path/to/photo3.jpg
标题: 周末好去处
内容: 发现了一家超赞的咖啡店...
标签: 咖啡, 探店, 周末
# 周末好去处


发现了一家超赞的咖啡店,环境特别好!
推荐指数:⭐⭐⭐⭐⭐
#咖啡 #探店 #周末
| 项目 | 限制 |
|---|---|
| 每篇图片数 | 1-18 张 |
| 标题长度 | 建议 ~20 字符 |
| 内容长度 | 最多 ~1000 字符 |
| 标签数量 | 建议最多 5 个 |
| 图片格式 | JPG, PNG, GIF, WebP |
Q: 为什么使用 CDP 模式? A: CDP 模式连接到您已有的浏览器会话。好处:
--cdp 9222Q: 浏览器连接不上? A: 确保 Chrome 以调试端口启动:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
Q: 会话过期了? A: 直接在 Chrome 浏览器中重新登录即可。AI 会使用您当前的会话。
Q: 支持 Windows/Linux 吗? A: 目前仅支持 macOS。欢迎提交 PR 支持其他平台。
Q: 图片上传失败? A: 检查:路径是否正确,格式是否支持(jpg/png/gif/webp),文件大小是否超限。
Q: 可以直接发布而不是存草稿吗? A: 可以,在请求中说明 "直接发布" 即可。
xiaohongshu-publisher-skill/
├── .claude-plugin/
│ └── plugin.json # 插件配置
├── skills/
│ └── xiaohongshu-publisher/
│ ├── SKILL.md # 技能说明
│ └── scripts/
│ ├── parse_note.py # 内容解析
│ └── copy_to_clipboard.py
├── docs/
│ └── GUIDE.md # 详细指南
├── README.md # 本文件(双语)
└── LICENSE
--cdp 9222 flag / 通过 --cdp 9222 参数连接到已有浏览器--cdp 9222 / 相同的命令,只需加 --cdp 9222MIT License - see LICENSE
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
AI image generation skill for Claude Code -- Creative Director powered by Gemini