xiaohongshu-publisher

xiaohongshu-publisher is a skill for Claude Code from iamzifei/red-publisher-skill. It costs 75 tokens per session (3,854 once invoked), scanned A, original, MIT.

A browser-based tool for preparing image posts on Xiaohongshu, a Chinese social-media platform, using an existing signed-in Chrome session. It saves posts as drafts by default.

In plain words
What is it for?
Use it to upload images and prepare Xiaohongshu notes through Chrome; request immediate publishing explicitly when that is intended.
Why use it?
It lets users review content before publishing and avoids automatically making a post public when the request is unclear.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the xiaohongshu-publisher plugin — 1 skill shipped together

Good fit Use it to upload images and prepare Xiaohongshu notes through Chrome; request immediate publishing explicitly when that is intended.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iamzifei/red-publisher-skill/xiaohongshu-publisher
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add iamzifei/red-publisher-skill --skill xiaohongshu-publisher
Clone the repo
git clone --depth 1 https://github.com/iamzifei/red-publisher-skill

Made for: Claude Code.

Or install xiaohongshu-publisher, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xiaohongshu-publisher

README.md
[![agentmods](https://agentmods.dev/badge/skills/iamzifei/red-publisher-skill/xiaohongshu-publisher/github.svg)](https://agentmods.dev/skills/iamzifei/red-publisher-skill/xiaohongshu-publisher)
Your own site
<a href="https://agentmods.dev/skills/iamzifei/red-publisher-skill/xiaohongshu-publisher"><img src="https://agentmods.dev/badge/skills/iamzifei/red-publisher-skill/xiaohongshu-publisher/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xiaohongshu-publisher

Your own site · 80×15
<a href="https://agentmods.dev/skills/iamzifei/red-publisher-skill/xiaohongshu-publisher"><img src="https://agentmods.dev/badge/skills/iamzifei/red-publisher-skill/xiaohongshu-publisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,854 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.03854
Opus 5 $0.00037 $0.01927
Sonnet 5 $0.00015 $0.00771
Haiku 4.5 $0.00007 $0.00385

Measured 12d ago against content hash 8f8f7e6ae1e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

xiaohongshu-publisher scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/copy_to_clipboard.py, scripts/parse_note.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/xiaohongshu-publisher/SKILL.md · 446 lines

How it starts

The opening of the file, as written. The whole thing — 446 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Xiaohongshu Publisher (小红书发布器)

Publish images and notes to Xiaohongshu (小红书) Creator Platform using agent-browser with CDP (Chrome DevTools Protocol) mode.

Architecture: CDP Mode

This skill uses CDP mode - connecting to an existing browser instance where the user is already logged in. This approach:

  • Eliminates QR code scanning - User logs in once in their browser
  • Leverages existing session - Uses the browser's cookies and auth state
  • More stable - No need to manage auth state files
  • agent-browser CLI - Simple command-line interface with --cdp flag

⚠️ IMPORTANT: Draft Mode by Default

This 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:

  • "直接发布" / "立即发布" / "马上发布"
  • "publish now" / "publish directly" / "publish immediately"
  • "不要草稿,直接发" / "不存草稿"

If unsure, ALWAYS save as draft and let user review before publishing.

Prerequisites

1. Launch Chrome with Remote Debugging

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

2. Login to Xiaohongshu

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.

3. Python Dependencies

pip install Pillow pyobjc-framework-Cocoa

agent-browser CDP Commands Reference

Read the full file on GitHub · 446 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 446 lines · 75 tokens per session scan A 8f8f7e6ae1e8

Subscribe to this mod's changes

xiaohongshu-publisher is a skill published in the GitHub repository iamzifei/red-publisher-skill (11 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 3,854 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

creating-bookmarklets

Creates browser-executable JavaScript bookmarklets with strict formatting requirements. Use when users mention bookmarklets, browser utilities, dragging code to bookmarks bar, or need JavaScript that runs when clicked in the browser toolbar.

oaustegard/claude-skills · 47 tokens

using-webctl

Browser automation via webctl CLI in Claude.ai containers with authenticated proxy support. Use when users mention webctl, browser automation, Playwright browsing, web scraping, or headless Chrome in container environments.

oaustegard/claude-skills · 44 tokens

fetching-blocked-urls

Retrieve clean markdown from URLs when webfetch fails. Converts pages via Jina AI reader service with automatic retry. Use when webfetch or curl returns 403, blocked, paywall, timeout, JavaScript-rendering errors, or empty content or user explicitly suggests using jina.

oaustegard/claude-skills · 62 tokens

ai-media-generator

A workflow for turning ideas into prompts for AI-generated images, videos, and music across several media platforms. When needed, it can also send those prompts to the chosen platform through browser automation.

Hao0321/ai-media-generator · 380 tokens

webapp-testing

Playwright toolkit for local web apps: navigate, click, fill forms, screenshots, console logs.

uwuclxdy/agenticat · 24 tokens

download-xhs-videos

A process for downloading a Xiaohongshu creator’s videos to a local folder. Xiaohongshu, also called RedNote, is a Chinese social-media platform.

YijiaDuan/download-xhs-videos · 181 tokens