10-of-my-most-popular-text-to-image-series-prompts-78b0897e
generate a bunch of images, then you curate the results to handpick the best ones
Automatically publish notes to Xiaohongshu (小红书) creator center. Generates cover images (PIL poster, multiple styles), writes content from templates, and publishes via Playwright browser context. Cross-platform (Windows/macOS/Linux). Login once, publish many times. Use when user wants to post to 小红书, XHS, or Red Note.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install harveyzzzz/xhsredbook打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
自动发布笔记到小红书创作者中心。内容生成 → 封面图生成(多张) → 自动发布,全流程自动化。
--profile-dir 或 XHS_PROFILE_DIR 显式开启| 变量 | 说明 | 默认值 |
|---|---|---|
SKILL_DATA_DIR |
数据根目录(图片/内容/截图) | <skill>/.local/ |
XHS_PROFILE_DIR |
浏览器 profile 目录(登录态持久化) | 临时目录(不持久化) |
XHS_FONT_PATH |
自定义字体路径 | 系统默认中文字体 |
python scripts/save_login.py # 默认保存到 .local/xhs_browser_profile/
python scripts/save_login.py --profile-dir ~/xhs_data # 自定义目录
python scripts/auto_publish.py --topic 美食 # 临时 profile,不保留登录态
python scripts/auto_publish.py --topic 科技 --profile-dir .local/xhs_browser_profile # 复用已保存的登录态
python scripts/auto_publish.py --topic 穿搭 --count 5
python scripts/auto_publish.py --topic 生活 --image a.png b.png c.png
也可以通过环境变量设置 profile 目录,避免每次传参:
export XHS_PROFILE_DIR=.local/xhs_browser_profile # Linux/macOS
set XHS_PROFILE_DIR=.local\xhs_browser_profile # Windows
python scripts/auto_publish.py --topic 美食
| 参数 | 说明 | 默认值 |
|---|---|---|
--topic |
话题(美食/旅游/穿搭/科技/生活/健身) | 科技 |
--title |
自定义标题(<20字) | 自动生成 |
--content |
自定义正文 | 自动生成 |
--cover-text |
封面图文字 | 用标题 |
--image |
已有图片路径(可多张) | 自动生成 |
--profile-dir |
浏览器 profile 目录(登录态持久化) | 临时目录 |
--count |
生成图片数量 | 3 |
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# 小红书自动发布技能 自动发布笔记到小红书创作者中心。内容生成 → 封面图生成(多张) → 自动发布,全流程自动化。 ## 核心特性 - ✅ 跨平台(Windows / macOS / Linux) - ✅ 无硬编码路径,所有目录可通过环境变量或参数配置 - ✅ 浏览器会话默认不持久化到磁盘(安全),可通过 `--profile-dir` 或 `XHS_PROFILE_DIR` 显式开启 - ✅ 内容自动生成(6大话题模板库 + 通用模板) - ✅ 封面图自动生成(5种布局 × 7种纹理 × 10种配色,每张风格不同) - ✅ 多图上传(默认3张,可配置) - ✅ 一条命令完成全流程 ## 环境变量(可选) | 变量 | 说明 | 默认值 | |------|------|--------| | `SKILL_DATA_DIR` | 数据根目录(图片/内容/截图) | `<skill>/.local/` | | `XHS_PROFILE_DIR` | 浏览器 profile 目录(登录态持久化) | 临时目录(不持久化) | | `XHS_FONT_PATH` | 自定义字体路径 | 系统默认中文字体 | ## 快速开始 ### 首次登录(只需一次) ```bash python scripts/save_login.py # 默认保存到 .local/xhs_browser_profile/ python scripts/save_login.py --profile-dir ~/xhs_data # 自定义目录 ``` ### 一键发布 ```bash python scripts/auto_publish.py --topic 美食 # 临时 profile,不保留登录态 python scripts/auto_publish.py --topic 科技 --profile-dir .local/xhs_browser_profile # 复用已保存的登录态 python scripts/auto_publish.py --topic 穿搭 --count 5 python scripts/auto_publish.py --topic 生活 --image a.png b.png c.png ``` 也可以通过环境变量设置 profile 目录,避免每次传参: ```bash export XHS_PROFILE_DIR=.local/xhs_browser_profile # Linux/macOS set XHS_PROFILE_DIR=.local\xhs_browser_profile # Windows python scripts/auto_publish.py --topic 美食 ``` ### 参数说明 | 参数 | 说明 | 默认值 | |------|------|--------| | `--topic` | 话题(美食/旅游/穿搭/科技/生活/健身) | 科技 | | `--title` | 自定义标题(<20字) | 自动生成 | | `--content` | 自定义正文 | 自动生成 | | `--cover-text` | 封面图文字 | 用标题 | | `--image` | 已有图片路径(可多张) | 自动生成 | | `--profile-dir` | 浏览器 profile 目录(登录态持久化) | 临时目录 | | `--count` | 生成图片数量 | 3 | ## 话题模...
generate a bunch of images, then you curate the results to handpick the best ones
generate a bunch of images, then you curate the results to handpick the best ones
Productivity system based on Maya calendar with 13 natural tones for project management and personal development
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.