xhs-note-creator
Creates, formats, and publishes Xiaohongshu content, including note body, SEO tags, and visual image cards.
Install
mkdir -p .claude/skills/xhs-note-creator && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3994" && unzip -o skill.zip -d .claude/skills/xhs-note-creator && rm skill.zipInstalls to .claude/skills/xhs-note-creator
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
小红书笔记素材创作技能。当用户需要创建小红书笔记素材时使用这个技能。技能包含:根据用户的需求和提供的资料,撰写小红书笔记内容(标题+正文),生成图片卡片(封面+正文卡片),以及发布小红书笔记。支持 8 种精美排版主题和 4 种智能分页模式。Key capabilities
- →Draft Xiaohongshu-style titles and body text
- →Generate visual image cards with design themes
- →Automate note publishing to Xiaohongshu
- →Support multiple pagination and layout modes
- →Apply SEO tags to note content
How it works
The skill processes input into a structured format, renders it into visual cards using CSS themes, and uses a publishing script to upload the content to the platform.
Inputs & outputs
When to use xhs-note-creator
- →Generate XHS note content
- →Create visual image cards for social posts
- →Publish notes to Xiaohongshu
About this skill
小红书笔记创作技能
根据用户提供的资料或需求,创作小红书笔记内容、生成精美图片卡片,并可选择发布到小红书。
详细参数文档见
references/params.md
工作流程
第一步:撰写小红书笔记内容
根据用户需求和资料,创作符合小红书风格的内容:
标题:不超过 20 字,吸引眼球,可用数字/疑问句/感叹号增强吸引力。
正文:段落清晰,点缀少量 Emoji(每段 1-2 个),短句短段,结尾附 5-10 个 SEO 标签。
第二步:生成渲染用 Markdown 文档
注意:此 Markdown 专为图片渲染设计,禁止直接使用上一步的笔记正文。
文档结构:
---
emoji: "🚀"
title: "封面大标题(≤15字)"
subtitle: "封面副标题(≤15字)"
---
# 正文内容...
---
# 第二张卡片内容...(使用 --- 手动分隔时)
分页策略选择:
- 内容需精确切分 → 用
---手动分隔,配合-m separator - 内容长短不稳定 → 生成普通 Markdown,使用
-m auto-split
第三步:渲染图片卡片
python scripts/render_xhs.py <markdown_file> [options]
默认主题:sketch(手绘素描风格)
默认分页:separator(按 --- 分隔)
常用示例:
# 默认(sketch 主题 + 手动分页)
python scripts/render_xhs.py content.md
# 自动分页(推荐内容长短不定时)
python scripts/render_xhs.py content.md -m auto-split
# 切换主题
python scripts/render_xhs.py content.md -t playful-geometric -m auto-split
# 固定尺寸自动缩放
python scripts/render_xhs.py content.md -m auto-fit
生成结果:cover.png(封面)+ card_1.png、card_2.png...(正文卡片)
可用主题(-t):sketch、default、playful-geometric、neo-brutalism、botanical、professional、retro、terminal
分页模式(-m):separator、auto-fit、auto-split、dynamic
完整参数说明见
references/params.md
第四步:发布小红书笔记(可选)
前置条件:安装 Python 与 Node.js 依赖,并配置 .env 中的
XHS_CREATOR_COOKIE。Cookie 必须来自已登录的
https://creator.xiaohongshu.com(详见 references/params.md)。
# 默认仅自己可见(推荐先预览确认)
python scripts/publish_xhs.py --title "笔记标题" --desc "笔记描述" \
--images cover.png card_1.png card_2.png
# 确认无误后公开发布
python scripts/publish_xhs.py --title "笔记标题" --desc "笔记描述" \
--images cover.png card_1.png card_2.png --public
默认以「仅自己可见」发布,加
--public参数才会公开。 发布链路已内置在当前技能中,不依赖外部 API 服务或其他项目目录。
技能资源
脚本
scripts/render_xhs.py— 渲染脚本(主推,8 主题 + 4 分页模式)scripts/render_xhs_v2.py— 渲染脚本 V2(备用,7 种渐变色彩风格)scripts/publish_xhs.py— 发布脚本
模板与样式
assets/cover.html— 封面 HTML 模板assets/card.html— 正文卡片 HTML 模板assets/styles.css— 公共容器样式assets/themes/— 各主题 CSS 文件
参考文档
references/params.md— 完整参数参考(主题/模式/发布参数)
When not to use it
- →When the content does not fit the Xiaohongshu platform style
- →When the user lacks the required authentication cookies
Prerequisites
Limitations
- →Requires valid XHS_COOKIE for publishing
- →Titles are limited to 20 characters
How it compares
It automates the entire workflow from content drafting to visual design and publishing, rather than requiring manual creation of images and posts.
Compared to similar skills
xhs-note-creator side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| xhs-note-creator (this skill) | 4 | 4mo | Review | Beginner |
| google-docs-skill | 0 | 2mo | Caution | Intermediate |
| openai-whisper | 38 | 2mo | No flags | Beginner |
| social-media-generator | 6 | 9mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
google-docs-skill
javimosch
Direct access to the Google Docs API using OAuth 2.0. Create documents, insert and format text, and manage document content.
openai-whisper
openclaw
Local speech-to-text with the Whisper CLI (no API key).
social-media-generator
ailabs-393
This skill should be used when the user requests social media content creation for Twitter, Instagram, LinkedIn, or Facebook. It generates platform-optimized posts and saves them in an organized folder structure with meaningful filenames based on event details.
whisper-transcription
benchflow-ai
Transcribe audio/video to text with word-level timestamps using OpenAI Whisper. Use when you need speech-to-text with accurate timing information for each word.
rfp_contents
yellowCornSalad
공고 카드의 콘텐츠 품질 점검 + LLM 자동 요약. 예산·기간 정확성, 본문 가독성, 키워드 매칭 정확성, 상세보기 가독성 5축 점검 + 카드에 본문+첨부 종합 150자 요약을 ai_summary 컬럼에 저장.
shorts-publish
novikoffalex
Публикация YouTube Shorts с ссылкой на основное видео. Загружает нарезанные клипы на YouTube.