Agent skill

Draw Image

by ai-sns in ai-sns/ai-sns

Generate an image from a text prompt using an OpenAI-compatible image generation API (gpt-image-1-mini or compatible).

MITAuto-check passedMedia & Creative

Install Draw Image

skills CLI
$ npx skills add ai-sns/ai-sns --skill draw-image -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ai-sns/ai-sns draw-image --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ai-sns/ai-sns.git skills-src && mkdir -p .claude/skills && cp -r skills-src/adapters/openclaw/skill_example/draw-image .claude/skills/draw-image && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
draw-image
GitHub stars
338
Token cost
~778 tokens
SKILL.md length
227 words
Files
2 (incl. scripts)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Generate an image from a text prompt using an OpenAI-compatible image generation API (gpt-image-1-mini or compatible).

  • User asks to draw
  • SKILL.md covers Quick Start, Parameters and Output
  • Runs Python scripts from its folder; calls python3; reaches gofile.io; needs DRAW_IMAGE_API_KEY
  • Create an image

What it does

Draw Image is an agent skill from ai-sns/ai-sns. Generate an image from a text prompt using an OpenAI-compatible image generation API (gpt-image-1-mini or compatible). The image is uploaded to the gofile.io public file sharing service and ONLY the public download page URL is returned. Trigger when user asks to draw, paint, generate, or create an image.

