hive.image-generation
하는 일
이 스킬은 AI가 글 설명으로 새 그림을 만들고 기존 이미지를 편집하도록 합니다. 로고, 배너, 포스터, 일러스트를 빠르게 만들어야 하는 사람들을 위한 것입니다.
사용하는 경우
- ✓로고, 배너, 일러스트처럼 새 그림이 필요할 때.
- ✓기존 사진을 새 스타일로 바꾸거나 여러 장을 합쳐 새 이미지를 만들고 싶을 때.
- ✓포스터 제목처럼 이미지 안에 글자를 넣어야 하는 경우.
스킬 링크
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/image-generation/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제빵집 봄 세일용 플랫 스타일 배너가 필요합니다. 「Spring Sale」이라는 글자를 굵게 넣어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 입력하신 프롬프트와 참고 이미지를 이미지 서비스에 보냅니다. 이미지는 파일로 저장되며, 비용은 AI 텍스트 요청과 같이 사용 크레딧에서 차감됩니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
제 이미지 서비스 키가 필요한가요?
아닙니다. 서비스는 이미 설정되어 있으며, 비용은 사용 크레딧에서 차감됩니다.
제 사진을 사용할 수 있나요?
네. 로컬 파일이나 웹 링크 형태의 참고 이미지를 전달해 편집하거나 새 이미지의 바탕으로 쓸 수 있습니다.
품질이 항상 낮은 이유는 무엇인가요?
비용 관리를 위해 고품질 설정이 꺼져 있어서, 모든 이미지가 낮은 설정으로 만들어집니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 11k
- 순위
- #11802
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
browser-edge-cases
11k에이전트가 LinkedIn, X 같은 까다로운 사이트나 스크립트가 많은 페이지에서 실패하는 브라우저 자동화를 고치도록 돕습니다.
hive.browser-automation
11k에이전트가 hive-browser 도구로 내 Chrome 브라우저를 제어하도록 가르칩니다. 스크린샷과 클릭을 사용합니다.
hive.colony-progress-tracker
11k에이전트가 작업을 맡고 단계와 점검 내용을 공유 데이터베이스에 기록하도록 돕습니다. 작업이 진행되는 동안 추적됩니다.
hive.context-preservation
11k에이전트가 긴 도구 결과에서 핵심 사실을 메모로 저장해, 오래된 세부 내용이 기억에서 지워지기 전에 보존하도록 돕습니다.