ASD

Flux Kontext

Edita imágenes con Flux 1 Kontext Pro de Black Forest Labs en RunComfy, con los patrones de prompting documentados del modelo para lograr resultados más precisos que un prompting ingenuo.

Reemplaza a: Prompting manual sin patrones documentados contra el mismo modelo

Estrellas
32

en todo el repo

Actividad
43

0–100, la ruta de este skill

Actualizado
hace 3 meses

último commit aquí

Commits
0

últimos 90 días

Contexto
2k tok

178 tok en reposo

Paquete
1 archivo

8 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add prime-skills/runcomfy-agent-skills --skill flux-kontext --agent claude-code

Se instala solo en este repositorio.

Este skill makes network requests.

Qué hace

  • Edita imágenes con Flux 1 Kontext Pro mediante `runcomfy run blackforestlabs/flux-1-kontext/pro/edit`
  • Aplica patrones de prompting documentados (instrucción única, preservación primero) para mejorar la salida frente a un prompting ingenuo
  • Descarga el resultado desde `.runcomfy.net`/`.runcomfy.com` al `--output-dir` indicado

Úsalo cuando

  • El usuario pide editar una sola imagen con un cambio local preciso, como "ella ahora sostiene X"
  • Se necesita preservar la identidad, pose o marca del original mientras se aplica un cambio puntual
  • El usuario menciona explícitamente 'flux kontext', 'kontext' o 'BFL kontext'

No lo uses cuando

  • Se requiere editar 1–20 imágenes en lote (usar Nano Banana Edit)
  • Se necesita editar texto multilingüe o incrustado en la imagen (usar GPT Image 2 edit)
  • Se quiere generar una composición nueva sin imagen fuente (usar Flux 2 Klein)

Qué lo activa

Di cualquiera de estas frases y el agente debería cargar este skill.

  • Edita esta foto con Flux Kontext para que sostenga un paraguas naranja y sonría
  • Usa BFL kontext para cambiar el texto de la etiqueta de ALPHA a AURA manteniendo todo lo demás igual
  • Quiero un cambio local preciso en esta imagen con flux kontext, agrega un bolso de cuero en el hombro derecho

SKILL.md

En inglés

Flux Kontext Pro — Pro Pack on RunComfy

runcomfy.com · Model page · GitHub

Black Forest Labs' Flux 1 Kontext Pro — single-reference precise local image edit — hosted on the RunComfy Model API. Strong prompt control, consistent outputs, high fidelity.

npx skills add agentspace-so/runcomfy-skills --skill flux-kontext -g

When to pick this model (vs siblings)

You want Use
Single-image precise local edit ("she's now holding X") Flux Kontext
High-fidelity preservation of source identity Flux Kontext
Batch edits across 1–20 images Nano Banana Edit
Edit multilingual / embedded text in image GPT Image 2 edit
Generate from scratch, no source image Flux 2 Klein

If the user said "Flux Kontext" / "kontext" / "BFL Kontext" explicitly, route here regardless.

Prerequisites

  1. RunComfy CLInpm i -g @runcomfy/cli
  2. RunComfy accountruncomfy login opens a browser device-code flow.
  3. CI / containers — set RUNCOMFY_TOKEN=<token> instead of runcomfy login.

Endpoints + input schema

blackforestlabs/flux-1-kontext/pro/edit

Field Type Required Default Notes
prompt string yes Single declarative edit instruction.
image string yes Single source image URL (publicly fetchable HTTPS).
aspect_ratio enum no (input) Pick from supported W:H options on the model page.
seed int no Reuse for variant comparisons.

The schema is intentionally minimal — Kontext leans on prompt + single ref. For multi-image or web-grounded edits, route to Nano Banana Edit.

How to invoke

Default — local edit, preserve everything else:

runcomfy run blackforestlabs/flux-1-kontext/pro/edit \
  --input '{
    "prompt": "Keep the person'\''s face, pose, and clothing unchanged. Add an orange umbrella in her left hand and a slight smile.",
    "image": "https://.../portrait.jpg"
  }' \
  --output-dir <absolute/path>

