Skip to content
Skills Library
Design & UX · Building & coding

cf-image

/cf-image

Generate an image from a text description using Cloudflare Workers AI (the flux-1-schnell model). Use this skill whenever the user wants to create, generate, make, or draw an image / picture / logo / icon / thumbnail / wallpaper / banner from a text idea and mentions Cloudflare, or is working in this repo and asks for a quick generated image. Claude expands the user's request into a strong image prompt, runs the bundled generate.py, and saves a JPG to disk. Trigger on phrases like "generate an image of", "make me a picture of", "create a thumbnail for", "cloudflare image", or a plain descripti

Licence
MIT
Last repository change
18.08.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 18.08.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: generate.py

What it does and when to use it

Generate an image from a text description using Cloudflare Workers AI (the flux-1-schnell model). Use this skill whenever the user wants to create, generate, make, or draw an image / picture / logo / icon / thumbnail / wallpaper / banner from a text idea and mentions Cloudflare, or is working in this repo and asks for a quick generated image. Claude expands the user's request into a strong image prompt, runs the bundled generate.py, and saves a JPG to disk. Trigger on phrases like "generate an image of", "make me a picture of", "create a thumbnail for", "cloudflare image", or a plain descripti

Triggers from the description

generate an image ofmake me a picture ofcreate a thumbnail forcloudflare image
Original author description

Generate an image from a text description using Cloudflare Workers AI (the flux-1-schnell model). Use this skill whenever the user wants to create, generate, make, or draw an image / picture / logo / icon / thumbnail / wallpaper / banner from a text idea and mentions Cloudflare, or is working in this repo and asks for a quick generated image. Claude expands the user's request into a strong image prompt, runs the bundled generate.py, and saves a JPG to disk. Trigger on phrases like "generate an image of", "make me a picture of", "create a thumbnail for", "cloudflare image", or a plain descripti

How it works

  1. When this skill applies
  2. How to run it
  3. The one job Claude must do: write a strong prompt
  4. After generating
  5. Requirements
Original SKILL.md headings · 52 lines, 425 words
SKILL.md preview
---
name: cf-image
description: Generate an image from a text description using Cloudflare Workers AI (the flux-1-schnell model). Use this skill whenever the user wants to create, generate, make, or draw an image / picture / logo / icon / thumbnail / wallpaper / banner from a text idea and mentions Cloudflare, or is working in this repo and asks for a quick generated image. Claude expands the user's request into a strong image prompt, runs the bundled generate.py, and saves a JPG to disk. Trigger on phrases like "generate an image of", "make me a picture of", "create a thumbnail for", "cloudflare image", or a plain description paired with a request for an image. Requires CF_ACCOUNT_ID and CF_API_TOKEN in the project's .env.
---

# cf-image

Turn a natural-language request into a generated image using **Cloudflare Workers AI** (`@cf/black-forest-labs/flux-1-schnell`). This skill is the "connect Claude to image generation" loop: the user describes what they want, Claude does the prompt engineering, the bundled script calls the Cloudflare API, and the image is saved locally.

## When this skill applies

The user wants an image generated from a description — e.g. "generate a logo idea for a coffee shop", "make a thumbnail for my AI video", "picture of a cyberpunk cat". Claude is responsible for turning a vague ask into a good prompt before generating.

It does **not** apply to: editing an existing image, vector/SVG art, or video.

## How to run it

From the repo root:

```bash
python .claude/skills/level-3-image-generator/generate.py "<optimized prompt>" -o <filename>.jpg
```

- `"<optimized prompt>"` — the prompt **you** write (see below), not the user's raw words.
- `-o` / `--output` — where to save (default `out.jpg`). Pick a short descriptive name, e.g. `coffee-logo.jpg`.
- `--steps` — diffusion steps (default `4`). flux-schnell is tuned for few steps; 4–8 is plenty. Higher is slower, not always better.

The script prints `Saved <file> ...` on success, or a Cloudflare API error message on failure.

## The one job Claude must do: write a strong prompt

The raw script would need a hand-written prompt. The value of this skill is that **Claude expands the user's intent into a vivid, specific prompt** before calling the script. A good Flux prompt names:

- **Subject** — what's in the frame, concretely.
- **Style/medium** — photo, 3D render, flat vector, watercolor, isometric, etc.
- **Composition & framing** — close-up, wide shot, centered, rule-of-thirds.
- **Lighting & mood** — golden hour, neon, soft studio light, dramatic shadows.
- **Color/detail cues** — palette, background, level of detail.

Example transformation:
- User: *"a logo for a coffee shop"*
- Prompt you pass: *"minimalist logo of a steaming coffee cup, flat vector illustration, warm brown and cream palette, centered on a clean off-white background, simple bold shapes, modern branding"*

Keep prompts to one or two sentences. Don't include text/words to render — Flux is unreliable at rendering legible text.

## After generating

1. Confirm the file was saved (the script prints the path).
2. Tell the user the filename and the exact prompt you used, so they can tweak and re-run.
3. If they want variations, re-run with a modified prompt and a new `-o` filename.

## Requirements

- `CF_ACCOUNT_ID` and `CF_API_TOKEN` set in the project's `.env` (see `.env.example`). The script loads them automatically.
- Python deps: `requests`, `python-dotenv`.
Files in this package (2)
  • SKILL.md 3 KB
  • generate.py 2 KB

Versions

The database has no other skills named cf-image.

Database snapshot: 13.11.2026 · package version 8da3a75010c5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100create-image
    Generate images from a text prompt and display them with prompt, status, and progress. Use for "make an image of…", "generate a picture of…", "imagine…", or visualizing a concept/mood. Triggers: generate image, make a picture, draw, imagine, create art, render an image, AI image, visualize this.
  • 100sketch-prompt
    Converts any block of text into a conceptual sketch image. Takes raw text, extracts the central idea, generates an image prompt, and produces the final image using ComfyUI + Flux.1 Schnell locally. Use when the user pastes text, notes, or ideas and wants a visual concept.…
  • 90image-forge-create
    Create a new image from a text prompt with the image-forge MCP server (generate_image). Use when the user asks to generate, draw, render or design a picture, illustration, photo, logo, banner or mockup, and the image-forge MCP is available.
  • 98image-generation
    Generate an image from a text description and save it to disk. Uses Gemini (Antigravity CLI or API key), OpenAI (API key), the free Pollinations service or a local model, whichever the user has set up. Use when the user asks to create, generate, draw, or make an image, picture,…
  • 959router-image
    Generate images via 9Router /v1/images/generations using OpenAI / Gemini Imagen / DALL-E / FLUX / MiniMax / SDWebUI / ComfyUI / Codex models. Use when the user wants to create, generate, draw, or render an image, picture, or text-to-image (txt2img).
  • 100ai-image-creator
    Generate, edit-from-reference, or analyze images with AI via OpenRouter (Gemini, GPT Image, Seedream, Qwen, MAI, Grok, FLUX.2, Recraft, Muse, Riverflow; Cloudflare AI Gateway BYOK). Also analyze a video (--analyze-video, read-only — no video generated) into a text description…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.