Publish images and notes to Xiaohongshu (小红书) Creator Platform using agent-browser with CDP (Chrome DevTools Protocol) mode.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionxiaohongshu-publisherExecute the skills CLI command in your project's root directory to begin installation:
Fetches xiaohongshu-publisher from iamzifei/red-publisher-skill and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate xiaohongshu-publisher. Access via /xiaohongshu-publisher in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
8
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
8
stars
Publish images and notes to Xiaohongshu (小红书) Creator Platform using agent-browser with CDP (Chrome DevTools Protocol) mode.
This skill uses CDP mode - connecting to an existing browser instance where the user is already logged in. This approach:
--cdp flagThis skill ALWAYS saves notes as DRAFT by default. It will NEVER auto-publish.
Only click the "发布" (publish) button if the user EXPLICITLY requests immediate publishing with phrases like:
If unsure, ALWAYS save as draft and let user review before publishing.
Before using this skill, the user must launch Chrome with remote debugging enabled:
macOS:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
Or create an alias in ~/.zshrc or ~/.bashrc:
alias chrome-debug='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222'
Then simply run: chrome-debug
In the Chrome browser (with debug port), navigate to:
https://creator.xiaohongshu.com/publish/publish
Login using QR code scan with Xiaohongshu App. This only needs to be done once - the session persists in the browser.
Note: After login, you can minimize the browser window to the Dock. The browser must stay running (not closed) for CDP to work, but you don't need to see it.
pip install Pillow pyobjc-framework-Cocoa
All commands use the --cdp 9222 flag to connect to the existing Chrome browser:
# Navigation
npx agent-browser --cdp 9222 open <url> # Navigate to URL
npx agent-browser --cdp 9222 snapshot -i # Get page snapshot with element refs
# Element Interaction
npx agent-browser --cdp 9222 click @e5 # Click element by ref
npx agent-browser --cdp 9222 fill @e2 "text" # Fill input field
npx agent-browser --cdp 9222 type @e3 "text" # Type text into element
npx agent-browser --cdp 9222 upload @e4 "/path/to/file.jpg" # Upload file
# Keyboard & Wait
npx agent-browser --cdp 9222 press Enter # Press key
npx agent-browser --cdp 9222 wait 2000 # Wait milliseconds
npx agent-browser --cdp 9222 wait --text "发布" # Wait for text
# Screenshot
npx agent-browser --cdp 9222 screenshot # Take screenshot
Important:
snapshot -i output. Always take a snapshot before interacting.--cdp 9222 flag connects to the browser's debug port instead of launching a new browser.close command as it would close the user's browser!Located in ~/.claude/skills/xiaohongshu-publisher/scripts/:
Parse Markdown and extract structured data for Xiaohongshu notes:
python parse_note.py <markdown_file> [--output json]
Returns JSON with: title, content, images (list of paths), tags
Copy image to system clipboard for pasting:
python copy_to_clipboard.py image /path/to/image.jpg [--quality 80]
CRITICAL: First verify that the CDP browser is running and connected.
Check if browser is accessible:
npx agent-browser --cdp 9222 snapshot -i
Provide startup command if needed:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
Navigate to creator page (if not already there):
npx agent-browser --cdp 9222 open "https://creator.xiaohongshu.com/publish/publish"
Take snapshot to check login status:
npx agent-browser --cdp 9222 snapshot -i
If login required:
If user provides a markdown file, parse it:
python ~/.claude/skills/xiaohongshu-publisher/scripts/parse_note.py /path/to/note.md
Output JSON:
{
"title": "Note Title",
"content": "Note description/content text...",
"images": ["/path/to/img1.jpg", "/path/to/img2.jpg"],
"tags": ["tag1", "tag2"]
}
Take snapshot to get current element refs:
npx agent-browser --cdp 9222 snapshot -i
Find the upload input element (look for file input or "上传图片" area)
Upload images:
# Single image
npx agent-browser --cdp 9222 upload @e<ref> "/path/to/image1.jpg"
# Multiple images (comma-separated)
npx agent-browser --cdp 9222 upload @e<ref> "/path/to/img1.jpg,/path/to/img2.jpg,/path/to/img3.jpg"
Wait for uploads to complete:
npx agent-browser --cdp 9222 wait 3000
Take new snapshot after upload completes
Find title input field from snapshot (placeholder usually contains "标题")
Fill title:
npx agent-browser --cdp 9222 fill @e<title_ref> "Your Note Title"
Find content/description field (placeholder usually contains "描述" or "正文")
Fill content:
npx agent-browser --cdp 9222 fill @e<content_ref> "Your note content here..."
If tags are provided:
Find tag input area from snapshot
Add each tag:
npx agent-browser --cdp 9222 click @e<add_tag_ref>
npx agent-browser --cdp 9222 fill @e<tag_input_ref> "tag1"
npx agent-browser --cdp 9222 press Enter
Find "存草稿" button from snapshot
Click draft button:
npx agent-browser --cdp 9222 click @e<draft_button_ref>
Verify success - take snapshot or wait for confirmation
ONLY if user said "直接发布", "立即发布", or "publish now":
Find "发布" button from snapshot
Click publish button:
npx agent-browser --cdp 9222 click @e<publish_button_ref>
When in doubt, ALWAYS save as draft.
Take final snapshot to verify success:
npx agent-browser --cdp 9222 snapshot -i
Report to user:
User: "发布这些图片到小红书: /path/to/photo1.jpg, /path/to/photo2.jpg, 标题是'周末好去处'"
# 1. Verify connection and check login
npx agent-browser --cdp 9222 snapshot -i
# 2. Navigate to publish page (if needed)
npx agent-browser --cdp 9222 open "https://creator.xiaohongshu.com/publish/publish"
# 3. Take snapshot, verify "上传图片" visible
npx agent-browser --cdp 9222 snapshot -i
# 4. Upload images
npx agent-browser --cdp 9222 upload @e<ref> "/path/to/photo1.jpg,/path/to/photo2.jpg"
npx agent-browser --cdp 9222 wait 3000
# 5. Take new snapshot, fill title
npx agent-browser --cdp 9222 snapshot -i
npx agent-browser --cdp 9222 fill @e<title_ref> "周末好去处"
# 6. Save as draft
npx agent-browser --cdp 9222 click @e<draft_ref>
User: "把这个 markdown 发到小红书: /path/to/note.md"
# 1. Parse markdown
python ~/.claude/skills/xiaohongshu-publisher/scripts/parse_note.py /path/to/note.md
# 2. Extract: title, content, images, tags from JSON output
# 3. Verify connection
npx agent-browser --cdp 9222 snapshot -i
# 4. Upload all images from parsed result
npx agent-browser --cdp 9222 upload @e<ref> "/path/to/img1.jpg,/path/to/img2.jpg"
# 5. Fill title and content
npx agent-browser --cdp 9222 fill @e<title_ref> "parsed title"
npx agent-browser --cdp 9222 fill @e<content_ref> "parsed content"
# 6. Add tags if present
npx agent-browser --cdp 9222 fill @e<tag_ref> "tag1"
npx agent-browser --cdp 9222 press Enter
# 7. Save as draft
npx agent-browser --cdp 9222 click @e<draft_ref>
User: "直接发布这些图到小红书,不用草稿"
# [Same as above until Step 6]
# Find and click "发布" button (NOT 存草稿)
npx agent-browser --cdp 9222 click @e<publish_ref>
Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
Solid pick for teams standardizing on skills: xiaohongshu-publisher is focused, and the summary matches what you get after install.
xiaohongshu-publisher has been reliable in day-to-day use. Documentation quality is above average for community skills.
xiaohongshu-publisher fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
xiaohongshu-publisher is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Solid pick for teams standardizing on skills: xiaohongshu-publisher is focused, and the summary matches what you get after install.
xiaohongshu-publisher reduced setup friction for our internal harness; good balance of opinion and flexibility.
Registry listing for xiaohongshu-publisher matched our evaluation — installs cleanly and behaves as described in the markdown.
Keeps context tight: xiaohongshu-publisher is the kind of skill you can hand to a new teammate without a long onboarding doc.
xiaohongshu-publisher has been reliable in day-to-day use. Documentation quality is above average for community skills.
Useful defaults in xiaohongshu-publisher — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
showing 1-10 of 49