Install
$ agentstack add skill-claude-world-claude-agent-image-gen ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Image Gen
Generate images from text prompts using the OpenAI Images API (DALL-E 3) via curl. Requires an OPENAI_API_KEY environment variable.
Prerequisites
No CLI install needed — uses curl and jq (pre-installed on macOS/Linux).
Set up your API key:
export OPENAI_API_KEY="sk-..."
# Or add to ~/.zshrc / ~/.bashrc for persistence
Get a key: https://platform.openai.com/api-keys
Commands
Generate a single image (returns URL):
curl -s https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dall-e-3",
"prompt": "A serene mountain lake at sunset, photorealistic",
"n": 1,
"size": "1024x1024",
"quality": "standard"
}' | jq -r '.data[0].url'
Generate HD image:
curl -s https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"dall-e-3","prompt":"","n":1,"size":"1024x1024","quality":"hd"}' \
| jq -r '.data[0].url'
Download generated image to file:
URL=$(curl -s https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"dall-e-3","prompt":"","n":1,"size":"1024x1024","quality":"standard"}' \
| jq -r '.data[0].url')
curl -s "$URL" -o workspace/image-output.png
Batch generate (loop):
PROMPTS=("prompt one" "prompt two" "prompt three")
for i in "${!PROMPTS[@]}"; do
URL=$(curl -s https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"dall-e-3\",\"prompt\":\"${PROMPTS[$i]}\",\"n\":1,\"size\":\"1024x1024\",\"quality\":\"standard\"}" \
| jq -r '.data[0].url')
curl -s "$URL" -o "workspace/image-$i.png"
echo "Saved workspace/image-$i.png"
done
Size Options
| Size | Use Case | |------|----------| | 1024x1024 | Square (default, social media) | | 1792x1024 | Landscape (banners, thumbnails) | | 1024x1792 | Portrait (stories, posters) |
Usage Examples
Generate a social media card image:
# Prompt + download to workspace
URL=$(curl -s https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"dall-e-3","prompt":"Minimalist tech blog cover, dark background, glowing circuit pattern, 1080x1080","n":1,"size":"1024x1024","quality":"hd"}' \
| jq -r '.data[0].url')
curl -s "$URL" -o workspace/social-card.png
Rules
- Always check that
OPENAI_API_KEYis set:[[ -z "$OPENAI_API_KEY" ]] && echo "OPENAI_API_KEY not set" - Never print the API key value in output
- Default to
dall-e-3, size1024x1024, qualitystandardunless specified - Always download images to
workspace/directory; never just return raw URLs - Name output files descriptively:
workspace/image-.png - For batch jobs, generate one at a time sequentially to avoid rate limits
- Check API response for errors:
jq '.error'before using the URL - Confirm completion with: "Generated image(s) → workspace/"
- DALL-E 3 limit is n=1 per request; for multiple images, loop the request
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: claude-world
- Source: claude-world/claude-agent
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.