With seed for reproducible variant series:

runcomfy run blackforestlabs/flux-1-kontext/pro/edit \
  --input '{
    "prompt": "Keep the bottle, label, and lighting unchanged. Replace the brand text on the label from \"ALPHA\" to \"AURA\".",
    "image": "https://.../bottle.jpg",
    "seed": 42
  }' \
  --output-dir <absolute/path>

Prompting — what actually works

One declarative instruction. Kontext shines on prompts shaped like the docs example: "She is now holding an orange umbrella and smiling". Imperative mood, single change.

Preservation first. Lead with "Keep [identity / pose / framing / brand] unchanged." Then the change. Models honor what's stated up front.

Single ref only — pick the right one. No multi-image fanout here. If you have multiple references, decide which is primary and pass that one. For multi-image flows, route to Nano Banana Edit.

Iterate on small changes. If Kontext drifts, split a compound edit into sequential single-instruction passes (pass 1: change background, pass 2: change clothing).

Aspect ratio — pick from the supported enum. Out-of-list values 422 or crop.

Anti-patterns:

  • Compound prompts ("change A and add B and remove C") → drift.
  • Trying to fan out to multiple source images → wrong model (use Nano Banana Edit).
  • Prompts written in passive voice → less reliable.
  • Asking for novel composition without a source image → wrong model (use Flux 2 Klein t2i).

Where it shines

Use case Why Flux Kontext
Single-shot precise local edit Specifically designed for this; high fidelity
Preserve source identity through targeted change Strong preservation under explicit instruction
Brand-asset text or color swap Quoted text + preservation lead-in works well
Quick iteration on one image Short prompts + single ref = fast result loop

Sample prompts (verified to produce strong results)

Page example:

She is now holding an orange umbrella and smiling

Preservation-led brand edit:

Keep the bottle silhouette, table, and lighting exactly as in the input.
Replace only the brand text on the label, from "ALPHA" to "AURA".
Same font weight, white on black, centered.

Compositional micro-edit:

Keep the person's face, pose, and clothing unchanged. Add a leather
shoulder bag, dark brown, hanging on the right shoulder.

Limitations

  • Single source image only. For multi-image flows, use Nano Banana Edit (1–20).
  • Public RunComfy docs are minimal — schema fields beyond prompt + image + aspect_ratio + seed may exist; check the model page for the latest field list.
  • Compound prompts drift — split into sequential passes.
  • For multilingual / embedded text editing, GPT Image 2 edit usually wins.

Exit codes

code meaning
0 success
64 bad CLI args
65 bad input JSON / schema mismatch
69 upstream 5xx
75 retryable: timeout / 429
77 not signed in or token rejected

Full reference: docs.runcomfy.com/cli/troubleshooting.

How it works

The skill invokes runcomfy run blackforestlabs/flux-1-kontext/pro/edit with a JSON body matching the schema. The CLI POSTs to https://model-api.runcomfy.net/v1/models/blackforestlabs/flux-1-kontext/pro/edit, polls the request, fetches the result, and downloads any .runcomfy.net/.runcomfy.com URL into --output-dir. Ctrl-C cancels the remote request before exit.

Security & Privacy

  • Token storage: runcomfy login writes the API token to ~/.config/runcomfy/token.json with mode 0600 (owner-only read/write). Set RUNCOMFY_TOKEN env var to bypass the file entirely in CI / containers.
  • Input boundary: the user prompt is passed as a JSON string to the CLI via --input. The CLI does NOT shell-expand the prompt; it transmits the JSON body directly to the Model API over HTTPS. No shell injection surface from prompt content.
  • Third-party content: image / mask / video URLs you pass are fetched by the RunComfy model server, not by the CLI on your machine. Treat external URLs as untrusted; image-based prompt injection is a known risk for any image-edit / video-edit model.
  • Outbound endpoints: only model-api.runcomfy.net (request submission) and *.runcomfy.net / *.runcomfy.com (download whitelist for generated outputs). No telemetry, no callbacks.
  • Generated-file size cap: the CLI aborts any single download > 2 GiB to prevent disk-fill from a malicious or runaway model output.

