Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add byheaven/byheaven-skills --skill xhs-publishergit clone --depth 1 https://github.com/byheaven/byheaven-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/byheaven/byheaven-skills/xhs-publisher)<a href="https://agentmods.dev/skills/byheaven/byheaven-skills/xhs-publisher"><img src="https://agentmods.dev/badge/skills/byheaven/byheaven-skills/xhs-publisher/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/byheaven/byheaven-skills/xhs-publisher"><img src="https://agentmods.dev/badge/skills/byheaven/byheaven-skills/xhs-publisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk warn
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00019 | $0.04218 |
| Opus 5 | $0.00010 | $0.02109 |
| Sonnet 5 | $0.00004 | $0.00844 |
| Haiku 4.5 | $0.00002 | $0.00422 |
Grade A, and why
xhs-publisher scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 653 lines — stays where its author put it; the contents beside it link to each section on GitHub.
小红书发布技能 (Xiaohongshu Publishing Skill)
本技能文档包含小红书创作者平台的详细发布流程、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 |
一、文字配图流程 (< 140字)
流程概览
1. 导航到文字配图入口
2. 点击"文字配图"按钮
3. 输入第一张图片内容(标题)
4. 添加第二张图片并输入正文内容
5. 一次性生成全部图片
6. 选择模板样式并下一步
7. 填写发布信息(标题、正文、标签)
8. 用户确认后发布
[!IMPORTANT] 核心流程: 先输入所有内容(标题 + 正文),再一次性生成全部图片。不要每张图片单独生成!
步骤 1: 导航到文字配图入口
URL: https://creator.xiaohongshu.com/publish/publish?target=image
页面加载后会显示"上传图文"选项,包含两个按钮:
- "上传图片"(红色按钮)
- "文字配图"(灰色按钮,带图标)
步骤 2: 点击"文字配图"按钮
查找方法:
find: "文字配图 button"
元素特征:
- 类型:
button - 文本: "文字配图"
- 功能: 进入文字生成图片编辑器
操作:
find("文字配图 button")
click()
wait(2)
步骤 3: 输入第一张图片内容(标题)
输入框:
find("真诚分享经验或资讯 textbox")
操作:
find("真诚分享经验或资讯 textbox")
click()
type(title)
wait(1)
步骤 4: 添加第二张图片并输入正文内容
添加第二张图片:
find("再写一张")
click()
wait(1)
正文输入框:
find("在这里输入正文 textbox")
操作:
find("在这里输入正文 textbox")
click()
type(content)
wait(1)
[!NOTE] 此时已输入所有内容(标题 + 正文),准备一次性生成全部图片。
步骤 5: 一次性生成全部图片
生成图片按钮:
find("生成图片 button")
操作:
find("生成图片 button")
click()
wait(5) // 等待所有图片生成,时间稍长
[!NOTE] 点击"生成图片"会同时生成标题和正文两张图片。不需要分别点击生成。
步骤 6: 选择模板样式并下一步
页面特征:
- 标题: "预览图片"
- 左侧大预览区域显示生成的图片
- 右侧多种模板选项(基础、边框、备忘、涂鸦、手写、光影、简约、便签、印刷、科技等)
- 底部有"下一步"按钮
模板选择:
- 默认选中"边框"模板(蓝色边框高亮)
- 可点击其他模板切换样式
- 自动化流程建议使用默认选中的模板
操作:
// 使用默认选中的模板
find("下一步 button")
click()
wait(2)
步骤 7: 填写发布信息
页面标题: "发布图文"
7.1 图片编辑区
特征:
- 显示 "图片编辑 (2/18)" - 表示已添加2张图片,最多18张
- 左侧有"添加"按钮可继续添加图片
- 显示已生成的图片缩略图
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 653 lines · 19 tokens per session scan A 7521b7e44788
xhs-publisher is a skill published in the GitHub repository byheaven/byheaven-skills (2 stars, last pushed 11d ago), licensed MIT. It adds 19 tokens to every session and 4,218 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…