skills/xhs-text2image/SKILL.md
小红书创作平台“文字配图”自动化技能。用户只要提到小红书创作平台、文字配图、科技主题、换配色、9444 端口、CDP、自动生成图片、自动下载图片、基于已有预览图换主题/换颜色,或者想先看看各个主题长什么样子,都应该使用这个技能。它会连接已登录的浏览器会话,生成图片,默认下载当前图片,支持继续切主题或换配色,也支持直接给出已经整理好的主题预览总览图和单张样例。
npx skillsauth add shuliuzhenhua-sys/shuliu-skills xhs-text2imageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Important: All scripts and bundled preview assets are located inside this skill directory.
Agent Execution Instructions:
SKILL.md file's directory path as SKILL_DIR${SKILL_DIR}/scripts/xhs_text2image.py${SKILL_DIR}/theme_catalog/${SKILL_DIR} placeholders in this document with the actual installed path用本机浏览器里已经登录的小红书创作平台会话,自动完成:
遇到这些需求时直接使用本技能:
--port--cdp-url--chrome-path--profile-dir脚本路径:
python3 ${SKILL_DIR}/scripts/xhs_text2image.py
create 会在成功后默认下载当前预览图update --theme ... 会切主题并默认下载更新后的图update --recolor 会换配色并默认下载更新后的图download 会再次下载当前预览图也就是说,只要走 create 或 update,就默认会返回本地下载路径,不需要用户再额外要求“顺便下载”
这套 skill 内置固定样例,文案是 小红书主题测试:
${SKILL_DIR}/theme_catalog/overview.jpg${SKILL_DIR}/theme_catalog/manifest.json${SKILL_DIR}/theme_catalog/images/处理“客户想先看看主题长什么样子”这类请求时,按这个顺序:
images/ 里发对应单图catalog 重新刷新整套资产python3 ${SKILL_DIR}/scripts/xhs_text2image.py \
create \
--port 9444 \
--text "codex 牛逼" \
--theme 科技
python3 ${SKILL_DIR}/scripts/xhs_text2image.py \
create \
--port 9444 \
--text "今天的灵感"
python3 ${SKILL_DIR}/scripts/xhs_text2image.py \
update \
--port 9444 \
--job-id <job_id> \
--theme 简约
python3 ${SKILL_DIR}/scripts/xhs_text2image.py \
update \
--port 9444 \
--job-id <job_id> \
--recolor
连续换两次配色:
python3 ${SKILL_DIR}/scripts/xhs_text2image.py \
update \
--port 9444 \
--job-id <job_id> \
--recolor 2
python3 ${SKILL_DIR}/scripts/xhs_text2image.py \
download \
--port 9444 \
--job-id <job_id>
python3 ${SKILL_DIR}/scripts/xhs_text2image.py \
status \
--port 9444
python3 ${SKILL_DIR}/scripts/xhs_text2image.py \
themes \
--port 9444
python3 ${SKILL_DIR}/scripts/xhs_text2image.py \
catalog \
--port 9444 \
--text "小红书主题测试"
--port: 远程调试端口,比如 9444--cdp-url: 完整 CDP 地址,比如 http://127.0.0.1:9444--chrome-path: Chrome 可执行文件路径--profile-dir: Chrome profile 目录--base-dir: 任务和图片输出根目录,默认是当前目录--timeout: 图片生成等待秒数--catalog-dir: catalog 子命令的样例输出目录,默认写入 skill 下的 theme_catalog/脚本返回 JSON,重点字段:
okjob_idthemeimage_urldownload_pathpage_urlmessageoverview_pathmanifest_pathcreateupdatestatusthemestheme_catalog/overview.jpg,不要先只回主题名列表catalog当前本机已验证这条命令可跑通:
python3 ${SKILL_DIR}/scripts/xhs_text2image.py \
create \
--port 9444 \
--text "codex 牛逼" \
--theme 科技
development
抓取和拆解微信公众号文章页。只要用户提到“微信公众号网页”“公众号文章”“mp.weixin.qq.com/s/”“抓 HTML”“导出素材”“分析公众号动画/实现方式/图片资源”这类场景,就应该使用这个 skill。它适用于公开可访问的公众号文章页,负责抓原始 HTML、提取资源、下载素材、整理动画线索,并生成结构化报告。
development
Generate videos using Sora via lnapi.com.
data-ai
Generate images via geekai.co image endpoints. Use when the user wants text-to-image generation through GeekAI, needs to choose between nano-banana-2 and gemini-3-pro-image-preview, or wants batch image generation with aspect ratio and size control.
development
Use when 用户提到“飞书授权”“OAuth”“Device Flow”“open_id”“重复弹授权窗”“复用 token”“补授权 scope”“飞书 token 存哪儿了”这类场景,需要复用本地已有用户 token、只补缺失 scopes,或排查 token 的实际存储位置。