xhs-publish

Automate Xiaohongshu multi-format publishing with a Python CLI and JSON output.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/yuymf/xiaohongshu-skills --skill xhs-publish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xhs-publish
Source: https://github.com/yuymf/xiaohongshu-skills/tree/main/skills/xhs-publish
Command: npx skills add https://github.com/yuymf/xiaohongshu-skills --skill xhs-publish

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Xiaohongshu content publishing often involves repetitive, error-prone steps such as drafting, media validation, and multi-format posting across accounts. This Skill automates the end-to-end publishing workflow, reducing manual friction and ensuring consistency from draft to live post.

Core Features & Use Cases

  • Automated multi-format publishing (image-text, video, long-form) with draft validation and previews
  • Account isolation and headless/headed run modes with robust publish controls
  • End-to-end posting pipeline including input validation, media handling, and structured results

Quick Start

Prepare your draft title, content, and media, then run the publish CLI to review a live preview before posting.

Frequently Asked Questions about xhs-publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Xiaohongshu content publishing across multiple accounts?

You can automate Xiaohongshu content publishing by running a Python-based CLI workflow that coordinates multi-format posts and manages account isolation. This pipeline handles input validation, media processing, and outputs structured JSON results for each live post.

Can I save and validate drafts before posting to Xiaohongshu?

Yes, you can validate drafts before posting to Xiaohongshu. The workflow includes draft handling and preview capabilities, allowing you to review image, video, or long-form text content through a live preview before executing the final publish command.

What is the best way to run Xiaohongshu publishing scripts in the background?

The best way to run Xiaohongshu publishing scripts in the background is using headless mode. This allows the automated workflow to execute multi-step posting pipelines without a visible browser interface, ensuring robust publish controls and structured results.

Does the Xiaohongshu publishing CLI support video and long-form articles?

Yes, the Xiaohongshu publishing CLI supports video and long-form articles. It automates multi-format publishing including image-text posts, video content, and long-form articles, handling media validation and input checks across the entire posting pipeline.

How do I get structured results after automating a Xiaohongshu post?

To get structured results after automating a Xiaohongshu post, you run the publish CLI command. The workflow integrates input validation and media handling, ultimately returning structured JSON output that confirms the status of your drafts and live posts.

Why do I need input validation for Xiaohongshu content publishing workflows?

Input validation is needed for Xiaohongshu content publishing workflows to prevent repetitive, error-prone steps during multi-format posting. It ensures consistency from draft to live post by verifying media and text data before executing the automated pipeline.