Skip to content
Back to search

xiaohongshu-skills

小红书 skills,能够将用户自定义主题生成精美的小红书封面图,生图模型使用 Nano Banana Pro.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/freestylefly--xiaohongshu-skills/badge.svg)](/listings/freestylefly--xiaohongshu-skills)

HTML

<a href="/listings/freestylefly--xiaohongshu-skills"><img src="/api/listings/freestylefly--xiaohongshu-skills/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

SKILL.md · Manifest · 54 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. ---
  2. name: xiaohongshu-cover-generator
  3. description: Generate Xiaohongshu (小红书) style cover images based on user topics. Use when the user wants to create a social media cover image in Xiaohongshu style, or mentions keywords like "小红书封面", "Xiaohongshu cover", "封面生成", or provides a topic for cover image generation. The generated image will be saved to the current project directory.
  4. ---
  5. # Xiaohongshu Cover Generator
  6. This skill generates Xiaohongshu-style cover images based on user-provided topics.
  7. ## Usage
  8. When a user requests a Xiaohongshu cover image:
  9. 1. Confirm the topic with the user if not clear
  10. 2. Check for API key (CANGHE_API_KEY environment variable or ask user to provide it)
  11. 3. Run the generation script with the topic
  12. 4. The image will be saved to the current working directory with filename format: `xiaohongshu-cover-{timestamp}.png`
  13. ## Running the Script
  14. The script is located at `scripts/handler.ts` and requires:
  15. - Topic (required): The subject for the cover image
  16. - API Key (required): Either via environment variable `CANGHE_API_KEY` or passed as argument
  17. Execute with:
  18. ```bash
  19. cd ~/.codebuddy/skills/xiaohongshu-cover-generator
  20. npx tsx scripts/handler.ts "<topic>" "<api-key-optional>"
  21. ```
  22. Or with environment variable:
  23. ```bash
  24. cd ~/.codebuddy/skills/xiaohongshu-cover-generator
  25. CANGHE_API_KEY="your-api-key" npx tsx scripts/handler.ts "<topic>"
  26. ```
  27. ## API Key
  28. Users need a valid API key from https://api.canghe.ai/
  29. If the API key is missing or invalid, provide the user with clear instructions to obtain one.
  30. ## Output
  31. The generated image will be saved to **the directory where the skill was invoked** (current working directory), not the skill's directory. The filename format is `xiaohongshu-cover-{timestamp}.png` where timestamp is in milliseconds.
  32. ## Style Specifications
  33. The generated images follow these specifications:
  34. - Aspect ratio: 3:4 (vertical, mobile-friendly)
  35. - Style: Clean, refined, youthful aesthetic
  36. - Automatic removal of watermarks and logos
  37. - High-quality output suitable for mobile viewing
  38. - Text should be clear and readable with appropriate sizing
README.md · README · 73 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # 小红书封面生成器
  2. 根据用户输入的主题,自动生成小红书风格的封面图片。
  3. ## 使用方式
  4. ### 获取 API Key
  5. 在使用之前,您需要先获取 API Key:
  6. 1. 访问 https://api.canghe.ai/
  7. 2. 注册/登录账号
  8. 3. 获取您的 API Key
  9. ### 配置 API Key
  10. 有两种方式配置 API Key:
  11. **方式一:通过命令行参数传递**
  12. ```bash
  13. npm start "复古学院风穿搭" "your-api-key-here"
  14. ```
  15. **方式二:通过环境变量设置**
  16. ```bash
  17. export CANGHE_API_KEY="your-api-key-here"
  18. npm start "复古学院风穿搭"
  19. ```
  20. ### 使用示例
  21. 直接输入你想要的主题,例如:
  22. ```bash
  23. # 命令行参数方式
  24. npm start "复古学院风穿搭" "your-api-key-here"
  25. # 环境变量方式
  26. export CANGHE_API_KEY="your-api-key-here"
  27. npm start "秋季护肤指南"
  28. # 更多示例
  29. npm start "职场新人必读书单"
  30. npm start "周末探店推荐"
  31. ```
  32. ## 功能特点
  33. - 自动生成符合小红书风格的封面图片
  34. - 支持任意主题输入
  35. - 图片比例为竖版 3:4(适合手机屏幕)
  36. - 设计清新、精致、年轻化
  37. - 自动去除水印和logo
  38. ## API Key 说明
  39. - API Key 是必需的,没有 API Key 将无法使用
  40. - 如果 API Key 无效或过期,系统会提示您前往 https://api.canghe.ai/ 获取新的 API Key
  41. - API Key 通过参数或环境变量传递,安全性更高
  42. ## 错误处理
  43. 如果出现以下错误:
  44. - `缺少 API Key`:请前往 https://api.canghe.ai/ 获取您的 API Key
  45. - `API Key 无效`:请检查您的 API Key 是否正确,或前往 https://api.canghe.ai/ 获取新的 API Key
  46. - `API Error`:请检查网络连接或稍后重试
  47. ## 输出
  48. 生成的图片会保存到当前目录,文件名格式为:`xiaohongshu-cover-{timestamp}.png`

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.