一键导入
image-generator
调用大模型API生成图片的自动化工具。当用户需要生成AI图片、为内容创建配图、或需要自动化图片生成流程时使用此skill。支持从环境变量获取大模型配置,使用nano-banana-pro-prompts-recommend-skill优化提示词,支持多种图片格式和尺寸配置。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
调用大模型API生成图片的自动化工具。当用户需要生成AI图片、为内容创建配图、或需要自动化图片生成流程时使用此skill。支持从环境变量获取大模型配置,使用nano-banana-pro-prompts-recommend-skill优化提示词,支持多种图片格式和尺寸配置。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
将 Mermaid 图表代码转换为图片(PNG/SVG)。当用户需要把 Mermaid 代码、流程图、时序图、甘特图等渲染成图片文件时使用此 skill。支持:(1) 从 .mmd 文件或代码字符串输入 (2) 输出 PNG 或 SVG 格式 (3) 支持 default/dark/forest/neutral/base 主题 (4) 自定义宽高、背景色、缩放比例。依赖 Node.js + @mermaid-js/mermaid-cli (mmdc)。
中文写作去 AI 味:将 AI 生成的、带有明显机器痕迹的中文文本转化为自然、流畅、有人情味的表达方式,使其读起来更像真人写作。适用于去除 "首先、其次、综上所述" 等典型 AI 痕迹,优化句式结构,增加口语感和个人特色,让内容更有温度和真实感。
Calculate the duration of audio files (MP3, WAV, M4A, etc.) in seconds, frames, or formatted time. Use when you need to determine audio file length for video editing, subtitle timing, or frame calculation in video projects (especially Remotion videos). Supports conversion to frames at specified FPS rates.
自动化Remotion视频生成工作流。当用户需要创建技术教学视频时使用此skill。支持从文案输入到视频构建的完整流程:(1)文案优化与标题生成(含抖音短视频标题和文案)(1.5)抖音文案写入文档 (1.8)场景视觉规范设计(电影级构图+Remotion最佳实践)(2)场景文件与字幕生成 (3)音频文件生成 (4)帧数计算与Root.tsx更新 (5)视频构建验证 (6)封面图生成(16:9和9:16两种比例)。适用于AI教学、技术讲解类视频制作。输出包含适配抖音平台的短视频标题和文案,以及两种比例的封面图。
Assists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on each section. Transforms your writing process from solo effort to collaborative partnership. When writing content that needs visual elements, automatically detects image requirements and calls the image-generator skill to create appropriate illustrations.
Recommend suitable prompts from 10,000+ Nano Banana Pro image generation prompts based on user needs. Optimized for Nano Banana Pro (Gemini), but prompts also work with Nano Banana 2, Seedream 5.0, GPT Image 1.5, Midjourney, DALL-E, Flux, Stable Diffusion, and any text-to-image AI model. Use this skill when users want to: - Generate images with AI (any model — Nano Banana Pro, Gemini, GPT Image, Seedream, etc.) - Find proven AI image generation prompts and prompt templates - Get prompt recommendations for specific use cases (portraits, products, social media, posters, etc.) - Create illustrations for articles, videos, podcasts, or marketing content - Browse a curated prompt library with sample images - Translate and understand prompt techniques Also available: "ai-image-prompts" skill — a model-agnostic version of this library for universal image generation.
| name | image-generator |
| description | 调用大模型API生成图片的自动化工具。当用户需要生成AI图片、为内容创建配图、或需要自动化图片生成流程时使用此skill。支持从环境变量获取大模型配置,使用nano-banana-pro-prompts-recommend-skill优化提示词,支持多种图片格式和尺寸配置。 |
必须在执行任何命令前,先激活 conda 环境:
conda activate qwen3-tts
禁止直接在 shell 中拼接 --prompt 参数执行脚本,因为 prompt 内容中可能含有单引号、双引号等特殊字符,会导致 bash 解析出现 quote> 错误。
必须使用 python3 -c 内联脚本方式,通过 subprocess.run 列表传参,完全绕过 shell 引号解析:
conda activate qwen3-tts && python3 -c "
import subprocess
import sys
prompt = '''在这里写提示词,可以包含任意单引号和特殊字符'''
result = subprocess.run(
[sys.executable, '/path/to/generate_image.py',
'--prompt', prompt,
'--size', '1K',
'--aspect-ratio', '16:9',
'--output', '/path/to/output.png',
'--format', 'png'],
capture_output=True, text=True
)
print(result.stdout)
print(result.stderr)
"
💡 原因:
python3 -c内联脚本中使用三引号'''包裹 prompt,subprocess.run以列表方式传参,参数内容原样传递,不经过 shell 解析,彻底避免引号冲突问题。
支持两种配置方式:
设置环境变量以配置大模型 API:
export LLM_BASE_URL="http://dev.fit-ai.woa.com/api/llmproxy"
export LLM_MODEL="gemini-3-pro-image"
export LLM_API_KEY="your-api-key"
创建 generate_image.json 文件,包含大模型配置:
{
"LLM_BASE_URL": "http://dev.fit-ai.woa.com/api/llmproxy",
"LLM_MODEL": "gemini-3-pro-image",
"LLM_API_KEY": "your-api-key"
}
脚本会优先使用 JSON 配置文件,如果文件不存在则回退到环境变量。
生成图片(使用规范的执行方式):
conda activate qwen3-tts && python3 -c "
import subprocess
import sys
prompt = '''一只可爱的橘猫在花园里晒太阳'''
result = subprocess.run(
[sys.executable, '/path/to/generate_image.py',
'--prompt', prompt,
'--size', '1K',
'--aspect-ratio', '16:9',
'--output', './output.png',
'--format', 'png'],
capture_output=True, text=True
)
print(result.stdout)
print(result.stderr)
"
scripts/generate_image.py 支持以下参数:
--prompt: 图片生成提示词(必填)--size: 图片尺寸(1K、2K 等),默认"1K"--aspect-ratio: 宽高比(1:1、16:9、9:16 等),默认"1:1"--output: 输出文件路径,默认"./generated_image.png"--format: 图片格式(png、jpg、jpeg),默认"png"支持两种配置方式,优先级:JSON 文件 > 环境变量
创建 scripts/generate_image.json 文件:
{
"LLM_BASE_URL": "http://dev.fit-ai.woa.com/api/llmproxy",
"LLM_MODEL": "gemini-3-pro-image",
"LLM_API_KEY": "your-api-key"
}
文件位置:scripts/generate_image.json(与 generate_image.py 同级目录)
配置字段:
设置环境变量:
export LLM_BASE_URL="http://dev.fit-ai.woa.com/api/llmproxy"
export LLM_MODEL="gemini-3-pro-image"
export LLM_API_KEY="your-api-key"
优先级:脚本优先使用 JSON 配置文件,如果文件不存在或配置不完整,则回退到环境变量。
自动使用 nano-banana-pro-prompts-recommend-skill 优化提示词,提高图片质量。
为博客文章、技术文档、社交媒体内容生成配图。
快速生成 UI 界面、产品概念图、设计稿。
生成活动海报、宣传图片、广告素材。
scripts/example_generate_image.py 提供完整的示例代码,可直接运行测试图片生成功能。
将 generate_image.json 文件放置在 scripts/ 目录下,与 generate_image.py 脚本同级:
scripts/
├── generate_image.py
├── generate_image.json # 配置文件
├── example_generate_image.py
└── ...
scripts/generate_image.json 文件示例:
{
"LLM_BASE_URL": "http://dev.fit-ai.woa.com/api/llmproxy",
"LLM_MODEL": "gemini-3-pro-image",
"LLM_API_KEY": "your-api-key"
}
.gitignore,避免敏感信息提交到代码仓库generate_image.dev.json、generate_image.prod.jsonscripts/generate_image.json)LLM_BASE_URL、LLM_MODEL、LLM_API_KEY)This skill includes example resource directories that demonstrate how to organize different types of bundled resources:
Executable code (Python/Bash/etc.) that can be run directly to perform specific operations.
Examples from other skills:
fill_fillable_fields.py, extract_form_field_info.py - utilities for PDF manipulationdocument.py, utilities.py - Python modules for document processingAppropriate for: Python scripts, shell scripts, or any executable code that performs automation, data processing, or specific operations.
Note: Scripts may be executed without loading into context, but can still be read by Claude for patching or environment adjustments.
Documentation and reference material intended to be loaded into context to inform Claude's process and thinking.
Examples from other skills:
communication.md, context_building.md - detailed workflow guidesAppropriate for: In-depth documentation, API references, database schemas, comprehensive guides, or any detailed information that Claude should reference while working.
Files not intended to be loaded into context, but rather used within the output Claude produces.
Examples from other skills:
Appropriate for: Templates, boilerplate code, document templates, images, icons, fonts, or any files meant to be copied or used in the final output.
Any unneeded directories can be deleted. Not every skill requires all three types of resources.