Xhs automation publisher

From Dirtytrii/codex-skills · View interactive version

Xhs automation publisher is an AI agent skill from the GitHub repository Dirtytrii/codex-skills. 操作小红书浏览器页面,包括登录检查、创作者中心预览填充、发布卡点排查、作品检索和数据导出。实际发布与互动需明确授权。

How to use this skill

Skill file

XHS Automation Publisher

This skill vendors white0dew/XiaohongshuSkills as a deterministic Xiaohongshu batch/export fallback. Interactive logged-in work should first load $browser-automation-router and use the Codex Chrome extension when available. The vendored Python + Chrome DevTools Protocol (CDP) commands remain useful for repeatable preview filling, creator data export, and explicit batch contracts.

Use With The Local Role System

Hard Gates

Surface Selection

  1. Use the Codex Chrome extension for an existing signed-in profile, visible creator-center review, one-off form filling, and user-observed troubleshooting.
  2. Use the in-app Browser only when its separate login state is acceptable; it does not inherit the user's Chrome profile.
  3. Use the vendored Python/CDP commands for batch export, a stable command contract, unattended repeatability, or an explicit fallback when native plugins are unavailable.
  4. Do not launch or copy a local Chrome profile merely to bypass a missing native plugin. Do not commit profile paths or login state.

Safe Default Flow

  1. Confirm target account, desired mode, media files, and whether final posting is authorized.
  2. For interactive work, verify the native Chrome surface and active account. For a script fallback, check/login only when requested:
python scripts/cdp_publish.py check-login
python scripts/cdp_publish.py login
  1. Fill creator-center form for human review:
python scripts/publish_pipeline.py --preview --title-file title.txt --content-file content.txt --images image1.png
  1. Only after explicit approval, run a publish command without --preview or run click-publish.
  2. Return exact commands, status markers, account boundary, and any manual actions left.

Useful Commands

python scripts/chrome_launcher.py
python scripts/chrome_launcher.py --restart
python scripts/cdp_publish.py list-accounts
python scripts/cdp_publish.py search-feeds --keyword "选题关键词"
python scripts/cdp_publish.py content-data --csv-file "content_data.csv"

The scripts require Python 3.10+, Google Chrome, and dependencies from requirements.txt.

Failure Handling

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.