Image Generation
暂无简介
- License 许可
- Apache-2.0
- 所属仓库
- rhCat/skillChip
- 最近更新
- 2026-07-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- Image Generation
- perks
- [ "generate", "edit", "generate-batch" ]
- skill
- imagegen
02 资源文件 27
- 其他blueprint.drawio2.7 KB
- 参考文档blueprint.json3.5 KB
- 资产文件blueprint.svg8.9 KB
- 参考文档index.json2.9 KB
- 参考文档ledger.json282 B
- 许可证LICENSE.txt10.5 KB
- 参考文档perks.json712 B
- 参考文档perks/edit/manifesto.json597 B
- 参考文档perks/edit/metadata.json1.2 KB
- 参考文档perks/edit/src/contracts.json672 B
- 脚本perks/edit/src/image_gen.py31.1 KB
- 脚本perks/edit/src/img_edit.sh1.2 KB
- 参考文档perks/edit/test/case.json300 B
- 资产文件perks/edit/test/fixture/input.png69 B
- 参考文档perks/generate-batch/manifesto.json569 B
- 参考文档perks/generate-batch/metadata.json1.2 KB
- 参考文档perks/generate-batch/src/contracts.json624 B
- 脚本perks/generate-batch/src/image_gen.py31.1 KB
- 脚本perks/generate-batch/src/img_generate_batch.sh1.3 KB
- 参考文档perks/generate-batch/test/case.json300 B
- 其他perks/generate-batch/test/fixture/jobs.jsonl201 B
- 参考文档perks/generate/manifesto.json515 B
- 参考文档perks/generate/metadata.json1.2 KB
- 参考文档perks/generate/src/contracts.json609 B
- 脚本perks/generate/src/image_gen.py31.1 KB
- 脚本perks/generate/src/img_generate.sh1.1 KB
- 参考文档perks/generate/test/case.json347 B
03 SKILL.md 正文
imagegen — Image Generation
Generate, edit, or batch-generate raster images (photos, illustrations, textures, sprites,
mockups, transparent-background cutouts) through the vendored GPT Image fallback CLI
(image_gen.py). Each perk wraps one CLI subcommand; outputs are written locally under
record_store.
What to look out for
Each tool emits one line of structured JSON (the audit + debug log) and writes its artifacts
under record_store. The porters run the CLI in --dry-run mode, which validates the request
and resolves output paths WITHOUT calling the live Image API and WITHOUT requiring
OPENAI_API_KEY — so the request preview always lands in the named report even offline. A real
render requires OPENAI_API_KEY and the openai SDK (plus Pillow for --downscale-max-dim).
LOGS TO CHECK: that JSON line + the named report + the executor run-ledger.
Perks
| perk | tool | nature |
|---|---|---|
generate |
img_generate |
local-output / safe (one prompt → image, dry-run preview) |
edit |
img_edit |
local-output / safe (edit input image[s], optional mask, dry-run preview) |
generate-batch |
img_generate_batch |
local-output / safe (JSONL of prompts → many images, dry-run preview) |
The generate perk turns one prompt into a new image. The edit perk transforms one or more
input images (inpainting, background replacement, transparency, compositing) with an optional PNG
mask. The generate-batch perk reads a JSONL job file (one prompt or job object per line) and
fans out concurrent jobs into an output directory. All three are local-output only (they write
image/JSON files; they never push to a remote or mutate a live service), hence destructive: false.
How to use it
Pick a perk (generate, edit, or generate-batch), copy ledger.json → task-ledger.json,
fill its vars + record_store, then validate → compose → compile → oversight → executor.
Localized from openai/skills
imagegen— Apache-2.0 (see LICENSE.txt).
04 同仓库更多 Skills
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.