本技能文档包含小红书创作者平台的详细发布流程、DOM选择器和操作步骤。
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionxhs-publisherExecute the skills CLI command in your project's root directory to begin installation:
Fetches xhs-publisher from byheaven/byheaven-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate xhs-publisher. Access via /xhs-publisher in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
2
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
2
stars
本技能文档包含小红书创作者平台的详细发布流程、DOM选择器和操作步骤。
平台: 小红书创作者平台 (Xiaohongshu Creator Platform)
域名: creator.xiaohongshu.com
根据内容长度选择不同的发布入口:
| 内容长度 | 发布形式 | 入口 URL |
|---|---|---|
| < 140字 | 文字配图 | https://creator.xiaohongshu.com/publish/publish?target=image |
| ≥ 140字 | 图文笔记 | https://creator.xiaohongshu.com/publish/publish?target=article |
1. 导航到文字配图入口
2. 点击"文字配图"按钮
3. 输入第一张图片内容(标题)
4. 添加第二张图片并输入正文内容
5. 一次性生成全部图片
6. 选择模板样式并下一步
7. 填写发布信息(标题、正文、标签)
8. 用户确认后发布
[!IMPORTANT] 核心流程: 先输入所有内容(标题 + 正文),再一次性生成全部图片。不要每张图片单独生成!
URL: https://creator.xiaohongshu.com/publish/publish?target=image
页面加载后会显示"上传图文"选项,包含两个按钮:
查找方法:
find: "文字配图 button"
元素特征:
button操作:
find("文字配图 button")
click()
wait(2)
输入框:
find("真诚分享经验或资讯 textbox")
操作:
find("真诚分享经验或资讯 textbox")
click()
type(title)
wait(1)
添加第二张图片:
find("再写一张")
click()
wait(1)
正文输入框:
find("在这里输入正文 textbox")
操作:
find("在这里输入正文 textbox")
click()
type(content)
wait(1)
[!NOTE] 此时已输入所有内容(标题 + 正文),准备一次性生成全部图片。
生成图片按钮:
find("生成图片 button")
操作:
find("生成图片 button")
click()
wait(5) // 等待所有图片生成,时间稍长
[!NOTE] 点击"生成图片"会同时生成标题和正文两张图片。不需要分别点击生成。
页面特征:
模板选择:
操作:
// 使用默认选中的模板
find("下一步 button")
click()
wait(2)
页面标题: "发布图文"
特征:
标题输入框:
find("填写标题会有更多赞哦 input")
操作:
find("填写标题会有更多赞哦 input")
form_input(title)
正文文本框:
find(包含标题的 textbox) // 正文文本框
重要说明:
操作:
find(包含标题的 textbox) // 正文文本框
click()
key("cmd+a") // 全选现有内容
type(content + "\n\n" + tags) // 填充完整正文 + 两个换行 + 标签
[!WARNING] 标签格式要求: 正文内容和标签之间必须有两个换行(
\n\n),否则标签会紧贴正文显示不美观。
标签格式:
# 开头话题按钮:
find: "话题"
用户按钮:
find: "用户"
表情按钮:
find: "表情"
活动话题:
添加地点:
find: "添加地点"
添加合集:
find: "添加合集"
关联群聊:
find: "选择群聊"
发布按钮:
find: "发布 button"
element_type: button
color: 红色(主要行动按钮)
暂存草稿按钮:
find: "暂存草稿 button"
element_type: button
color: 灰色(次要行动按钮)
自动保存:
⚠️ 重要提示: 根据安全策略,自动化脚本应该:
1. 导航到图文笔记入口
2. 点击"新的创作"按钮
3. 填写标题
4. 填写正文内容
5. 点击"一键排版"选择模板
6. 填写正文摘录和标签
7. 填写其他发布信息
8. 用户确认后发布
URL: https://creator.xiaohongshu.com/publish/publish?target=article
页面加载后会显示"写长文"页面,特征:
查找方法:
find: "新的创作 button"
元素特征:
button点击"新的创作"后,进入长文编辑器。
页面特征:
标题输入框:
find: "输入标题"
element_type: textbox
输入方法:
click(ref_51) // 点击标题输入框
type("小红书自动发布工具使用指南") // 输入标题
正文编辑器:
// 正文编辑器是一个 generic 元素(ref_55)
// 不是标准的 textarea
输入方法:
click(ref_55) // 点击正文编辑区域
type("正文内容...") // 输入正文
正文特性:
一键排版按钮:
find: "一键排版 button"
点击后进入排版预览页面。
排版预览页面特征:
下一步按钮:
find: "下一步 button"
点击"下一步"进入最终发布页面。
页面标题: "发布图文"
重要说明:
正文内容输入框:
find: "输入正文摘录 textarea"
element_type: textbox
输入方法:
click(ref_194) // 点击正文内容输入框
type(完整正文内容 + "\n\n" + 标签) // 输入完整正文 + 标签
内容格式:
# 开头)示例:
在这个信息爆炸的时代,内容创作者面临着越来越多的平台和渠道选择。小红书作为一个重要的社交电商平台,已经成为许多创作者分享生活方式和产品推荐的首选平台。
为了提高发布效率,我们开发了这款自动化发布工具。它可以帮助你快速将内容发布到小红书平台,节省大量的重复性工作时间。
本文将详细介绍如何使用这个工具,让你的内容发布工作变得更加轻松高效。无论你是个人创作者还是团队运营,这个工具都能为你带来显著的效率提升。
#小红书发布 #自动化工具 #效率提升
标题输入框 (可选,通常自动填充):
find: 包含标题文本的 textbox
max_length: 20字符
封面图:
其他选项:
发布按钮:
find: "发布 button"
element_type: button
color: 红色
暂存草稿按钮:
find: "暂存草稿 button"
⚠️ 重要提示: 根据安全策略,自动化脚本应该:
| 特性 | 文字配图 (< 140字) | 图文笔记 (≥ 140字) |
|---|---|---|
| 入口 URL | target=image |
target=article |
| 编辑方式 | 文字生成图片 | 富文本编辑器 |
| 标题输入 | 第一张图片内容 | 独立标题输入框 |
| 正文输入 | 第二张图片开始 | 正文编辑器 |
| 封面图 | 手动生成多张 | 自动生成封面 |
| 发布页正文区 | 正文文本框 | "正文摘录"输入框 |
| 正文填充方式 | 完整正文 + 标签 | 完整正文 + 标签 |
| 格式化 | 无 | 支持 H1/H2/列表等 |
| 字数限制 | 建议 < 140 | 140-10000字 |
关键提示: 两种模式在发布页面都必须填充完整的正文内容而非摘要或部分内容。
方法 1: 检查用户头像
find: "用户头像"
如果找不到用户头像或显示"登录"按钮,说明未登录。
方法 2: 检查 URL 重定向 如果导航到发布页面后 URL 重定向到登录页面,说明未登录。
常见错误提示:
好的标签示例:
#小红书发布#自动化工具Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
jezweb/claude-skills
Solid pick for teams standardizing on skills: xhs-publisher is focused, and the summary matches what you get after install.
xhs-publisher fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
xhs-publisher has been reliable in day-to-day use. Documentation quality is above average for community skills.
Registry listing for xhs-publisher matched our evaluation — installs cleanly and behaves as described in the markdown.
xhs-publisher reduced setup friction for our internal harness; good balance of opinion and flexibility.
xhs-publisher fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
xhs-publisher has been reliable in day-to-day use. Documentation quality is above average for community skills.
Registry listing for xhs-publisher matched our evaluation — installs cleanly and behaves as described in the markdown.
Solid pick for teams standardizing on skills: xhs-publisher is focused, and the summary matches what you get after install.
Keeps context tight: xhs-publisher is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 44