Agent Reach
Panniantong/Agent-Reach
Routes web research and platform lookups across 16 sites, including Twitter, Reddit, YouTube, Bilibili, Xiaohongshu and GitHub, through one command-line tool.
小红书全自动内容创作工作流 - 从爆款研究到草稿发布的完整 pipeline. An agent skill from LeoYeAI/openclaw-master-skills.
$ npx skills add LeoYeAI/openclaw-master-skills --skill kay-xhs -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills kay-xhs --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/kay-xhs .claude/skills/kay-xhs && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "kay-xhs" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/kay-xhs into .claude/skills/kay-xhs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kay-xhs", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/kay-xhsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LeoYeAI/openclaw-master-skills --skill kay-xhs -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills kay-xhs --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/kay-xhs .agents/skills/kay-xhs && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "kay-xhs" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/kay-xhs into .agents/skills/kay-xhs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kay-xhs", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill kay-xhs -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills kay-xhs --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/kay-xhs .cursor/skills/kay-xhs && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "kay-xhs" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/kay-xhs into .cursor/skills/kay-xhs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kay-xhs", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LeoYeAI/openclaw-master-skills.git --path skills/kay-xhs--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LeoYeAI/openclaw-master-skills --skill kay-xhs -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills kay-xhs --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/kay-xhs .gemini/skills/kay-xhs && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "kay-xhs" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/kay-xhs into .gemini/skills/kay-xhs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kay-xhs", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LeoYeAI/openclaw-master-skills kay-xhsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LeoYeAI/openclaw-master-skills --skill kay-xhs -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/kay-xhs .github/skills/kay-xhs && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "kay-xhs" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/kay-xhs into .github/skills/kay-xhs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kay-xhs", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill kay-xhs -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills kay-xhs --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/kay-xhs .opencode/skills/kay-xhs && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "kay-xhs" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/kay-xhs into .opencode/skills/kay-xhs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kay-xhs", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
kay-xhs小红书全自动内容创作工作流 - 从爆款研究到草稿发布的完整 pipeline. An agent skill from LeoYeAI/openclaw-master-skills.
Kay Xhs is an agent skill from LeoYeAI/openclaw-master-skills. 小红书全自动内容创作工作流 - 从爆款研究到草稿发布的完整 pipeline。 使用场景:(1) 研究小红书爆款笔记风格和趋势,(2) 生成 AI 图片/漫画/封面,(3) 自动发布到小红书草稿箱。 依赖: 需要安装 kay-image skill 并配置 KIEAPIKEY
Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `CHANGELOG.md`, `_meta.json` and `references/cases.md`).
It works with Xiaohongshu. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
jqFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
creator.xiaohongshu.comkie.aisns-webpic-qc.xhscdn.comxiaohongshu.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
KIE_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Kay Xhs loads about 4.2k tokens when it runs, and up to ~6.5k if it reads all its reference files. Until then it costs about 38 tokens; SKILL.md has 811 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
/kay-image/.env.example skills/kay-image/.env# 编辑 .env 文件,填入从 https://kie.ai/ 获取的 API Keynano skills/kay-image/.envAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 811 words, ~4,172 tokens.
.claude/skills/kay-xhs/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.一站式小红书内容创作解决方案,从爆款研究到草稿发布。
必须先安装,否则无法生成图片!
# 安装 kay-image skill
clawhub install kay-image
# 配置 API Key
cp skills/kay-image/.env.example skills/kay-image/.env
# 编辑 .env 文件,填入从 https://kie.ai/ 获取的 API Key
nano skills/kay-image/.env获取 KIE API Key:
验证安装:
# 测试生图功能
kay-image -p "测试图片,一只可爱的猫咪" -o test.png --ar 1:1确保 OpenClaw 浏览器已配置,用于小红书网页操作。
确认以上步骤完成后,再开始创作工作流!
工具: browser (openclaw profile)
1. 打开浏览器访问 https://creator.xiaohongshu.com
2. 检查登录状态(如未登录需短信验证)
3. 确认当前账号名称关键检查点:
工具: browser
提取高点赞笔记的: -图片 -标题 -作者 -文案 -标签
原理: 点击首图预览模式后,从浏览器 Performance API 获取所有已加载的网络资源,不受 DOM 移除影响。
适用场景: 需要采集完整图片列表,尤其是 10+ 张图片的笔记
前提条件:
代码:
// 打开预览 modal 后,等待 2-3 秒,然后执行
function extractImagesFromPerformance() {
const entries = performance.getEntriesByType('resource')
.filter(e =>
e.name.includes('xhscdn.com') &&
(e.name.includes('spectrum') || e.name.includes('notes_pre_post')) &&
!e.name.includes('imageView2') // 排除缩略图
);
const urls = [...new Set(entries.map(e => e.name))];
return {
total: urls.length,
urls: urls.map((url, i) => ({ index: i+1, url }))
};
}
// 执行
extractImagesFromPerformance();优势:
劣势:
实际案例:
原理: 打开预览模式后,提取页面所有 <img> 标签,包括头像、评论图等,然后过滤出正文图片。
适用场景: Performance API 无效时,或需要快速获取少量图片
前提条件:
代码:
// 打开预览 modal 后执行
function extractImagesFromDOM() {
const allImgs = document.querySelectorAll('img');
const urls = [];
allImgs.forEach(img => {
if (img.src && img.src.includes('xhscdn.com') && img.src.length > 50) {
const cleanUrl = img.src.split('?')[0]; // 移除查询参数
if (!urls.includes(cleanUrl)) {
urls.push(cleanUrl);
}
}
});
// 过滤出正文图片(排除头像、图标等)
const contentImages = urls.filter(url =>
url.includes('spectrum') || url.includes('notes_pre_post')
);
return {
total: contentImages.length,
urls: contentImages.map((url, i) => ({ index: i+1, url }))
};
}
// 执行
extractImagesFromDOM();优势:
劣势:
实际案例:
原理: 手动切换每张图片,强制触发懒加载,确保所有图片 URL 加载到 DOM。
适用场景: 批量方法失效时,或需要确保 100% 完整度
完整操作步骤:
1. 访问搜索页:https://www.xiaohongshu.com/search_result?keyword=关键词&type=51
2. 等待笔记列表加载完成
3. 点击目标笔记的【首图/封面图】(不是标题文字)
- 这会打开预览 modal,显示笔记完整内容
- 无需进入详情页,避免反爬虫限制
4. 【关键步骤】循环切换所有图片:
- 读取图片计数(如 1/13 = 共 13 张)
- 点击"下一张"按钮 (右侧箭头) 12 次
- 每次切换后等待 1-2 秒让图片加载
- 确保所有图片都加载到 DOM 中
5. 提取数据:
- 使用 JavaScript 提取所有图片 URL
- 记录文案、标签、点赞/收藏/评论数
- 采集前 5 条评论
6. 点击 X 或外部区域关闭 preview modal
7. 返回搜索列表,继续下一篇笔记⚠️ 错误示范(会失败):
// ❌ 错误:打开 modal 后直接提取,只能拿到 1-3 张
click(firstImage);
extractImages(); // 只返回 3 张!✅ 正确示范(完整采集):
// ✅ 正确:循环切换后再提取
click(firstImage); // 打开 modal
for (let i = 0; i < totalImages - 1; i++) {
click(nextButton); // 点击"下一张"
await sleep(1500); // 等待加载
}
// 现在所有图片 URL 都加载到 DOM 了
extractImages(); // 返回完整 13 张!提取图片 URL 的完整代码:
// 在 preview modal 中执行
const extractNoteData = () => {
// 1. 提取所有图片 URL
const images = document.querySelectorAll('.swiper-slide img, .note-detail img');
const imageUrls = Array.from(images).map((img, index) => ({
index: index + 1,
url: img.src || img.getAttribute('src')
})).filter(item => item.url);
// 2. 提取基础信息
const title = document.querySelector('[class*="title"]')?.textContent?.trim();
const author = document.querySelector('[class*="author"]')?.textContent?.trim();
const likes = document.querySelector('[class*="like"]')?.textContent?.trim();
// 3. 提取评论
const comments = [];
const commentElements = document.querySelectorAll('[class*="comment"]');
commentElements.forEach((el, index) => {
if (index >= 5) return;
const userEl = el.querySelector('a');
const contentEl = el.querySelector('p, [class*="content"]');
if (userEl && contentEl) {
comments.push({
user: userEl.textContent?.trim(),
content: contentEl.textContent?.trim()
});
}
});
return {
totalImages: imageUrls.length,
images: imageUrls,
title,
author,
likes,
comments
};
};
// 执行提取
extractNoteData();循环切换图片的完整代码:
// 在 preview modal 中循环切换所有图片
const cycleThroughImages = async (totalImages) => {
const nextButton = document.querySelector('.swiper-button-next, [class*="next"], [aria-label="下一张"]');
for (let i = 1; i < totalImages; i++) {
if (nextButton) {
nextButton.click();
await new Promise(resolve => setTimeout(resolve, 1500)); // 等待 1.5 秒
}
}
console.log(`✅ 已切换 ${totalImages} 张图片,现在可以提取完整 URL 列表`);
};
// 使用示例:
// cycleThroughImages(13).then(() => extractNoteData());实际采集案例:
https://sns-webpic-qc.xhscdn.com/.../notes_pre_post/...性能参考:
批量采集策略:
对于 10 篇笔记的批量采集:
1. 搜索关键词,获取结果列表
2. 筛选点赞 1000+ 的笔记
3. 逐一点击首图进入 preview modal
4. 浏览所有图片并提取 URL
5. 关闭 modal,继续下一篇
6. 预计总时间:3-5 分钟注意事项:
研究维度:
| 维度 | 分析内容 |
|---|---|
| 视觉风格 | 色彩、构图、人物/场景类型 |
| 文案结构 | 标题公式、正文套路、互动引导 |
| 话题标签 | 高频标签、组合策略 |
| 发布时间 | 最佳发布时段 |
基于爆款研究,确定:
内容类型
风格定位
图片规划
工具: kay-image (KIE API)
| 引擎 | 工具 | 配置要求 | 适用场景 |
|---|---|---|---|
| KIE | kay-image | KIE_API_KEY | 高质量 4K 输出,角色一致性 |
配置检查:
# 确保已设置 KIE_API_KEY
export KIE_API_KEY="your-api-key"
# 测试生图
kay-image -p "一只可爱的橘猫在草地上玩耍" -o test.png --ar 1:1kay-image \
--prompt "描述..." \
--output cover.jpg \
--ar 3:4 \
--resolution 2K必须一次生成,不要分格生成!
kay-image \
--prompt "四格漫画,2x2 网格布局:
第一格(左上):...,画面下方文字'...'
第二格(右上):...,画面下方文字'...'
第三格(左下):...,画面下方文字'...'
第四格(右下):...,画面下方文字'...'
确保角色形象一致,色调从冷到暖渐变" \
--output comic_4panel.jpg \
--ar 3:4 \
--resolution 2Kkay-image \
--prompt "转换成...风格" \
--input /path/to/reference.jpg \
--output result.jpg场景: 需要生成多张图片(如 4 张 2 格漫画)
优势:
使用方法:
# 1. 创建批量任务配置文件
cat > comic-tasks.json << 'EOF'
[
{
"prompt": "唯美治愈系手绘,2格漫画第一格:女孩独自思考...",
"output": "comic-01.png",
"ar": "3:4",
"resolution": "2K"
},
{
"prompt": "唯美治愈系手绘,2格漫画第二格:女孩自我怀疑...",
"output": "comic-02.png",
"ar": "3:4",
"resolution": "2K"
},
{
"prompt": "唯美治愈系手绘,2格漫画第三格:两人对话领悟...",
"output": "comic-03.png",
"ar": "3:4",
"resolution": "2K"
},
{
"prompt": "唯美治愈系手绘,2格漫画第四格:两人依偎温暖...",
"output": "comic-04.png",
"ar": "3:4",
"resolution": "2K"
}
]
EOF
# 2. 执行批量生成
kay-image-batch -b comic-tasks.json -o ./xhs-images/2026-03-20-治愈漫画批量模式参数:
--poll-interval 20: 轮询间隔 20 秒(默认)--max-attempts 10: 最多轮询 10 次(默认)--concurrent 4: 并发下载数(默认)执行流程:
1. 批量提交所有任务(不等待)
[1/4] ✅ TaskId: xxx
[2/4] ✅ TaskId: yyy
[3/4] ✅ TaskId: zzz
[4/4] ✅ TaskId: www
2. 统一轮询(每 20s 检查一次,最多 10 次)
第 1/10 次... 4 等待中
第 2/10 次... 2 完成, 2 等待中
第 3/10 次... 4 完成 ✅
3. 并行下载所有图片
[1/4] ✅ comic-01.png
[2/4] ✅ comic-02.png
[3/4] ✅ comic-03.png
[4/4] ✅ comic-04.png生图原则:
| 特性 | KIE (kay-image) |
|---|---|
| 配置难度 | ⭐ 需 API Key |
| 图片质量 | ⭐⭐⭐ 4K 高清 |
| 生成速度 | ⭐⭐ 中等 |
| 角色一致性 | ⭐⭐⭐ 优秀 |
| 批量生成 | ✅ 支持 (kay-image-batch) |
| 图生图 | ✅ 支持 |
配置检查清单:
- [ ] 已设置 `KIE_API_KEY`
- [ ] 已安装 `kay-image` skill结构模板:
## 标题(20 字以内)
[emoji] 核心卖点|价值点|互动引导
示例:
🌱打工人的治愈时刻|AI 四格漫画
## 正文
[钩子] 一句话吸引注意
[内容] 主体内容(故事/教程/分享)
[互动] 引导评论/点赞/收藏
你最近...?评论区告诉我👇
## 话题标签(5-8 个)
#主话题 #细分话题 #情绪标签 #平台标签工具: browser (xhs-browser-ops)
完整操作步骤:
# Step 1: 打开发布页面
browser open --url "https://creator.xiaohongshu.com/publish/publish?from=menu&target=image"
# Step 2: 批量上传图片(支持多文件同时上传)
browser upload --targetId "页面targetId" \
--paths "/tmp/openclaw/uploads/comic-01.png" \
"/tmp/openclaw/uploads/comic-02.png" \
"/tmp/openclaw/uploads/comic-03.png" \
"/tmp/openclaw/uploads/comic-04.png"
# Step 3: 获取页面 snapshot,查看元素 ref
browser snapshot --targetId "页面targetId" --timeMs 2000
# Step 4: 填写标题(通过 ref 定位输入框)
browser type --targetId "页面targetId" \
--ref "标题textbox的ref" \
--text "原来最好的爱情,是陪你从心动到心安"
# Step 5: 填写正文
browser type --targetId "页面targetId" \
--ref "正文textbox的ref" \
--text "第1格|一眼心动 💫\n那个安静的午后..."
# Step 6: 保存到草稿(点击"暂存离开"按钮)
browser click --targetId "页面targetId" \
--ref "暂存离开按钮的ref"关键概念:
e207, e216)在发布页面底部右侧:
[ 暂存离开 ] [ 发布 ]
↑ 左 ↑ 右| 用户指令 | 操作 | 是否需要确认 |
|---|---|---|
| "保存到草稿" / "存草稿" / "暂存" | 点击"暂存离开" | ❌ 直接执行 |
| "发布" / "立即发布" / "确认发布" | 点击"发布"按钮 | ✅ 需二次确认 |
| "你看着办" / "随便" | 默认保存草稿 | ❌ 直接执行 |
⚠️ 重要: 用户明确说"保存草稿"时,不要问"要不要发布",直接执行保存!
获取 targetId:
# 方法1: open 命令返回 targetId
browser open --url "https://..."
# 返回: {"targetId": "ABC123...", ...}
# 方法2: 查看所有 tabs
browser tabs
# 返回所有打开的页面及其 targetId获取元素 ref:
# 获取页面 snapshot,查看所有可交互元素及其 ref
browser snapshot --targetId "ABC123..." --timeMs 2000
# 在返回结果中查找:
# - textbox "填写标题会有更多赞哦" [ref=e207]
# - textbox [ref=e216] (正文输入框)
# - button "暂存离开" [ref=e530]
# - button "发布" [ref=e533]完整发布代码示例:
#!/bin/bash
# 1. 打开发布页面
TARGET=$(browser open --url "https://creator.xiaohongshu.com/publish/publish?from=menu&target=image" | jq -r '.targetId')
# 2. 上传4张图片
browser upload --targetId "$TARGET" \
--paths "/tmp/comic-01.png" "/tmp/comic-02.png" "/tmp/comic-03.png" "/tmp/comic-04.png"
# 3. 等待上传完成,获取 snapshot
sleep 3
browser snapshot --targetId "$TARGET" --timeMs 2000
# 4. 填写标题(假设 ref=e207)
browser type --targetId "$TARGET" --ref "e207" \
--text "原来最好的爱情,是陪你从心动到心安"
# 5. 填写正文(假设 ref=e216)
browser type --targetId "$TARGET" --ref "e216" \
--text "第1格|一眼心动 💫\n..."
# 6. 保存到草稿(假设 ref=e530)
browser click --targetId "$TARGET" --ref "e530"
echo "✅ 已保存到草稿箱"常用操作速查:
| 操作 | 命令 | 示例 |
|---|---|---|
| 打开页面 | browser open --url "URL" | 获取 targetId |
| 查看 tabs | browser tabs | 列出所有页面 |
| 切换 tab | browser focus --targetId "ID" | 切换到指定页面 |
| 上传文件 | browser upload --paths "file1" "file2" | 批量上传 |
| 填写文本 | browser type --ref "e207" --text "内容" | 在输入框填入文字 |
| 点击按钮 | browser click --ref "e530" | 点击指定元素 |
| 获取页面 | browser snapshot --timeMs 2000 | 查看元素和 ref |
| 复合操作 | browser act --request '{...}' | 执行 click/type/press 组合 |
| 错误 | 后果 | 正确做法 |
|---|---|---|
| 不熟悉 browser 工具 | 不会自动化发布 | 学习 upload/type/click/snapshot 基本用法 |
不知道用 browser upload | 无法批量上传图片 | 使用 browser upload --paths file1 file2 ... |
| 不知道如何定位元素 | 无法填写标题/正文 | 先用 snapshot 获取 ref,再用 type/click |
| 不知道 targetId 的作用 | 操作失败或错乱 | 每次操作都传入正确的 targetId |
| 用户说"存草稿"却问"要不要发布" | 用户困惑,流程拖沓 | 听清指令,直接执行 |
| 频繁切换tab | 页面状态丢失 | 保持焦点,一次完成 |
| 点击"发布"代替"暂存离开" | 笔记直接发布 | 确认按钮位置,左草稿右发布 |
新手必学(按顺序):
练习任务:
- [ ] 打开小红书创作平台,获取 targetId
- [ ] 使用 snapshot 查看页面元素
- [ ] 找到"上传图片"按钮的 ref
- [ ] 使用 upload 上传一张测试图片
- [ ] 找到标题输入框的 ref,使用 type 填写标题
- [ ] 找到"暂存离开"按钮的 ref,使用 click 点击| 阶段 | 主要工具 | 辅助工具 |
|---|---|---|
| 账号准备 | browser | - |
| 爆款研究 | browser, xiaohongshu-deep-research | web_search |
| 内容策划 | - | memory_search |
| AI 生图 | kay-image-batch (批量) | image (分析) |
| AI 生图 | kay-image (单张,高质量) | - |
| 文案创作 | - | memory_get |
| 自动发布 | browser | - |
kay-image-batch(轮询 20s/次,最多 10 次)| 错误 | 后果 | 正确做法 |
|---|---|---|
| 分开生成漫画格 | 角色不一致 | 一次生成完整 4 格 |
| 忽略爆款研究 | 风格不对标 | 先研究再创作 |
| 文案过长 | 阅读率低 | 简洁有力 |
| 标签太少 | 曝光不足 | 5-8 个精准标签 |
| 打开 modal 直接提取 | 只能采集 1-3 张 | 优先用 Performance API 或 DOM 全量提取 |
| 不用批量方法 | 效率低 | 优先批量方法,不行再循环点击 |
| 串行生成多张图 | 耗时 8 分钟+ | 使用 kay-image-batch 批量模式(3 分钟) |
| 误解漫画结构 | 把1组多图当多组单图 | 先查看图片,理解故事线再规划 |
| 发布流程混乱 | 用户要草稿却问是否发布 | 听清指令,直接执行 |
| 未配置生图引擎 | 无法生成图片 | 提前配置 KIE_API_KEY |
| 方法 | 速度 | 完整度 | 推荐度 | 适用场景 |
|---|---|---|---|---|
| Performance API | ⚡⚡⚡ 最快 (~3 秒) | ✅✅✅ 100% | ⭐⭐⭐ 首选 | 10+ 张大图笔记 |
| DOM 全量提取 | ⚡⚡ 快 (~2 秒) | ✅✅✅ 100% | ⭐⭐⭐ 首选 | 5-10 张图笔记 |
| 循环点击切换 | 🐌 慢 (~15 秒/篇) | ✅✅✅ 100% | ⭐ 保底 | 批量方法失效时 |
决策流程:
1. 搜索关键词,打开搜索页
2. 点击笔记【封面图】打开预览 modal(必须!)
3. 等待 2-3 秒让资源加载
4. 尝试 Performance API → 成功?完成 ✅
5. 失败?尝试 DOM 全量提取 → 成功?完成 ✅
6. 还不行?循环点击切换所有图片 → 完成 ✅关键提醒:
| 类型 | 结构 | 发布方式 | 示例 |
|---|---|---|---|
| 四格漫画 | 1张图 = 4格分镜 | 1篇笔记,1张图 | 传统四格,2x2布局 |
| 2格漫画 | 1张图 = 2格分镜 | 1篇笔记,1张图 | 上下/左右分镜 |
| 多图连载 | 多张图,每张2-4格 | 1篇笔记,多张图 | 完整故事分多张呈现 |
| 单图插画 | 1张图 = 1个画面 | 1篇笔记,1张图 | 封面、海报 |
当用户说"这4张图是放到同一个漫画里"时:
❌ 错误理解:
用户:这4张图是放到同一个漫画里
我(错误):以为是4组独立漫画,准备发4条笔记✅ 正确理解:
用户:这4张图是放到同一个漫画里
我(正确):查看4张图,每张是2格分镜,共8个画面
图1: 一眼心动(女孩看书→男孩出现)
图2: 暧昧升温(秋天散步→眼神交汇)
图3: 低谷陪伴(女孩伤心→男孩递热饮)
图4: 修成正果(夕阳牵手→樱花树下笑)
→ 这是1篇笔记,4张图,讲述完整爱情故事- [ ] 已查看所有图片内容
- [ ] 已理解每张图的分镜结构(2格/4格/单图)
- [ ] 已理清图片间的逻辑关系(连续故事/独立场景)
- [ ] 已确认发布方式(1篇多图 / 多篇单图)
- [ ] 已撰写配合图片的文案
- [ ] 已确认用户意图(发布/草稿/定时).openclaw/workspace-xhs-manager/memory/prompts_warehouse --优秀prompt仓库
每次创作后更新:
memory/daily/YYYY-MM-DD.md - 当日工作日志memory/lessons/xhs-*.md - 经验教训memory/xhs-manage-master.md - 核心知识库© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (references) in skills/kay-xhs of LeoYeAI/openclaw-master-skills.
Open the folder on GitHubat commit e5199b5
Kay Xhs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Kay Xhs this skillLeoYeAI/openclaw-master-skills | 2.2k | — | ~4.2k | Automated safety check: Notes | MIT | |
| Agent ReachPanniantong/Agent-Reach | 95k | — | ~1.4k | Automated safety check: Pass | MIT | |
| Guizang Social Cardsop7418/guizang-social-card-skill | 7.4k | 1 repos | ~7.8k | Automated safety check: Pass | AGPL-3.0 | |
| Yuwen Publish Precheckyuwen-cool/yuwen-publish-precheck | 778 | 1 repos | ~1.8k | Automated safety check: Pass | MIT | |
| Video Podcast MakerAgents365-ai/video-podcast-maker | 1.7k | — | ~4.9k | Automated safety check: Pass | MIT | |
| Xhs Note Creatorcomeonzhj/Auto-Redbook-Skills | 2.3k | — | ~580 | Automated safety check: Notes | None |
Panniantong/Agent-Reach
Routes web research and platform lookups across 16 sites, including Twitter, Reddit, YouTube, Bilibili, Xiaohongshu and GitHub, through one command-line tool.
op7418/guizang-social-card-skill
Produces social card sets for Xiaohongshu and WeChat: carousels, Live Photo motion cards and puzzle layouts, and WeChat cover pairs, rendered from single-file HTML.
yuwen-cool/yuwen-publish-precheck
国内自媒体发布前风险自审与保意修复:审口播稿、文章、图文笔记、字幕、封面文字能不能发抖音/小红书/微信视频号,给出具体位置、依据和可直接替换的改稿;被限流/删除/处罚后帮你复盘归因;你的行业敏感词、误报白名单和踩坑案例会沉淀成个人规则库,越用越准。Use when…
Agents365-ai/video-podcast-maker
A skill your agent uses when the user gives a topic and wants an automated topic-driven narrated explainer, podcast, or knowledge-summary video (Bilibili / YouTube / Xiaohongshu / Douyin / WeChat…
comeonzhj/Auto-Redbook-Skills
小红书笔记素材创作技能。当用户需要创建小红书笔记素材时使用这个技能。技能包含:根据用户的需求和提供的资料,撰写小红书笔记内容(标题+正文),生成图片卡片(封面+正文卡片),以及发布小红书笔记。支持 8 种精美排版主题和 4 种智能分页模式。
chenjin-cmd/xhs-virtual-product
This skill helps plan, select, produce, and market Xiaohongshu (RED) virtual/digital products — templates, knowledge bases, test tools, study materials.
LeoYeAI/openclaw-master-skills
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
LeoYeAI/openclaw-master-skills
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
LeoYeAI/openclaw-master-skills
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
LeoYeAI/openclaw-master-skills
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
LeoYeAI/openclaw-master-skills
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
LeoYeAI/openclaw-master-skills
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
Works with
小红书全自动内容创作工作流 - 从爆款研究到草稿发布的完整 pipeline. An agent skill from LeoYeAI/openclaw-master-skills. Kay Xhs is an agent skill from LeoYeAI/openclaw-master-skills.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill kay-xhs -a claude-code`. Or copy the skill folder (skills/kay-xhs in LeoYeAI/openclaw-master-skills) into .claude/skills/kay-xhs in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill kay-xhs -a codex`. Or copy the skill folder (skills/kay-xhs in LeoYeAI/openclaw-master-skills) into .agents/skills/kay-xhs in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill kay-xhs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kay-xhs, .gemini/skills/kay-xhs, .github/skills/kay-xhs and .opencode/skills/kay-xhs in your project.
Going by SKILL.md and its folder, Kay Xhs needs the command-line tools its instructions call (jq) and credentials named KIE_API_KEY. Our summary lists: A credential in KIE_API_KEY.
SKILL.md names 4 domains. In commands or code: creator.xiaohongshu.com, kie.ai, sns-webpic-qc.xhscdn.com and xiaohongshu.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Kay Xhs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Kay Xhs: Agent Reach (Panniantong/Agent-Reach, 95k stars), Guizang Social Cards (op7418/guizang-social-card-skill, 7.4k stars), Yuwen Publish Precheck (yuwen-cool/yuwen-publish-precheck, 778 stars) and Video Podcast Maker (Agents365-ai/video-podcast-maker, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.
Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.