Token导航 LogoToken导航

Agent Skill · 图像处理

cloudflare-workers-ai-images(cloudflare Workers ai 图像)

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

cloudflare-workers-ai-images 是图像处理类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在图像处理类的 1,562 个 Skill 里排第 462。

总安装 6,480周安装 270GitHub Stars 公开资料未说明下载 2,160核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.1.1

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cloudflare-workers-ai-images(cloudflare Workers ai 图像)
来源仓库:https://github.com/slippersheepig/cloudflare-workers-ai-images
安装命令:
openclaw skills install cloudflare-workers-ai-images
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install cloudflare-workers-ai-images

这个 Skill 是做什么的

图像处理类 Skill 处理生成、裁剪、压缩和批量转换图片的任务。

用于生成和编辑图像,支持文本到图像和图像到图像转换任务。基于 Cloudflare Workers AI 平台,适合创意素材生成和视觉提示词优化。使用时需确认输入图片版权、输出格式限制及模型可用性边界。涉及人物、品牌或公开展示内容时,应额外核对授权与合规要求。

cloudflare-workers-ai-images 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install cloudflare-workers-ai-images;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

cloudflare-workers-ai-images 怎么安装?

在终端执行 openclaw skills install cloudflare-workers-ai-images。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

cloudflare-workers-ai-images 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

cloudflare-workers-ai-images 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

cloudflare-workers-ai-images 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

cloudflare-workers-ai-images 用的人多吗?

公开数据是累计安装 6,480 次,近一周安装 270 次,下载 2,160 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

cloudflare-workers-ai-images 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理图像处理类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

图像处理类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
ai-image-generation

AI 图像生成 · Codex、Claude

4,365,552382调用外部服务未明确有提醒
openai-image-gen

OpenAI 图像生成 · OpenClaw

1,906,88432需要联网MIT-0有提醒
image

图像 · OpenClaw

525,99926需要联网MIT-0通过
baoyu-cover-image

宝玉封面图 · Codex、Claude

474,24016,779只读MIT有提醒
baoyu-image-gen

宝玉图像生成器 · Codex、Claude

468,00716,778接触敏感数据MIT通过
cloudflare-workers-ai-images

cloudflare Workers ai 图像 · 本页

6,480—接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
cloudflare-workers-ai-image
description
Generate and edit images through Cloudflare Workers AI using one skill that supports text-to-image and image-to-image. Use when the user asks to generate, draw, create, render, transform, restyle, or modify images with Cloudflare Workers AI models such as stable-diffusion-xl-base-1.0 and stable-diffusion-v1-5-img2img. Trigger for requests about prompt-based image generation, editing an existing image, preserving a source image while changing overall style or composition, or when the user explicitly mentions Cloudflare Workers AI, Workers AI, SDXL, or img2img. Save generated images to a temporary local path, let OpenClaw send them to the current conversation window, and remove the temporary files after successful delivery unless the user explicitly asks to keep a saved copy.

Cloudflare Workers AI Image

Use this skill for two related image workflows backed by Cloudflare Workers AI:

  • text2img → create a new image from a prompt
  • img2img → transform an existing source image with a prompt

Use the bundled script:

python3 scripts/cf_workers_ai_image.py <mode> "<prompt>" [options]

The script reads credentials from environment variables so the skill works cleanly in Docker-based OpenClaw deployments.

Trigger guidance

Use this skill when the user wants any of the following through Cloudflare Workers AI:

  • generate a brand-new image from text
  • make a picture, illustration, concept art, poster, wallpaper, avatar, or cover image
  • transform an existing image into another style or composition
  • keep the original image as a base but restyle or modify it globally
  • perform text2img or img2img with Stable Diffusion-family models on Cloudflare

Strong trigger phrases include:

  • "用 Cloudflare Workers AI 生成图片"
  • "用 Workers AI 做文生图"
  • "用 SDXL 生成一张图"
  • "把这张图改成水彩风"
  • "基于这张图重绘"
  • "用 img2img 改图"
  • "用 Workers AI 改这张图片风格"

Mode selection guidance:

  • Choose text2img when there is no source image and the user wants a new image from a prompt.
  • Choose img2img when there is a source image and the user wants a global transformation, style transfer, or composition-preserving edit.

If the user asks for a local area edit, object replacement, or mask-based redraw, this skill does not cover that workflow anymore.

Required environment variables

Read references/docker-compose-env-example.md when the user asks how to pass credentials through Docker Compose.

Required variables:

  • CF_ACCOUNT_ID
  • CF_API_TOKEN

If either variable is missing, the script exits with a clear error.

Default models

The script defaults to these Workers AI model identifiers:

  • text2img → @cf/stabilityai/stable-diffusion-xl-base-1.0
  • img2img → @cf/runwayml/stable-diffusion-v1-5-img2img

Override any default with --model if Cloudflare changes naming or the user wants another compatible Workers AI model.

Commands

1) Text to image