Reproducido de prime-skills/runcomfy-agent-skills bajo licencia MIT. Leer esta página en markdown.

Archivos

1 archivo en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

Antes de instalar

Requiere el RunComfy CLI (`npm i -g @runcomfy/cli`) y una cuenta autenticada vía `runcomfy login` o `RUNCOMFY_TOKEN` en CI/contenedores.

Necesita en el PATH:npx

Detalles

Categoría
Diseño y UI
Licencia
MIT
Recursos incluidos
Solo SKILL.md
Código fuente
Ver SKILL.md

Más de prime-skills/runcomfy-agent-skills

Este repo incluye 30 skills. Si instalas uno, normalmente ya tienes los demás.

Genera música con IA en RunComfy mediante la CLI `runcomfy`, enrutando entre ElevenLabs AI Music Generation (voz premium 44.1 kHz) y ACE Step / ACE Step 1.5 (código abierto, mucho más barato), más inpaint y outpaint de audio.

Costo de contexto al activarse
3.7k tok
Tamaño del paquete
1 archivo
Última actualización
hace 3 meses
automatizacion

Genera, inpaint y outpaint música con ACE Step de StepFun-AI en RunComfy vía la CLI `runcomfy`: composición por tags, letras multilingües, hasta 4 min, desde $0.0002/s.

Costo de contexto al activarse
4.1k tok
Tamaño del paquete
1 archivo
Última actualización
hace 3 meses
automatizacion

Genera videos con IA en RunComfy vía el CLI `runcomfy`: un enrutador inteligente sobre todo el catálogo de modelos de video (HappyHorse, Wan 2-7, Seedance, Kling, Veo 3-1, Hailuo, Dreamina) para text-to-video, image-to-video y extend-video.

Costo de contexto al activarse
6.2k tok
Tamaño del paquete
1 archivo
Última actualización
hace 3 meses
diseno ui

Generación condicionada por pose en RunComfy vía la CLI `runcomfy`: enruta entre Kling Motion Control, Wan 2-2 Animate y Z-Image Turbo ControlNet LoRA según video/imagen y estilo.

Costo de contexto al activarse
2.7k tok
Tamaño del paquete
1 archivo
Última actualización
hace 3 meses
diseno ui

Edición de regiones en fotogramas de video vía la CLI `runcomfy`: elimina objetos recurrentes, limpia cables o marcas de agua, o reemplaza regiones con movimiento coherente, enrutando entre Wan 2-7, Lucy Edit Restyle y Seedream 4-0.

Costo de contexto al activarse
2.5k tok
Tamaño del paquete
1 archivo
Última actualización
hace 3 meses
diseno ui

Genera y edita imágenes en RunComfy vía la CLI `runcomfy`: un router inteligente entre todo el catálogo de modelos de imagen (FLUX 2, Nano Banana, GPT Image 2, Seedream, Qwen, Wan) para t2i e i2i.

Costo de contexto al activarse
7.4k tok
Tamaño del paquete
1 archivo
Última actualización
hace 3 meses
diseno ui

Skills relacionados

Shadcn

121k

Gestiona componentes y proyectos shadcn: añadir, buscar, corregir, depurar, estilizar y componer UI, incluyendo interfaces de chat, con contexto del proyecto y documentación.

Costo de contexto al activarse
4.9k tok
Tamaño del paquete
15 archivos
Última actualización
hace 22 días
diseno ui

Diseña banners para redes sociales, anuncios, heroes de sitios web, assets creativos e impresión, con múltiples opciones de dirección de arte y visuales generados por IA.

Costo de contexto al activarse
2.1k tok
Tamaño del paquete
2 archivos
Última actualización
el mes pasado
diseno ui

Slides

116k

Crea presentaciones HTML estratégicas con Chart.js, tokens de diseño, layouts responsivos, fórmulas de copywriting y estrategias de diapositivas contextuales.

Costo de contexto al activarse
284 tok
Tamaño del paquete
6 archivos
Última actualización
el mes pasado
diseno ui