AI 生成小红书图文卡片技能。适用于需要 AI 原创插画/卡通/手绘配图的图文并茂内容(种草分享、手绘笔记、知识图解、插画教程、视觉冲击封面等)。本技能通过 AI 图像生成工具创建 1-10 张风格化图片卡片,支持 12 种视觉风格(cute/fresh/warm/bold/minimal/retro/pop/notion/chalkboard/study-notes/screen-print/sketch-notes)、8 种信息布局和 3 种配色方案。触发关键词:"小红书图片"、"生成图片"、"AI配图"、"插画卡片"、"手绘风格"、"图文并茂"、"XHS images"、"种草图"、"图解"。注意:当用户只需要撰写文字笔记并排版发布(不需要 AI 生成原创配图)时,应使用 xhs-note-creator 技能。
小红书文字笔记创作与发布技能。适用于以文字内容为主的笔记场景(干货分享、知识科普、清单排行、教程步骤、资源推荐等)。本技能负责:(1) 撰写小红书笔记文案(标题+正文+标签),(2) 通过本地渲染脚本生成排版精美的图片卡片(8种CSS主题+4种分页模式),(3) 一键发布到小红书平台。触发关键词:"写笔记"、"发小红书"、"发布笔记"、"文字笔记"、"小红书文案"、"撰写笔记"、"排版卡片"。注意:当用户需要 AI 生成插画/卡通/手绘风格的原创配图内容(非文字排版)时,应使用 xhs-images-design 技能而非本技能。
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
公告地址:关于打击AI托管运营账号的治理公告
仓库地址:https://github.com/tensorslab/xhs-skills.git
本项目基于 Skills 工作流重新组织了小红书内容创作、图片生成与发布能力。当前仓库相对于原上游仓库在目录结构、技能拆分、提示词协作方式、发布流程和方案展示细节上都已发生较大变化;原上游仓库已移入致谢列表。
项目包含两个小红书创作技能,各司其职,并共享同一套发布能力:
| 技能 | 定位 | 适用场景 |
|---|---|---|
| xhs-note-creator | 文字类小红书创作与发布 | 撰写文案 → 专业化排版渲染卡片 → 私密推送到小红书 |
| xhs-images-design | 图片类小红书图文卡片生成与发布 | AI 生成插画/卡通/手绘风格原创配图 → 私密推送到小红书 |
核心能力:
本项目定位为创作辅助与私密草稿推送工具,不鼓励也不支持无人值守的托管运营、批量发布或绕过平台规则的行为。所有内容默认仅自己可见,需由用户在小红书端确认后自行公开。
本仓库不是 GitHub fork,而是在 MIT License 允许范围内基于相关项目重新组织、改造和扩展。原始来源已在致谢中列出,并在 LICENSE 中保留对应版权声明。
# 添加本仓库为 marketplace
/plugin marketplace add tensorslab/xhs-skills
# 安装插件
/plugin install xhs-skills@tensorslab-xhs-skills
安装后运行 /reload-plugins 即可使用。
跟你的 Agent 说:
拉取下面的项目,安装其中的技能:https://github.com/tensorslab/xhs-skills.git
git clone https://github.com/tensorslab/xhs-skills.git
cd xhs-skills
可以将本项目skills 目录中所有skill 放到支持 Skills 的客户端目录,例如:
~/.claude/skills/~/.config/Alma/skills//your-path/.trae/skills/Python:
pip install -r requirements.txt
playwright install chromium
Node.js:
npm install
npx playwright install chromium
以文字内容为主的笔记场景:干货分享、知识科普、清单排行、教程步骤等。
核心脚本:skills/xhs-note-creator/scripts/render_xhs.py
# 最简单用法(默认主题 + 手动分页)
python skills/xhs-note-creator/scripts/render_xhs.py demos/content.md
# 使用自动分页(推荐:内容长短难控)
python skills/xhs-note-creator/scripts/render_xhs.py demos/content.md -m auto-split
# 使用固定尺寸自动缩放(auto-fit)
python skills/xhs-note-creator/scripts/render_xhs.py demos/content_auto_fit.md -m auto-fit
# 切换主题(例如 Playful Geometric)
python skills/xhs-note-creator/scripts/render_xhs.py demos/content.md -t playful-geometric -m auto-split
# 自定义尺寸和像素比
python skills/xhs-note-creator/scripts/render_xhs.py demos/content.md -t retro -m dynamic --width 1080 --height 1440 --max-height 2160 --dpr 2
主要参数:
| 参数 | 简写 | 说明 |
|---|---|---|
--theme | -t | 可用主题:default、playful-geometric、neo-brutalism、botanical、professional、retro、terminal、sketch、glassmorphism |
--mode | -m | 分页模式:separator / auto-fit / auto-split / dynamic |
--width | -w | 图片宽度(默认 1080) |
--height | 图片高度(默认 1440,dynamic 为最小高度) | |
--max-height | dynamic 模式最大高度(默认 2160) | |
--dpr | 设备像素比,控制清晰度(默认 2) |
生成结果:封面
cover.png+ 正文卡片card_1.png、card_2.png...
脚本:skills/xhs-note-creator/scripts/render_xhs.js,参数与 Python 基本一致:
# 默认主题 + 手动分页
node skills/xhs-note-creator/scripts/render_xhs.js demos/content.md
# 指定主题 + 自动分页
node skills/xhs-note-creator/scripts/render_xhs.js demos/content.md -t terminal -m auto-split
发布脚本会始终以「仅自己可见」方式发布,内容不会直接公开。用户可在小红书 App 或网页中确认效果后,再手动调整为公开。
1. 扫码登录 / 配置 Cookie
cp env.example.txt .env
编辑 .env:
XHS_COOKIE=your_cookie_string_here
获取方式:运行
python skills/xhs-note-creator/scripts/quick_login.py,扫码登录后自动获取。
2. 发布
# 从方案文件读取文案(推荐)
python skills/xhs-note-creator/scripts/publish_xhs.py \
--title "笔记标题" --note note.md --images cover.png card_1.png card_2.png
# 手动指定标题和描述
python skills/xhs-note-creator/scripts/publish_xhs.py \
--title "笔记标题" --desc "笔记描述" --images cover.png card_1.png
可选参数:
npx claudepluginhub tensorslab/xhs-skills --plugin xhs-skillsPowerful Agent Skills for image and video generation tasks using TensorsLab. Support Text-to-Image, Image-to-Image, Text-to-Video and Image-to-Video via natural language prompt.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Complete creative writing suite with 10 specialized agents covering the full writing process: research gathering, character development, story architecture, world-building, dialogue coaching, editing/review, outlining, content strategy, believability auditing, and prose style/voice analysis. Includes genre-specific guides, templates, and quality checklists.
UI/UX design intelligence. 67 styles, 161 palettes, 57 font pairings, 25 charts, 15 stacks (React, Next.js, Vue, Svelte, Astro, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, Nuxt, Jetpack Compose). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
This skill should be used when users need to generate ideas, explore creative solutions, or systematically brainstorm approaches to problems. Use when users request help with ideation, content planning, product features, marketing campaigns, strategic planning, creative writing, or any task requiring structured idea generation. The skill provides 30+ research-validated prompt patterns across 14 categories with exact templates, success metrics, and domain-specific applications.
Develop, test, build, and deploy Godot 4.x games with Claude Code. Includes GdUnit4 testing, web/desktop exports, CI/CD pipelines, and deployment to Vercel/GitHub Pages/itch.io.