skills/xhs-image-gen/SKILL.md
Generate Xiaohongshu (小红书) carousel images (3:4, 1080x1440) from structured content. Creates professional slide decks with Chinese typography and proper XHS formatting. Triggers on "做小红书图", "xhs images", "generate xhs slides", "小红书配图", "carousel images", or any XHS image generation request.
npx skillsauth add phy041/claude-agent-skills xhs-image-genInstall 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.
Generate professional Xiaohongshu carousel images from structured content JSON. Outputs 3:4 vertical PNGs (1080x1440) with Chinese typography, ready for upload.
Clone the skill:
git clone https://github.com/PHY041/claude-agent-skills
cd claude-agent-skills/skills/xhs-image-gen
python3 -m venv venv
venv/bin/pip install -r requirements.txt
Optional — AI cover generation (uses fal.ai):
export FAL_API_KEY="your_fal_api_key"
# Template-only (fast, free)
venv/bin/python3 generate.py content.json --output /tmp/xhs-output/
# AI cover + template content (recommended)
FAL_API_KEY="..." venv/bin/python3 generate.py content.json --ai-cover --output /tmp/xhs-output/
When user asks to create XHS content for topic X:
| Mode | Flag | When to Use |
|------|------|-------------|
| Gradient cover (default) | (none) | Clean, fast, no API cost |
| AI cover | --ai-cover | Eye-catching background via fal.ai |
AI cover uses flux/schnell to generate an atmospheric background, applies a dark gradient overlay, and renders white text on top. Content slides always use templates (no AI). Cost: ~$0.003 per cover.
{
"template": "tutorial",
"ai_cover": true,
"slides": [
{
"type": "cover",
"title": "大标题(简短有力)",
"subtitle": "副标题(补充说明)",
"tag": "分类标签",
"author": "@your_handle",
"ai_prompt": "optional: custom fal.ai prompt for background"
},
{
"type": "content",
"title": "第一个要点",
"number": 1,
"body": "详细说明\n用换行分段\n每段1-2句话",
"highlight": "可选:重点提示框内容"
},
{
"type": "list",
"title": "清单/工具列表",
"items": [
"第一项 — 简短说明",
"第二项 — 简短说明",
"第三项 — 简短说明"
]
},
{
"type": "summary",
"title": "总结",
"points": [
"核心收获一",
"核心收获二",
"核心收获三"
],
"cta": "关注我获取更多干货"
}
]
}
cat > /tmp/xhs-content.json << 'EOF'
{... your JSON here ...}
EOF
venv/bin/python3 generate.py /tmp/xhs-content.json --output /tmp/xhs-output/
Show the generated images for review. If approved, they're ready for manual upload to Xiaohongshu.
| Template | Style | Best For |
|----------|-------|----------|
| tutorial | White bg, blue accent | How-to, tutorials, step-by-step |
| dark | Dark bg, soft blue accent | Tech, dev tools, coding |
| warm | Cream bg, amber accent | Lifestyle, personal stories |
| nature | Light green bg, green accent | Wellness, growth, nature |
| coral | Light pink bg, red accent | Alerts, hot takes, comparisons |
Select with --template dark or set "template": "dark" in JSON.
Override with "accent_color": "#FF6B6B" in the JSON root.
generate.py <content.json> [--template NAME] [--output DIR] [--ai-cover]
generate.py --list-templates
| Flag | Effect |
|------|--------|
| --ai-cover | Generate fal.ai background for cover slide |
| --template | Template preset (tutorial, dark, warm, nature, coral) |
| --output | Output directory (default: ./output) |
AI cover also activatable via JSON: set "ai_cover": true in the root object.
slide-01-cover.png, slide-02-content.png, etc.Test with the bundled example:
venv/bin/python3 generate.py example.json --output /tmp/xhs-test/
open /tmp/xhs-test/ # Preview on macOS
testing
Twitter/X account cultivation and growth system. Checks account health (TweepCred, shadowban), analyzes tweets, finds engagement opportunities, recommends unfollows, and tracks progress. Triggers on "/twitter-cultivate", "check my twitter", "twitter health", "grow my twitter", "twitter maintenance", "fix my twitter reach".
development
Post to social media platforms using a multi-provider social posting API. Use when you want to post to Twitter, LinkedIn, Instagram, Facebook, TikTok, Threads, or Bluesky. Triggers on "post to twitter", "post to instagram", "social media post", "share on linkedin", "publish to social", or any social posting request.
development
Detect new GitHub repos and generate formatted ship announcements for social media. Monitors your GitHub profile for new repos pushed today, writes a technical digest, and drafts Twitter/Reddit posts for approval. Triggers on "ship digest", "new repos", "what did I ship", "github ship", or any shipping announcement request.
development
Reddit account cultivation for founders and indie developers. Uses AppleScript to control real Chrome — undetectable by anti-bot systems. Checks karma, finds rising posts, drafts comments, and posts directly. Triggers on "/reddit-cultivate", "check my reddit", "reddit maintenance", "find reddit opportunities", "build reddit karma".