Its SKILL.md is about 780 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/draw.py`).

It sits in Media & Creative, covering Image generation. It works with OpenAI, Agent2Agent Protocol and Google Maps Platform. The repository describes itself as: OpenClaw Hermes AI Agent Social Network🦞💬🦞Built on Google 3D Maps and A2A protocol, connects OpenClaw and Hermes agents worldwide in a 3D environment. The licence is MIT.

When your agent uses it

  • User asks to draw
  • Create an image

Example prompts

  • “/draw-image”

Requirements

  • Python 3
  • A credential in DRAW_IMAGE_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit ef07270. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • gofile.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • DRAW_IMAGE_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Draw Image loads about 778 tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 227 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~778

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from ai-sns/ai-sns at commit ef07270, republished under its MIT licence (© ai-sns). 227 words, ~778 tokens.

Download SKILL.mdSave it as .claude/skills/draw-image/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
draw-image
description
Generate an image from a text prompt using an OpenAI-compatible image generation API (gpt-image-1-mini or compatible). The image is uploaded to the gofile.io public file sharing service and ONLY the public download page URL is returned. Trigger when user asks to draw, paint, generate, or create an image.

Draw Image

Generate images via an OpenAI-compatible images/generations endpoint. The script has a built-in API base and key, so no extra configuration is needed.

Quick Start

Generate an image from a text prompt:

bash
python3 C:\Users\IDD\.openclaw\workspace\skills\draw-image\scripts\draw.py --prompt "A futuristic cityscape at sunset with flying cars"

Parameters

All parameters are optional except --prompt:

bash
python3 C:\Users\IDD\.openclaw\workspace\skills\draw-image\scripts\draw.py \
  --prompt "A cute cat wearing a spacesuit" \
  --size 1024x1024 \
  --model gpt-image-1-mini \
  --quality low \
  --n 1
  • --prompt (string, required): Text description of the image to generate.
  • --size (string, optional): Image dimensions. Default: 1024x1024. Common values: 256x256, 512x512, 1024x1024, 1792x1024, 1024x1792.
  • --model (string, optional): Image generation model. Default: gpt-image-1-mini.
  • --quality (string, optional): Image quality: low , medium,high. Default: low.
  • --n (integer, optional): Number of images to generate. Default: 1.
  • --out-dir (string, optional): Directory to save images. Default: <projectRoot>/uploads/generated_images/.
  • --api-base (string, optional): Override the API base URL.
  • --api-key (string, optional): Override the API key.
Stdin JSON Mode

Alternatively, pass parameters as JSON on stdin:

bash
echo '{"prompt": "A serene mountain landscape at dawn"}' | python3 C:\Users\IDD\.openclaw\workspace\skills\draw-image\scripts\draw.py --stdin
Environment Variable Overrides
  • DRAW_IMAGE_API_BASE: Override the API base URL.
  • DRAW_IMAGE_API_KEY: Override the API key.

Output

The image is generated, uploaded to gofile.io, and ONLY the public download page URL is returned. The script prints a JSON object to stdout:

  • ok (bool): Whether the generation and upload succeeded.
  • download_page (string): The public gofile.io download page URL of the generated image. Only this URL is returned as the result. Open this URL in a browser to download the generated image.
  • note (string): A short hint explaining that download_page is used to download the generated image.
  • error (string): Error message on failure.

Example success output:

json
{
  "ok": true,
  "download_page": "https://gofile.io/d/WcWZKt",
  "note": "Use this URL to download the generated image."
}

© ai-sns, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in adapters/openclaw/skill_example/draw-image of ai-sns/ai-sns.

  • SKILL.md
  • scripts/draw.py

Open the folder on GitHubat commit ef07270

Compare with similar skills

Draw Image next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Draw Image compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Draw Image this skillai-sns/ai-sns338—~778Automated safety check: PassMIT
Nano Banana Pro Prompts Recommend SkillYouMind-OpenLab/nano-banana-pro-prompts-recommend-skill1.9k1 repos~4.1kAutomated safety check: PassNone
Yingzaoop7418/guizang-yingzao-skill495—~1.1kAutomated safety check: PassNone
AI Image Creatorcentminmod/my-claude-code-setup2.7k—~8.1kAutomated safety check: NotesMIT
Character Refseternityspring/shuohao-skills4.3k—~1.7kAutomated safety check: WarnApache-2.0
Basic Memory Repo Imagesbasicmachines-co/basic-memory4.1k—~2.7kAutomated safety check: PassAGPL-3.0

Similar skills

  • Nano Banana Pro Prompts Recommend Skill

    YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill

    Recommend suitable prompts from 10,000+ Nano Banana Pro image generation prompts based on user needs.

    1.9k GitHub starsUsed in 1 repo~4.1k tokens
    Media & CreativeAuto-check passed
  • Yingzao

    op7418/guizang-yingzao-skill

    Transform real Chinese architecture and place-based cultural photos into art-directed editorial posters, integrated multi-photo scenes, and optional source comparisons.

    495 GitHub stars~1.1k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed
  • AI Image Creator

    centminmod/my-claude-code-setup

    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).

    2.7k GitHub stars~8.1k tokensUpdated yesterday
    Media & CreativeAuto-check: notes
  • Character Refs

    eternityspring/shuohao-skills

    给任何故事里的角色真出参考图(小说改编、自己原创的故事、单独设计一个角色都行,不需要小说原文): 一段话描述角色,拆成分层字段、补全后确认, 先出一张正面全身锚点,其余视图(大头照、90° 侧面、背面、细节、45° 大头照)都只参考这张锚点, 按需分档出图。每张图带标识、可单独重出,重出后自动标出哪些图过期。

    4.3k GitHub stars~1.7k tokensUpdated yesterday
    Media & CreativeAuto-check: warnings
  • Basic Memory Repo Images

    basicmachines-co/basic-memory

    Produces PR, changelog and two-week retro images for the Basic Memory repository from evidence in PR bodies, saved to fixed paths under docs/assets/infographics.

    4.1k GitHub stars~2.7k tokensUpdated today
    Media & CreativeAuto-check passed
  • Chatgpt Image Ad

    krusemediallc/arcads-claude-code

    Generate one or more standalone Meta image-ad creatives via ChatGPT Image 2 (gpt-image-2) through the Arcads external API.

    1.6k GitHub stars~2.7k tokensUpdated 17 days ago
    Media & CreativeAuto-check: notes

Questions about Draw Image

What does Draw Image do?

Generate an image from a text prompt using an OpenAI-compatible image generation API (gpt-image-1-mini or compatible). Draw Image is an agent skill from ai-sns/ai-sns. Generate an image from a text prompt using an OpenAI-compatible image generation API (gpt-image-1-mini or compatible).

When should I use Draw Image?

Draw Image fits situations like: user asks to draw; create an image.

How do I install Draw Image in Claude Code?

Run `npx skills add ai-sns/ai-sns --skill draw-image -a claude-code`. Or copy the skill folder (adapters/openclaw/skill_example/draw-image in ai-sns/ai-sns) into .claude/skills/draw-image in your project. Claude Code loads it when a task matches its description.

How do I install Draw Image in Codex?

Run `npx skills add ai-sns/ai-sns --skill draw-image -a codex`. Or copy the skill folder (adapters/openclaw/skill_example/draw-image in ai-sns/ai-sns) into .agents/skills/draw-image in your project. Codex loads it when a task matches its description.

Can I use Draw Image in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ai-sns/ai-sns --skill draw-image -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/draw-image, .gemini/skills/draw-image, .github/skills/draw-image and .opencode/skills/draw-image in your project.

What does Draw Image need to run?

Going by SKILL.md and its folder, Draw Image needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named DRAW_IMAGE_API_KEY. Our summary lists: Python 3; A credential in DRAW_IMAGE_API_KEY.

Does Draw Image access the network?

SKILL.md names 1 domain. In commands or code: gofile.io; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Draw Image safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Draw Image use?

Draw Image is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Draw Image use?

About 778 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Draw Image?

Skills that share tags, products or a category with Draw Image: Nano Banana Pro Prompts Recommend Skill (YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill, 1.9k stars), Yingzao (op7418/guizang-yingzao-skill, 495 stars), AI Image Creator (centminmod/my-claude-code-setup, 2.7k stars) and Character Refs (eternityspring/shuohao-skills, 4.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Draw Image?

ai-sns (a GitHub organization) maintains it in ai-sns/ai-sns, which has 338 GitHub stars. The repository was last updated on August 5, 2026.

Source: ai-sns/ai-sns on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.