← Back to Skills Marketplace
XHS_Content productionandpublishing
by
内容科学|Content Science
· GitHub ↗
· v1.0.1
305
Downloads
1
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install xhsredbook
Description
Automatically publish notes to Xiaohongshu (小红书) creator center. Generates cover images (PIL poster, multiple styles), writes content from templates, and pub...
Usage Guidance
This skill appears to do what it claims: generate content and images locally and automate posting to creator.xiaohongshu.com via a local Playwright browser. Before installing/using it: 1) Review the scripts locally and run them in an environment you control (not a production machine) so you can inspect behavior. 2) Be cautious about enabling persistence: if you run save_login.py it will store login cookies in a profile directory (default: .local/xhs_browser_profile) — anyone or any automated process with access to that directory could post as you. 3) Playwright will download a browser binary when you run 'playwright install chromium' — this is expected but may be large. 4) If you plan to allow autonomous agent invocation, understand the agent could run publish.py using any saved profile and post without further prompts; consider restricting autonomous use or using an ephemeral test account for initial runs. 5) There are no obvious exfiltration endpoints or secret reads in the code, but always run third-party code in an isolated environment if you have concerns.
Capability Analysis
Type: OpenClaw Skill
Name: xhsredbook
Version: 1.0.1
The skill bundle is a legitimate automation tool for generating and publishing content to the Xiaohongshu (Red Note) creator center. It utilizes Playwright for browser automation and Pillow for local image generation, with all sensitive data such as browser profiles and screenshots stored locally in a '.local' directory. The code is transparent, lacks obfuscation, and contains no evidence of data exfiltration, unauthorized network calls, or malicious prompt injection.
Capability Assessment
Purpose & Capability
Name/description (Xiaohongshu post generation + publishing) match the included scripts: content generation, cover image generation, login/save profile, and Playwright-based publishing. No unrelated binaries, credentials, or services are requested.
Instruction Scope
SKILL.md and scripts confine runtime actions to generating content/images, launching a local browser via Playwright, navigating creator.xiaohongshu.com, saving screenshots and profile data under the skill data directory. Instructions do not read system files or environment variables beyond the declared optional ones (data dir, profile dir, font path).
Install Mechanism
There is no automated install spec in the bundle; SKILL.md instructs users to pip install playwright and pillow and run 'playwright install chromium'. That will download a browser binary (expected for Playwright). No remote code downloads from untrusted URLs are present in the skill itself.
Credentials
The skill requires no secrets or primary credentials. Optional environment vars (SKILL_DATA_DIR, XHS_PROFILE_DIR, XHS_FONT_PATH) are appropriate for customizing storage and fonts. There are no unexpected TOKEN/KEY/PASSWORD env vars or references to other services.
Persistence & Privilege
always:false (good). The skill supports persisting a browser profile to disk (default temporary, but save_login.py forces a persistent .local/xhs_browser_profile). If a persistent profile contains an authenticated Xiaohongshu session, the agent (or an automated run) can publish posts without interactive login. Users should be aware this enables unattended posting if the profile is reused.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install xhsredbook - After installation, invoke the skill by name or use
/xhsredbook - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
**v2.3.0 Summary:**
Major cross-platform and security improvements; now fully configurable and safer by default.
- Cross-platform support: all hardcoded Windows paths removed, works out of the box on Windows/macOS/Linux.
- Browser profile no longer persists by default—uses a temporary directory for better security; explicit persistence via `--profile-dir` or environment variables.
- All directories and font paths are now configurable with `SKILL_DATA_DIR`, `XHS_PROFILE_DIR`, and `XHS_FONT_PATH` env vars or command-line arguments.
- Automatically detects system Chinese fonts on all major platforms.
- Fixed a potential bug with cover image noise texture generation in RGBA mode.
- Added unified configuration module: `scripts/config.py`.
v1.0.0
xiaohongshu-publisher 1.0.0
- Initial release: Automate publishing notes to Xiaohongshu creator center.
- Includes cover image generation in multiple styles using PIL.
- Content creation from topic-based templates.
- Login once with Playwright persistent context; publish multiple times.
- One command runs the full workflow: content, images, and publishing.
Metadata
Frequently Asked Questions
What is XHS_Content productionandpublishing?
Automatically publish notes to Xiaohongshu (小红书) creator center. Generates cover images (PIL poster, multiple styles), writes content from templates, and pub... It is an AI Agent Skill for Claude Code / OpenClaw, with 305 downloads so far.
How do I install XHS_Content productionandpublishing?
Run "/install xhsredbook" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is XHS_Content productionandpublishing free?
Yes, XHS_Content productionandpublishing is completely free (open-source). You can download, install and use it at no cost.
Which platforms does XHS_Content productionandpublishing support?
XHS_Content productionandpublishing is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created XHS_Content productionandpublishing?
It is built and maintained by 内容科学|Content Science (@harveyzzzz); the current version is v1.0.1.
More Skills