forked from farhoodlabs/skills
8efb331334
- Remove `playwright-ephemeral/` and `shannon/` entirely per board direction - Fix `minimax-image-generation/SKILL.md` so YAML frontmatter is at line 1 - Add `minimax-image-generation/scripts/generate.sh` (argparse, error-checked, executable) and document invoking it via `bash scripts/generate.sh ...` - Deduplicate `minimax-image-generation/CLAUDE.md` against SKILL.md - `github-app-token`: write token to `$GH_CONFIG_DIR/.gh-token` (preferred) or `$AGENT_HOME/.gh-token` (fallback), fail loudly if neither is set instead of leaking to `mktemp` - Refresh root `CLAUDE.md` to match actual directory contents and patterns - Add root `README.md` with human-facing skills index Co-Authored-By: Paperclip <noreply@paperclip.ing>
2.8 KiB
2.8 KiB
name, version, description, argument-hint, allowed-tools, user-invocable, metadata
| name | version | description | argument-hint | allowed-tools | user-invocable | metadata | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| minimax-image-generation | 1.0.0 | Generate images from MiniMax's image-01 model. Triggered by phrases like 'generate image', 'create picture', 'minimax image', 'text to image'. | "a sunset over the ocean, cinematic" [--aspect-ratio=16:9] | Bash, Read, Write | true |
|
MiniMax Image Generation
Generate images using MiniMax's
image-01model via the/v1/image_generationAPI.
Quick Start
export MINIMAX_API_KEY="your-minimax-api-key"
bash minimax-image-generation/scripts/generate.sh "a cat wearing a spacesuit, cinematic photography"
Always invoke the script via bash scripts/generate.sh … (or bash minimax-image-generation/scripts/generate.sh … when running from the repo root). Do not rely on the executable bit — invoking through bash is the supported entry point, and works even when the file permissions were not preserved during deployment.
Parse User Intent
Extract from the user's input:
- PROMPT: The image description (required, positional argument)
- ASPECT_RATIO:
16:9(default),1:1,9:16,4:3,3:4— via--aspect-ratio=<ratio> - COUNT: number of images to generate (default
1) — via--count=<N> - OUTPUT_PREFIX: filename stem (default
output) — via--output=<stem>
Script Usage
bash minimax-image-generation/scripts/generate.sh \
"a sunset over the ocean, cinematic" \
--aspect-ratio=16:9 \
--count=1 \
--output=sunset
The script writes <output>-0.jpeg, <output>-1.jpeg, … to the current working directory. On failure it exits non-zero with a descriptive error.
Aspect Ratio Guide
| Ratio | Use Case |
|---|---|
16:9 |
Widescreen (default) — desktop wallpaper, banners |
1:1 |
Square — social media posts, profile images |
9:16 |
Portrait — mobile wallpapers, stories |
4:3 |
Standard — presentations, blog images |
3:4 |
Portrait standard — posters, portraits |
Environment Variables
| Variable | Required | Description |
|---|---|---|
MINIMAX_API_KEY |
Yes | Your MiniMax API key |
MINIMAX_API_BASE_URL |
No | API base URL (default: https://api.minimax.io) |
Example Output
🎨 MiniMax Image Generation
├─ Prompt: "a cat wearing a spacesuit, cinematic photography"
├─ Aspect ratio: 16:9
└─ Model: image-01
Saved: output-0.jpeg
Done.