# Xhs Publisher

> Use when the user wants Codex to draft or semi-publish a Xiaohongshu note with this repository. This skill is for the local Codex workflow in this repo, defaults to ordinary image-text notes, prepares payload JSON, and calls codex_xhs.py without auto-publishing unless the user explicitly asks.

- Skill: `wbx125133/xhs-publisher` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add wbx125133/xhs-publisher`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wbx125133/xhs-publisher/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: wbx125133 (https://skillmd.com/u/wbx125133)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/wbx125133/xhs-publisher

---


# XHS Publisher

Use this skill when the user wants to publish or semi-publish a Xiaohongshu post with the local tooling in this repository.

## Scope

- Default to ordinary image-text notes.
- Do not assume long-article mode is ready unless the user explicitly asks and the repo has been updated for it.
- Default to manual confirmation. Do not auto-publish unless the user explicitly requests it.

## Workflow

1. Gather the note title, body, and image paths.
2. If the user asks for optimization, rewrite the copy first and keep the tone aligned with the user’s existing Xiaohongshu style.
3. Build or update a payload JSON under `payloads/`.
4. Run:

```bash
python codex_xhs.py draft --payload payloads/example_note.json
```

5. Leave the browser open for manual review when appropriate.

## Guardrails

- Ordinary note mode requires images. If images are missing, stop and ask for them or generate covers first.
- Keep login state local. Never commit `.codex-xhs-data`, cookies, or private payloads.
- If the user wants a public repository artifact, use `payloads/example_note.json` as the shareable example and keep personal phone numbers out of committed files.

## Useful Commands

Login once:

```bash
python codex_xhs.py login --phone 13800138000 --country-code +86
```

Semi-fill a note:

```bash
python codex_xhs.py draft --payload payloads/example_note.json
```

