Skip to content
Back to skills

Image Generation

ASecurity

Generate images from a text description through gpt-image-1 on Gateway \"Prod\": EU and save them as files. Use when the user asks you to create an image. Each run is billed: confirm with the user first.

  • 103 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsgobashnodeapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add MaimoryLab/BootAgent --skill image-generation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Image Generation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Image Generation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/maimorylab-image-generation/badge)](https://www.skillsdirectory.com/skills/maimorylab-image-generation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bootagent-image-generation
description: "Generate images from a text description through gpt-image-1 on Gateway \"Prod\": EU and save them as files. Use when the user asks you to create an image. Each run is billed: confirm with the user first."
---

# Image generation

Generated by BootAgent. It calls `gpt-image-1` on the user's Gateway "Prod": EU account. BootAgent rewrites this Skill when the model or Provider changes, so do not edit it.

## When to use

When the user asks you to create an image: an illustration, an icon draft, a mock-up, a diagram-style picture.

## Command

Run the script from the user's working directory, using the absolute path to this Skill:

```bash
node <this Skill's directory>/scripts/run.mjs generate --prompt "<description>" [--size <WxH>] [--n <count>] [--out <directory>]
```

- `--prompt`: a full description of the image to create.
- `--size`: for example `1024x1024`. Leave it out unless the user asks; valid sizes depend on the model.
- `--n`: how many images, 1 to 4. Default 1.
- `--out`: directory for the files. Default `~/.bootagent/output`, outside the Skill directory.
- `--timeout`: seconds to wait. Default 300.

The saved file paths are printed to stdout, one per line. Existing files are never overwritten.

## Rules

- Every run costs money. Before each run, tell the user what you are about to generate and how many images, and wait for them to agree.
- Never print, echo or log environment variables, `~/.bootagent/skill-env/my-gateway.env`, or anything that could reveal the API key. The script reads the key itself; you never need it.
- Only send files the user asked about. They go to the user's own Provider and nowhere else.

## Exit codes

| Code | Meaning | What to tell the user |
| --- | --- | --- |
| 0 | Success | Report the result. |
| 2 | Bad arguments or input file | Fix the command, or ask the user for the right file. |
| 3 | Setup problem: Node.js older than 18, or no API key found | Ask the user to restart the Agent so it picks up `BOOTAGENT_MY_GATEWAY_API_KEY`, or to reinstall this Skill from BootAgent. |
| 4 | The Provider refused the request | Show the Provider's message. The model may not support this input; the user can choose another model in BootAgent. |
| 5 | The Provider rejected the API key | Ask the user to check the Gateway "Prod": EU key in BootAgent. |
| 6 | The Provider was unreachable, busy or timed out | Suggest trying again later. |

`node <this Skill's directory>/scripts/run.mjs check` confirms the key is available without sending a request.

Files in this skill

  • SKILL.md2.5 KB
  • config.json398 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.