hive.image-generation
O que ela faz
Esta skill permite que uma IA crie imagens novas a partir de uma descrição escrita e edite imagens existentes. É para quem precisa de logotipos, banners, pôsteres ou ilustrações rapidamente.
Quando usar
- ✓Quando você quer uma imagem nova, como um logotipo, um banner ou uma ilustração.
- ✓Quando você quer redesenhar ou combinar fotos existentes em uma imagem nova.
- ✓Quando você precisa de texto renderizado dentro de uma imagem, como o título de um pôster.
Link da skill
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/image-generation/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Preciso de um banner em estilo chapado para a promoção de primavera da minha padaria, com as palavras Promoção de Primavera em negrito.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA envia o seu prompt escrito e quaisquer imagens de referência para um serviço de imagens. A imagem é salva em um arquivo e o custo é cobrado dos seus créditos de uso, como qualquer pedido de texto à IA.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Image generation
image_generate turns a text prompt into an image (and can edit existing
images). It routes through the Hive image service to OpenAI's gpt-image-2;
the cost is billed to the user's Hive credits exactly like an LLM call, so there
is no API key to configure. Each generated image is also saved to disk.
The call
image_generate(
prompt: str, # required — what to draw
reference_images: list[str] = None,# local paths or http(s) URLs to edit/condition on
size: str = "1024x1024", # 1024x1024 | 1536x1024 (landscape) | 1024x1536 (portrait) | auto
quality: str = "low", # low only (medium & high disabled)
n: int = 1, # 1–4; each image is billed separately
output_format: str = "png", # png | jpeg | webp
model: str = "gpt-image-2",
)
Defaults are deliberately cheap and fast. quality is locked to low —
medium and high are disabled for cost control, and any request for a higher
tier is automatically forced to low. Only raise n when the user explicitly
wants variations.
Writing the prompt
Be concrete: name the subject, style (photo, flat vector, 3D, watercolor…),
composition/framing, color palette, mood, and any text to render (gpt-image-2
renders text well — quote it exactly, e.g. the words "Launch Day" in bold).
Reference-image editing
Pass reference_images to edit, restyle, or compose from existing images —
restyle a product photo, place a logo on a mockup, keep a character's identity
across images, or merge elements. Provide up to 10 local file paths or http(s)
URLs; the model conditions on them at high fidelity. Example:
image_generate(prompt="Put this product on a marble kitchen counter, soft morning light",
reference_images=["data/uploads/bottle.png"])
A good source of reference images is something the user attached (read it from
the path in their message) or an image you generated earlier (use its saved
path).
How it runs — start, then collect (it's asynchronous)
Image generation can take a couple of minutes, so image_generate runs in the
background: it returns immediately with {"status":"started","handle":"bg_…"}.
You then poll the generic collect_result tool with that handle until the
image is ready:
start = image_generate(prompt="A minimalist bee logo, flat vector, amber on white")
# start.handle == "bg_1"
res = collect_result(handle="bg_1", wait_seconds=30)
# → {"status":"pending", ...} ← not done yet; call collect_result again
# → eventually the real result: {"images":[{"path": …}], "usage": …, …}
collect_result waits up to wait_seconds (≤45) per call and returns
{"status":"pending"} until generation finishes — just call it again with the
same handle until you get the real result. It's fine to do other small things
between polls. Don't start a second image while one is pending unless the user
asked for several.
Show the user
The finished result's JSON has images (each with a path) plus model, n,
and usage; one image is previewed inline. Call attach_file(path) on the
image path to surface a downloadable chip in chat. Do not paste base64 or
write  markdown.
Failure modes
Errors surface in the collect_result result as {"error": ...} (the tool
never raises). Handle these:
- Out of credits / subscription inactive (
status: 402) — tell the user they're out of Hive credits; do not retry. - Model unavailable / org verification (
status: 403) — report that image generation is currently unavailable; do not loop. - Request rejected / moderated (
status: 400) — the prompt was likely refused; rephrase it (less explicit, no real-person likeness) and try once. - Rate limited (
status: 429) — wait a moment and retry once. - Still
pendingafter several minutes — collect_result keeps returning pending well past ~4 min: the job likely failed. Tell the user and start once more. ({"error":"Unknown … handle"}means it was already collected or never started — just start a fresh image_generate.)
End-to-end example
User: "make us a logo — a friendly robot, simple and modern."
image_generate(prompt="A friendly modern robot mascot logo, simple flat vector, rounded shapes, teal and white, centered, plain background", quality="low")→{"status":"started","handle":"bg_1"}- `collect_result(handle="bg_1", wait
Perguntas frequentes
Preciso de uma chave própria do serviço de imagens?
Não. O serviço já está configurado para você, e o custo é cobrado dos seus créditos de uso.
Posso usar as minhas próprias fotos?
Sim. Você pode passar imagens de referência, como arquivos locais ou links da web, para editar ou basear a nova imagem nelas.
Por que a qualidade é sempre baixa?
As opções de qualidade mais alta estão desligadas para controlar o custo, então toda imagem usa a configuração baixa.
Detalhes
Descrição original do autor
Required before calling image_generate. Create and edit images from a prompt — generate an image, make a picture / logo / illustration / icon / banner / poster / thumbnail / hero image / mockup / product shot / social graphic, or edit / restyle / combine existing images from reference images. Uses OpenAI gpt-image-2 through the Hive image service, billed to the user's Hive credits like an LLM call (no API key needed). Teaches the exact call shape, the quality/cost tradeoff (quality="low" is the default and cheapest), reference-image editing, how to show the result to the user with attach_file,
repo: aden-hive/hive
Popularidade
- Estrelas no GitHub
- 11 mil
- Posição no ranking
- #11802
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
browser-edge-cases
11 milAjuda seu agente a corrigir automações de navegador que falham em sites complicados, como LinkedIn, X ou páginas com muitos scripts.
hive.browser-automation
11 milEnsina seu agente a controlar o seu próprio Chrome com a ferramenta hive-browser, usando capturas de tela e cliques.
hive.colony-progress-tracker
11 milAjuda seu agente a reivindicar tarefas e registrar seus passos e verificações em um banco de dados compartilhado, para que o trabalho seja acompanhado enquanto avança.
hive.context-preservation
11 milAjuda seu agente a salvar fatos importantes de resultados longos de ferramentas em anotações, antes que detalhes antigos sejam removidos da sua memória.
Skills parecidas
gifgrep
394 milPermite que seu agente pesquise bibliotecas de GIFs, visualize resultados, baixe um GIF e extraia um quadro fixo ou uma folha de quadros.
meme-maker
394 milPermite que seu agente escolha um modelo de meme, adicione suas próprias legendas e crie o meme como imagem SVG ou PNG.
ios-icon-gen
280 milFaz seu agente gerar ícones para aplicativos iOS. Ele usa símbolos da Apple ou ícones de outras fontes para criar os arquivos corretos.