Back to search
xiaohongshu-skills
SkillGitHub
小红书 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
Markdown
[](/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)
- ---
- name: xiaohongshu-cover-generator
- 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.
- ---
- # Xiaohongshu Cover Generator
- This skill generates Xiaohongshu-style cover images based on user-provided topics.
- ## Usage
- When a user requests a Xiaohongshu cover image:
- 1. Confirm the topic with the user if not clear
- 2. Check for API key (CANGHE_API_KEY environment variable or ask user to provide it)
- 3. Run the generation script with the topic
- 4. The image will be saved to the current working directory with filename format: `xiaohongshu-cover-{timestamp}.png`
- ## Running the Script
- The script is located at `scripts/handler.ts` and requires:
- - Topic (required): The subject for the cover image
- - API Key (required): Either via environment variable `CANGHE_API_KEY` or passed as argument
- Execute with:
- ```bash
- cd ~/.codebuddy/skills/xiaohongshu-cover-generator
- npx tsx scripts/handler.ts "<topic>" "<api-key-optional>"
- ```
- Or with environment variable:
- ```bash
- cd ~/.codebuddy/skills/xiaohongshu-cover-generator
- CANGHE_API_KEY="your-api-key" npx tsx scripts/handler.ts "<topic>"
- ```
- ## API Key
- Users need a valid API key from https://api.canghe.ai/
- If the API key is missing or invalid, provide the user with clear instructions to obtain one.
- ## Output
- 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.
- ## Style Specifications
- The generated images follow these specifications:
- - Aspect ratio: 3:4 (vertical, mobile-friendly)
- - Style: Clean, refined, youthful aesthetic
- - Automatic removal of watermarks and logos
- - High-quality output suitable for mobile viewing
- - 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)
- # 小红书封面生成器
- 根据用户输入的主题,自动生成小红书风格的封面图片。
- ## 使用方式
- ### 获取 API Key
- 在使用之前,您需要先获取 API Key:
- 1. 访问 https://api.canghe.ai/
- 2. 注册/登录账号
- 3. 获取您的 API Key
- ### 配置 API Key
- 有两种方式配置 API Key:
- **方式一:通过命令行参数传递**
- ```bash
- npm start "复古学院风穿搭" "your-api-key-here"
- ```
- **方式二:通过环境变量设置**
- ```bash
- export CANGHE_API_KEY="your-api-key-here"
- npm start "复古学院风穿搭"
- ```
- ### 使用示例
- 直接输入你想要的主题,例如:
- ```bash
- # 命令行参数方式
- npm start "复古学院风穿搭" "your-api-key-here"
- # 环境变量方式
- export CANGHE_API_KEY="your-api-key-here"
- npm start "秋季护肤指南"
- # 更多示例
- npm start "职场新人必读书单"
- npm start "周末探店推荐"
- ```
- ## 功能特点
- - 自动生成符合小红书风格的封面图片
- - 支持任意主题输入
- - 图片比例为竖版 3:4(适合手机屏幕)
- - 设计清新、精致、年轻化
- - 自动去除水印和logo
- ## API Key 说明
- - API Key 是必需的,没有 API Key 将无法使用
- - 如果 API Key 无效或过期,系统会提示您前往 https://api.canghe.ai/ 获取新的 API Key
- - API Key 通过参数或环境变量传递,安全性更高
- ## 错误处理
- 如果出现以下错误:
- - `缺少 API Key`:请前往 https://api.canghe.ai/ 获取您的 API Key
- - `API Key 无效`:请检查您的 API Key 是否正确,或前往 https://api.canghe.ai/ 获取新的 API Key
- - `API Error`:请检查网络连接或稍后重试
- ## 输出
- 生成的图片会保存到当前目录,文件名格式为:`xiaohongshu-cover-{timestamp}.png`
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.