image-gen
Generate, edit, and face-swap images using fal.ai FLUX, OpenAI gpt-image-1-mini, and face-swap
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate, edit, and face-swap images using fal.ai FLUX, OpenAI gpt-image-1-mini, and face-swap
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Redactar escritos jurídicos mexicanos largos (recursos de apelación, demandas, contestaciones, amparos) a partir de varios documentos de un expediente (demanda, contestación, pericial, confesional, sentencia), entregados como .docx editable. Úsalo cuando el usuario pida "recurso de apelación", "redacta el escrito", "haz la demanda/contestación en Word", o cualquier pieza procesal larga que deba correlacionar agravios/hechos con documentos fuente y jurisprudencia verificada.
Sintetizar o redactar un entregable a partir de varios documentos fuente (o pocos muy grandes) que juntos NO caben en la ventana de contexto — reportes multi-fuente, due diligence, análisis/comparación de contratos, resúmenes de expediente, investigación. Úsalo cuando debas correlacionar información entre múltiples documentos y producir un documento nuevo, y leerlos todos completos reventaría el contexto ("Prompt is too long"). NO es para leer un solo documento corto.
Busca y descarga assets de diseño (iconos, ilustraciones, 3D, animaciones Lottie, imágenes AI) desde IconScout. Dispara cuando el user pida un icono/ilustración/animación para un diseño, mockup, presentación o web, o mencione IconScout. 13.8M+ assets con licencia royalty-free.
Text-to-speech with Spanish voices (Kokoro, local & free) and OpenAI fallback
Transcribe a texto el HABLA de un audio largo o pesado (reuniones, notas de voz reenviadas, grabaciones de 10–60+ min). Trocea con ffmpeg y transcribe cada parte con Whisper, sin toparse con el límite de 25MB de la API. Úsala cuando llegue un [Audio file: ...] y el usuario pida "transcribe", "qué dice", "analiza el audio", o para resumir/analizar una grabación de voz.
Haz una versión nueva/ejecutiva/más limpia de un documento institucional (PDFs tipo "orden del día", agendas, hojas de evento, programas) MINANDO sus assets reales (logos, fotos de ponentes, texto, fuentes) y RECONSTRUYENDO en HTML — nunca re-difundiendo la página como imagen. Úsala ante "haz una nueva versión", "versión ejecutiva", "rehazlo más limpio", "adáptalo" de un PDF.
| name | image-gen |
| description | Generate, edit, and face-swap images using fal.ai FLUX, OpenAI gpt-image-1-mini, and face-swap |
| allowed-tools | Bash(generate-image:*),Bash(generate-flux:*),Bash(generate-preview:*),Bash(face-swap:*),Bash(edit-image:*),Bash(edit-image restyle:*),Bash(edit-image remove-object:*),Bash(train-lora:*),Bash(generate-lora:*) |
You have FIVE image tools. Choose the right one:
| Tool | Model | Cost | When to use |
|---|---|---|---|
generate-image | FLUX.2 [pro] / Kontext | $0.03-0.04 | Default — text-to-image, edit/modify photos, combine elements |
generate-flux | FLUX.2 [pro] | $0.03 | Photorealistic, ultra-quality, image-guided style transfer |
generate-preview | gpt-image-1-mini | $0.005 | Quick drafts, previews, iterations before final version |
generate-preview --hd | gpt-image-1 | $0.04 | High-quality OpenAI image generation/editing |
face-swap | fal.ai | — | Preserve a specific person's face identity |
edit-image | fal.ai | $0.00-0.055 | Background removal, upscaling, segment+paint, inpainting, restyle, object removal |
train-lora | fal.ai | ~$2-3 | Train a LoRA on 15-20 images of a character/style (one-time, ~10 min) |
generate-lora | fal.ai | $0.02 | Generate images using a trained LoRA — consistent character every time |
generate-image (text-to-image)generate-image (editing with Kontext)edit-image segment-paint, NOT generate-image. This tool auto-segments the zone and paints only that area precisely.generate-fluxgenerate-flux with reference imagegenerate-previewgenerate-preview --hdface-swapedit-image bg-removeedit-image remove-objectedit-image restyleedit-image upscalegenerate-preview first, then generate-image for the final# Text to image (FLUX.2 pro)
generate-image "a cat floating in space, photorealistic"
# Edit with one image (Kontext pro)
generate-image "put this person on a tropical beach" /workspace/group/attachments/img-1234.jpg
# Edit with source image
generate-image "change the background to a sunset" /workspace/group/attachments/img-1234.jpg
Find attachment paths from [Image: attachments/img-xxx.jpg] in the conversation.
# Text to image (photorealistic)
generate-flux "an old Mexican grandfather winning an esports tournament, holding a trophy, photorealistic"
# Image-guided generation (uses reference photo for style/composition)
generate-flux "transform this into a cyberpunk scene" /workspace/group/attachments/img-1234.jpg
# Quick cheap preview (mini, $0.005)
generate-preview "a logo for a taco shop, minimalist"
# High-quality with full gpt-image-1 ($0.04)
generate-preview --hd "a car with glossy black paint on the lower bumper"
--hd: fast and cheap ($0.005) — use for drafts and iterations--hd: full gpt-image-1 model ($0.04) — high quality, good for detailed edits and final images--hd when the user needs quality comparable to ChatGPT's image generation# Swap the face from photo 1 onto the person in photo 2
face-swap /workspace/group/attachments/img-FACE.jpg /workspace/group/attachments/img-TARGET.jpg
# Remove background (outputs PNG with transparency)
edit-image bg-remove /workspace/group/attachments/img-1234.jpg
# Upscale image (default 2x)
edit-image upscale /workspace/group/attachments/img-1234.jpg
# Upscale 4x
edit-image upscale /workspace/group/attachments/img-1234.jpg 4
# Segment + paint: auto-mask a zone and paint it a color
edit-image segment-paint /workspace/group/attachments/img-1234.jpg "lower bumper and panels" "paint metallic blue"
# Inpaint with manual mask file
edit-image inpaint /workspace/group/attachments/img-1234.jpg /workspace/group/mask.png "fill with red paint"
segment-paint uses SAM 3 + FLUX Pro Fill — $0.055, auto-segments a zone by description and paints itbg-remove uses BiRefNet — free, outputs transparent PNGupscale uses Clarity Upscaler — $0.04, enhances resolution and detailinpaint uses FLUX Pro Fill — $0.05, inpainting with manual mask filerestyle uses FLUX Dev img2img — $0.025, transforms style preserving composition (strength 0-1, default 0.75)remove-object uses SAM 3 + FLUX Pro Fill — $0.055, auto-segments and removes an object cleanly# Transform style (default strength 0.75)
edit-image restyle /workspace/group/attachments/img-1234.jpg "watercolor painting style"
# Lower strength = more faithful to original (0.5)
edit-image restyle /workspace/group/attachments/img-1234.jpg "anime illustration" 0.5
# Higher strength = more creative transformation (0.9)
edit-image restyle /workspace/group/attachments/img-1234.jpg "cyberpunk neon city" 0.9
# Remove a person/object from a photo (auto-segments + fills background)
edit-image remove-object /workspace/group/attachments/img-1234.jpg "the person on the left"
edit-image remove-object /workspace/group/attachments/img-1234.jpg "the trash can"
All scripts save to /workspace/group/ and print the path. Send the result as a native image:
mcp__nanoclaw__send_message({ text: "Here's your image!", image_path: "/workspace/group/generated-123.jpg" })
generate-image over generate-flux for general requests — they use the same model for text-to-image, but generate-image also handles editinggenerate-image, edit-image segment-paint). NEVER use generate-preview for editing — it generates from scratch and ignores the user's photo entirely. generate-preview is ONLY for creating new images from text.edit-image segment-paint — it auto-segments the zone and paints only that area.# Train a LoRA from reference images (need 15-20, minimum 4)
train-lora "ghosty_plush" /workspace/group/attachments/img-1.jpg /workspace/group/attachments/img-2.jpg ...
# Glob pattern works too
train-lora "ghosty_plush" /workspace/group/attachments/ghosty-*.jpg
/workspace/group/lora-<trigger>.json# Generate using trained LoRA — trigger word MUST appear in prompt
generate-lora "ghosty_plush" "ghosty_plush wearing a santa hat in a snowy Christmas scene"
generate-lora "ghosty_plush" "ghosty_plush as a barista in a cozy coffee shop, photorealistic"
train-lora first)generate-image (Kontext)