plugin/skills/setup/SKILL.md
Configure MeiGen plugin provider and API keys. Use this when the user runs /meigen:setup, asks to "configure meigen", "set up image generation", "add API key", or needs help configuring the plugin.
npx skillsauth add jau123/meigen-ai-design-mcp setupInstall 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.
You are guiding the user through configuring the MeiGen plugin for image generation. Follow this flow step by step.
First, check if a config file already exists:
cat ~/.config/meigen/config.json 2>/dev/null
Also check for existing ComfyUI workflows:
ls ~/.config/meigen/workflows/*.json 2>/dev/null
If config exists, show the current configuration (mask API keys: show first 10 chars + "...") and any saved workflows. Ask if they want to reconfigure.
If no config exists, present this introduction:
MeiGen Plugin Configuration
This is optional. Without configuration, you can still use free features:
- Search gallery for inspiration and prompts
- Enhance simple ideas into professional prompts
- Browse available AI models
Configuring a provider unlocks image generation.
Then proceed to Step 2.
Present these options to the user:
/v1/images/generations endpoint/meigen:setup anytime later to enable image generationIf user chooses Skip, say goodbye and exit. Otherwise continue to the appropriate Step 3.
Ask the user:
Do you already have a MeiGen API token, or do you need to create one?
Provide these instructions:
meigen_sk_)Then ask them to paste the token.
Ask them to paste their meigen_sk_... token.
meigen_sk_If valid, proceed to Step 4 with this config:
{
"meigenApiToken": "<the token>"
}
Ask the user for their ComfyUI server URL:
What is your ComfyUI server URL? (default:
http://localhost:8188)
Test the connection:
curl -s <URL>/system_stats | head -c 200
Cannot connect to ComfyUI at
<URL>. Please make sure:
- ComfyUI is running (start it with
python main.pyor your launcher)- The URL and port are correct
- No firewall is blocking the connection
Explain the workflow export process to the user:
To use ComfyUI with this plugin, you need to export a workflow in API format:
- Open ComfyUI in your browser (usually
http://localhost:8188)- Load or create your preferred workflow
- Click ⚙️ Settings → enable "Enable Dev mode options"
- Click the "Save (API Format)" button that appears
- Save the downloaded
.jsonfile somewhere convenient
Then ask them to provide the file path:
Please provide the path to your exported workflow JSON file: Example:
~/Downloads/workflow_api.json
Use the comfyui_workflow tool with action import to import the workflow:
comfyui_workflow import with filePath and nameIf the import succeeds, ask if they want to import additional workflows. If yes, repeat this step.
Build the config JSON:
{
"comfyuiUrl": "<the URL, omit if http://localhost:8188>",
"comfyuiDefaultWorkflow": "<the first imported workflow name>"
}
Proceed to Step 4 to save. The workflow files are already saved by the import step.
Collect the following information. Present common presets first for convenience:
| Service | Base URL | Default Model |
|---------|----------|---------------|
| OpenAI | https://api.openai.com (default) | gpt-image-2 |
| Together AI | https://api.together.xyz/v1 | (check their docs) |
| Fireworks AI | https://api.fireworks.ai/inference/v1 | (check their docs) |
Ask the user to either pick a preset or provide custom values.
API Key (required): Their API key for the service
sk-... for OpenAIBase URL (optional): API endpoint URL
https://api.openai.comModel Name (optional): Which model to use
gpt-image-2After collecting the info, suggest testing with curl:
curl -s <BASE_URL>/v1/models \
-H "Authorization: Bearer <API_KEY>" | head -c 500
This helps catch invalid keys or wrong URLs before saving.
Proceed to Step 4 with config from the collected fields (see bottom of this section for format).
Only include fields that differ from defaults. Omit openaiBaseUrl if it's https://api.openai.com, omit openaiModel if it's gpt-image-2.
Ask the user to paste their curl command. Common formats they might paste:
Format 1: Image generation endpoint
curl https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer sk-xxx" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-image-2", "prompt": "a cat", "n": 1, "size": "1024x1024"}'
Format 2: Simple model list test
curl https://api.together.xyz/v1/models \
-H "Authorization: Bearer xxx"
Format 3: With -u flag or other auth styles
curl -u :sk-xxx https://api.fireworks.ai/inference/v1/images/generations \
-d '{"model": "accounts/fireworks/models/flux", "prompt": "a cat"}'
Base URL: The URL hostname + base path (strip /v1/images/generations, /v1/models, etc.)
https://api.openai.com/v1/images/generations → https://api.openai.comhttps://api.together.xyz/v1/models → https://api.together.xyz/v1/v1/..., keep the /v1 part only if it's NOT api.openai.comAPI Key: From Authorization: Bearer <key> header, or -u :<key> flag, or --header variants
Model: From the JSON request body "model": "<value>" if present
I extracted the following from your curl command:
- API Key:
sk-xxx...(first 10 chars)- Base URL:
https://api.together.xyz/v1- Model:
black-forest-labs/FLUX.1-schnellDoes this look correct?
If user confirms, proceed to Step 4. If not, let them correct individual fields.
Build the config JSON based on the chosen provider:
For MeiGen:
{
"meigenApiToken": "<the token>"
}
For ComfyUI:
{
"comfyuiUrl": "<url, omit if default>",
"comfyuiDefaultWorkflow": "<workflow name>"
}
For OpenAI-compatible (manual or curl import):
{
"openaiApiKey": "<the key>",
"openaiBaseUrl": "<base url, omit if default>",
"openaiModel": "<model, omit if default>"
}
Create the config directory and write the file:
mkdir -p ~/.config/meigen
Then use the Write tool to write the JSON config to ~/.config/meigen/config.json.
Important: If the user already has a config file with other providers configured, merge the new config into the existing one rather than overwriting. For example, a user might have both MeiGen and ComfyUI configured.
After writing, set permissions:
chmod 600 ~/.config/meigen/config.json
Tell the user:
Configuration saved! To activate the new settings, please start a new Claude Code session (close and reopen, or open a new terminal tab).
After restarting, you can:
- Use
generate_imageto create AI images- Run
list_modelsto see available models and workflows- Try: "Generate a beautiful sunset over mountains"
You can run
/meigen:setupagain anytime to change your configuration.
For ComfyUI users, additionally mention:
ComfyUI tips:
- Use
comfyui_workflow listto see your saved workflows- Use
comfyui_workflow viewto see adjustable parameters (steps, CFG, sampler, etc.)- Ask me to change any workflow parameter — e.g., "increase steps to 30" or "switch sampler to dpmpp_2m"
- You can import more workflows anytime with
comfyui_workflow import
development
Vertical-format thumbnail and poster workflow for short-video platforms and social feeds. Use when the user asks for a "video thumbnail", "短视频封面", "竖版海报", "TikTok cover", "Reels cover", "YouTube Shorts thumbnail", "social media poster" — anything optimized for 9:16 mobile feed scrolling with prominent headline space. Produces high-contrast, headline-friendly cover art in 9:16 by default. NOT for: full posters meant for print, photorealistic portraits without text overlay intent, horizontal banners — use other skills.
development
Multi-angle product imagery workflow. Use when the user wants to "shoot a product", "make e-commerce product images", "product photography set", "电商产品图", "产品多角度图", "brand product visuals", or provides a single product photo and asks for marketing-ready variations. Produces 4 distinct directions (lifestyle scene, macro detail, scale/context, marketing layout) from one reference image. NOT for: portraits, generic illustration, logo design, video creation — use other skills or generate_image directly.
development
This skill should be used when the user asks to "generate an image", "create artwork", "design a logo", "make a poster", "draw something", "find inspiration", "search for reference images", "enhance my prompt", "improve prompt", "brand design", "product mockup", "batch generate images", "multiple variations", "generate a video", "make a video", "animate this photo", "image-to-video", or discusses AI image/video generation, visual creativity, prompt engineering, reference images, style transfer. Also activate when user mentions MeiGen, image models, aspect ratios, or art styles. NOT for: generic chat/text tasks, code generation, document writing, video editing of existing footage, audio/TTS, real-photo retouching of user files outside the generation flow, or any task unrelated to AI image/video creation.
data-ai
--- name: "AI Image Generator & Editor — GPT Image 2, Nanobanana, ComfyUI" description: Generate images and videos from text with multi-provider routing — supports GPT Image 2.0 (near-perfect text rendering), Nanobanana 2, Seedream 5.0, Midjourney V8.1 (unified photorealistic + anime), Flux 2 Klein (cheap drafts), Seedance 2.0 / Happyhorse 1.0 / Veo 3.1 video, and local ComfyUI workflows. Includes 1,446 curated prompts and style-aware prompt enhancement. Use when users want to create images/vide