skillfed

post-to-xhs

Post to Xiaohongshu in two modes: image+text for quick shares, or long-form with layout templates for in-depth content. Feed it complete content with images, or provide a URL and the skill extracts text and images automatically. Choose your publishing style and confirm before posting.

Post to Xiaohongshu lets you publish image+text or long-form articles with automatic content extraction from URLs.

AI-generated summary based on this skill's SKILL.md

14,890 2,197 Apache-2.0 updated by xpzouying

Install

xpzouying/xiaohongshu-mcp/post-to-xhs · repository language: Go

git clone https://github.com/xpzouying/xiaohongshu-mcp
cp -r xiaohongshu-mcp/skills/post-to-xhs ~/.claude/skills/post-to-xhs
npx skillfed install xpzouying/xiaohongshu-mcp/post-to-xhs

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I post to Xiaohongshu using post-to-xhs?

Post-to-xhs supports two publishing modes. For quick shares, use image+text mode to combine visuals with captions. For in-depth content, use long-form mode with layout templates. You can either provide complete content with images directly, or supply a URL and post-to-xhs automatically extracts the text and images for you. Review your content in the preview before confirming publication.

Can post-to-xhs automate Xiaohongshu posting from web URLs?

Yes, post-to-xhs automates content extraction from web URLs. Simply provide a URL and the skill pulls text and images automatically, preparing them for publication to Xiaohongshu. This eliminates manual copying and formatting, letting you focus on choosing your publishing style and previewing before posting.

Does post-to-xhs support managing multiple Xiaohongshu accounts?

Post-to-xhs includes account management features that let you handle multiple Xiaohongshu accounts. You can switch between accounts as needed, making it convenient for managing different content channels or brand profiles from a single interface.

What formatting options does post-to-xhs offer before publishing?

Post-to-xhs provides formatting templates and a preview system before you publish to Xiaohongshu. Apply templates to structure your long-form content with consistent layouts, then review exactly how your post will appear. This ensures your Xiaohongshu content looks polished and professional before going live.

Can post-to-xhs extract images and text from web pages?

Yes, post-to-xhs automatically extracts both images and text from web pages for Xiaohongshu publication. Instead of manually gathering content, simply paste a URL and the skill handles extraction, saving time and ensuring nothing is missed when preparing your Xiaohongshu posts.

What content types can I publish with post-to-xhs to Xiaohongshu?

Post-to-xhs handles image+text posts for quick shares and long-form articles with layout templates for deeper content. Whether you're publishing short visual updates or detailed articles, post-to-xhs adapts to your content type and lets you format, preview, and publish directly to Xiaohongshu.

SKILL.md

rendered from the published skill — quoted content, verbatim

小红书内容发布

根据用户输入自动判断发布方式和发布模式,简化发布流程。

发布模式

  • 上传图文(默认):图片 + 短文,适合日常分享
  • 写长文:长篇文章 + 排版模板选择,适合深度内容。用户明确说"发长文"时使用

工作流程

用户输入
    │
    ├─ 完整内容 + 图片/图片URL → 判断模式 → 发布流程
    │
    └─ 网页 URL → WebFetch 提取内容和图片
                      │
                      ├─ 有图片 → 适当总结内容 → 判断模式 → 发布流程
                      │
                      └─ 无图片 → 提示用户手动下载图片
                                  │
                                  └─ 用户提供图片后 → 发布流程

Step 1: 判断输入类型

根据用户输入判断:

  • 完整内容模式:用户提供了标题、正文内容、以及图片(本地路径或URL)
  • URL 提取模式:用户只提供了一个网页 URL

如果不确定,询问用户。

Step 2: 处理内容

完整内容模式

直接使用用户提供的标题和正文,跳到 Step 3。

URL 提取模式
  1. 使用 WebFetch 提取网页内容
  2. 提取关键信息:标题、正文、图片URL
  3. 适当总结内容,保持:
  4. 关键信息完整
  5. 语言自然流畅
  6. 适合小红书阅读习惯
图片提取失败处理

如果从网页中提取不到图片URL,或图片URL无法访问,必须

  1. 告知用户图片提取失败
  2. 提供原网页链接,请用户手动访问
  3. 指导用户:
  4. 在浏览器中打开原网页
  5. 右键点击想要的图片 → "图片另存为" 或 "复制图片地址"
  6. 将保存的图片路径或复制的图片URL提供给我
  7. 等待用户提供图片后再继续发布流程

示例提示语: ``` 从网页中未能提取到可用的图片。请手动获取:

  1. 打开原文链接:[URL] 2.

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 10 files
skills/post-to-xhs/SKILL.md
skills/post-to-xhs/config/accounts.json
skills/post-to-xhs/references/publish-workflow.md
skills/post-to-xhs/scripts/account_manager.py
skills/post-to-xhs/scripts/cdp_publish.py
skills/post-to-xhs/scripts/chrome_launcher.py
skills/post-to-xhs/scripts/content.txt
skills/post-to-xhs/scripts/image_downloader.py
skills/post-to-xhs/scripts/publish_pipeline.py
skills/post-to-xhs/scripts/title.txt

Related skills

Tags

social-media-publishing content-automation multi-format-posting template-based-layout account-management headless-mode web-content-extraction chinese-platform batch-operations