python3 scripts/cf_workers_ai_image.py text2img "a cozy cabin in snowy mountains, cinematic lighting" --output /tmp/openclaw/

Optional knobs:

python3 scripts/cf_workers_ai_image.py text2img "a cozy cabin in snowy mountains, cinematic lighting" \
  --negative-prompt "blurry, low quality, distorted" \
  --num-steps 30 \
  --guidance 7.5 \
  --width 1024 \
  --height 1024 \
  --seed 42 \
  --output /tmp/openclaw/

2) Image to image

python3 scripts/cf_workers_ai_image.py img2img "turn this into a watercolor illustration" \
  --image ./input/source.png \
  --strength 0.65 \
  --output /tmp/openclaw/

The bundled script sends the source image as a base64 field (image_b64) for Workers AI compatibility.

Chat workflow

When you ask to generate or process an image:

  1. Determine the mode (text2img or img2img) and convert your request into a prompt.
  2. Run scripts/cf_workers_ai_image.py with the --output /tmp/openclaw/ argument.
  3. The script saves the image to the specified temporary directory and prints the full path to stdout.
  4. Send the image back through the current conversation provider's required image/file-send format.
  5. After successful delivery, delete the temporary image file unless the user explicitly asked to keep it.

Provider-specific delivery rule

This skill only generates and saves image files. It does not define a universal send format.

When returning a generated or edited image in chat, always follow the current session provider's required outbound media format. Different providers may require different delivery methods, wrappers, or tools. Do not assume that reading a local image path, echoing a file path, or relying on one provider's auto-routing behavior will work across all providers.

Required behavior:

  • Detect the current session provider/channel before sending.
  • Use that provider's correct media-send path and syntax.
  • If the provider requires a provider-specific wrapper or message format for outbound images, use it.
  • If the provider does not reliably auto-send images from a local file read, do not rely on that fallback.
  • Treat image delivery as provider-specific, not skill-generic.

Auto-send workflow for the current chat

When the runtime supports sending generated images back to the active conversation, prefer this flow:

  1. Generate the image with scripts/cf_workers_ai_image.py --output /tmp/openclaw/.
  2. Capture the file path printed to stdout.
  3. Send the generated image to the current chat using the active provider's correct outbound media format, not a generic path-only assumption.
  4. Include a short caption describing whether the result came from text2img or img2img.
  5. Delete the temporary file immediately after send succeeds.
  6. Only keep the file in a persistent location when the user explicitly asked to save it.

Recommended captions:

  • text2img → 按你的提示生成好了。
  • img2img → 按你的源图和提示改好了。

If the request is iterative, mention what changed in the new version, such as style, prompt emphasis, or source-image guidance.

Parameters

  • mode: text2img | img2img
  • positional prompt: prompt text
  • --image: required for img2img
  • --output: required output file path or directory; use a temporary directory for normal chat delivery, or a persistent location only when the user explicitly requests a saved file
  • --model: optional model override
  • --negative-prompt: optional negative prompt
  • --num-steps: optional sampling steps
  • --guidance: optional guidance scale
  • --strength: optional transformation strength
  • --width, --height: optional text2img dimensions when supported by the model
  • --seed: optional seed
  • --timeout: HTTP timeout in seconds

The script's responsibility stops at generating the file and printing its saved path. The caller must handle outbound delivery using the active chat provider's required image-send format.

Smoke testing

Run the bundled smoke test script after changing the API script or credentials:

python3 scripts/smoke_test.py

What it does:

  • checks CF_ACCOUNT_ID and CF_API_TOKEN
  • creates a local PNG input for img2img
  • runs one text2img request
  • runs one img2img request
  • verifies that each command writes an image file and prints a usable output path
  • prints a JSON summary and exits non-zero if any mode fails

Use smoke tests to validate connectivity and gross regressions, not image quality.

Troubleshooting

Missing credentials

If the script says a required environment variable is missing, pass CF_ACCOUNT_ID and CF_API_TOKEN through Docker Compose. See references/docker-compose-env-example.md.

JSON instead of image

Workers AI may return JSON for errors or validation failures. Surface the full JSON body.

Storage policy

The default policy is temporary-file delivery.

  • Generate into a temporary local path for normal chat delivery
  • Return the saved file path so OpenClaw can send the file to the current conversation
  • Delete the temporary file immediately after successful delivery
  • Keep a persistent local copy only when the user explicitly asks for that behavior

401 / 403

The token is missing, invalid, expired, or does not have the right Cloudflare account permission.

404 / model not found

Cloudflare may have changed model identifiers. Retry with --model using the current Workers AI model name.

Input image issues

Use PNG for source images when possible.

Resource

scripts/cf_workers_ai_image.py

Use this script for deterministic, repeatable Cloudflare Workers AI image generation and editing.

scripts/smoke_test.py

Use this script for a fast end-to-end connectivity and output smoke test across the supported modes.

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

平台分布

OpenClaw

73.81%
按下载量换算1,594

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills