Xhs publish assistant

From Dirtytrii/codex-skills · View interactive version

Xhs publish assistant is an AI agent skill from the GitHub repository Dirtytrii/codex-skills. 从本地稿件整理可复制的小红书发布材料,包括标题、正文、标签和图片目录。适用于输出发布格式或准备发布材料,全程在本地处理。

How to use this skill

Skill file

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

Workflow

  1. Resolve the target article directory.
  1. Read the relevant source:
  1. 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.
  1. 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

Relationship To Other XHS Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.