‹ 首页

xhs-publish-assistant

@dirtytrii · 收录于 1 周前 · 上游提交 1 周前

Prepare copy-ready Xiaohongshu/Rednote publish materials from a local XHS article package. Use when the user asks for "输出发布格式", "小红书发布格式", "准备发布", "二次编辑发布格式", or needs title/body/tags/output image directory/checks without browser automation or clicking publish.

适合你,如果你需要把本地写好的小红书文章整理成可直接发布的格式

/ 通过 npx 安装 校验哈希
npx oh-my-skill add dirtytrii/codex-skills/xhs-publish-assistant
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- dirtytrii/codex-skills/xhs-publish-assistant
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify dirtytrii/codex-skills/xhs-publish-assistant
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
9GitHub stars
~1.4K最小装载
~1.4K含声明引用
~3.4K文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 f142db6 · 表述以原文为准
它做什么

安装后,Claude 会帮你把小红书笔记的标题、正文、标签和配图目录整理成可直接复制粘贴的发布格式,并检查标题长度、标签数量、图片尺寸等是否符合要求。

什么时候触发

当你要求“输出发布格式”、“小红书发布格式”、“准备发布”或“二次编辑发布格式”时触发。

装好后可以这样说
Claude 会整理标题、正文、标签和配图目录。
技能原文 SKILL.md作者撰写 · MIT · f142db6

XHS Publish Assistant

Purpose

Prepare the final copy-paste bundle for a Xiaohongshu note. This skill is a publishing formatter, not a publishing robot.

Use it after the XHS role has already produced or approved the title, body, tags, and card images. Do not use this skill to choose topics, rewrite the note, generate cards, scrape comments, or register post-publish metrics.

Hard Boundaries
  • Do not open or automate Xiaohongshu pages.
  • Do not click publish, save, update, or any final platform button.
  • If the user asks for browser automation, login checks, creator-center fill, automatic publishing blockers, content-data export, or final posting, route to $xhs-automation-publisher and keep the same explicit final-publish approval gate.
  • Do not generate a publish HTML panel.
  • Do not list every image path unless the user explicitly asks; output only the output\ directory.
  • Do not modify published article source files. For a re-edit, use or create a reedit-YYYY-MM-DD\ package and keep the original as history.
  • Do not invent missing title/body/tags. If extraction is uncertain, say exactly what is missing and ask the user or read the source file manually.
Workflow
  1. Resolve the target article directory.
  2. Normal package: content/xhs/<date>/<article>/
  3. Re-edit package: content/xhs/<date>/<article>/reedit-YYYY-MM-DD/
  4. If the user only says "这篇", use the latest active XHS path from the conversation. If ambiguous, ask for the path.
  5. Read the relevant source:
  6. Prefer reedit-note.md inside a re-edit directory.
  7. Otherwise read content-pack.md.
  8. Before producing the final publish format, ensure title/body/caption copy has passed $humanizer-zh in the current role workflow. If it has not, load $humanizer-zh and polish only the public copy without changing facts, dates, prices, claims, account identity, or image order.
  9. If the note includes narrative prose, story fragments, or dialogue, use $story-deslop only for those narrative passages after facts are locked.
  10. Do not use either skill to invent missing copy. If source copy is incomplete, stop and report what is missing.
  11. Run the helper when available:
$skillRoot = if ($env:CODEX_HOME) { Join-Path $env:CODEX_HOME "skills\xhs-publish-assistant" } else { Join-Path $HOME ".codex\skills\xhs-publish-assistant" }
node (Join-Path $skillRoot "scripts\build_publish_format.cjs") "<article-or-reedit-directory>"
  1. Review the helper output against the source file. Fix obvious extraction mistakes manually before responding.
  2. Return only the final publish format. Keep it easy to copy.
Required Output Format

Use this exact section order:

标题

<title>

正文

<body>

标签

<hashtags, one line, <= 10 tags>

配图目录

<absolute output directory ending with backslash>

发布前检查

账号:<account or 待确认>
图片数量:<N>
图片尺寸:<全部 1080x1440 | mixed details | 未检查>
标题长度:<N> / 20
标签数量:<N> / 10
文案去 AI 味:<已运行 humanizer-zh | 已运行 humanizer-zh + story-deslop | 待确认>
标题覆盖:<short judgment>
封面职责:<short judgment>
图片顺序:按 output 目录内 xhs-*.png 文件名顺序上传
状态:<可发布 | 需补齐>

For a re-edit, append one extra section:

二次编辑记录

这是已发布笔记二次编辑。
编辑前基线:<views/comments/likes/favorites/shares if known>
编辑后请告诉我实际保存时间,我会登记为 reedit_phase。
Checks
  • Tags must be 10 or fewer. If more than 10, trim or ask which to keep.
  • Publish title must be 20 characters or fewer. Prefer 12-18 characters when possible. Count each Chinese character, Latin letter, number, punctuation mark, and visible space as one character. If the title is over 20, shorten it or mark the package as 需补齐.
  • The image directory should be an absolute path to an output\ folder, not individual images.
  • Prefer xhs-*.png ordering for upload.
  • Check PNG dimensions when images exist. Expected card size is 1080x1440.
  • Account must be explicit when possible. In this repo, read content/xhs/accounts.md if the package does not state the account.
  • For published/re-edited notes, mention the phase split so later retros do not mix original and edited performance.
Relationship To Other XHS Skills
  • XHS role decides the content strategy, title direction, body, card copy, and publish recommendation.
  • humanizer-zh is required before this skill returns a final copy-ready publish bundle.
  • story-deslop is optional and only for narrative/story/dialogue passages, not normal Xiaohongshu marketing or analysis copy.
  • xhs-visual-director is the default upstream for new carousel visuals, cover redesigns, and full visual rewrites. It should produce the style judgment, visual master, confirmation image, and final card images before this skill checks the output directory.
  • Existing HTML/render workflows or guizang-social-card-skill may still be used for legacy packages or small local edits, but the final publish bundle should state whether the visual direction was confirmed.
  • cheat-on-content handles prediction, publish registration, retro, and rubric calibration after the user publishes.
  • xhs-comment-research reads and analyzes comments; this skill does not scrape comments.
  • xhs-automation-publisher handles authorized browser/CDP automation. It defaults to preview/fill and requires explicit user approval before final posting or interaction commands.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。