Draw Image
Tekst-naar-afbeelding via OpenAI images API, uploadt vervolgens het resultaat naar gofile.io publieke hosting
Tested · Didn't pass
Wat het doet
Wikkelt een Python script in dat een OpenAI-compatibel /v1/images/generations endpoint (standaardmodel gpt-image-1-mini) aanroept met een prompt, grootte, kwaliteit en aantal, slaat de PNG lokaal op, uploadt deze vervolgens naar de anonieme bestandshost gofile.io en retourneert alleen de openbare downloadpagina-URL. Bedoeld om te activeren wanneer een gebruiker vraagt om een afbeelding te tekenen, schilderen, genereren of creëren. Het is een voorbeeld skill van het AI-SNS agent-network project in plaats van een Claude Code skill, en vereist je eigen OpenAI API key ondanks documentatie die beweert dat een key is ingebouwd.
Testrapport
De openclaw kopie geïnstalleerd in een tijdelijke HOME en het gedocumenteerde commando letterlijk uitgevoerd; het retourneerde {"ok": false, "error": "API HTTP 401: Incorrect API key provided: your_api_key"}, waarmee de bewering van SKILL.md dat een key is ingebouwd en dat geen configuratie nodig is, werd weerlegd. Ik had geen OpenAI image key, dus ik kon geen afbeelding genereren en produceerde geen skill-artefact om te vergelijken met een baseline (outputMeasured=false). Bij het lezen van scripts/draw.py vond ik ssl.CERT_NONE op alle drie de netwerkoproepen en bevestigde dit door uitvoering: het richten van --api-base op https://self-signed.badssl.com met --api-key sk-secret-test voltooide de TLS-handshake en retourneerde een HTTP 404 body, terwijl een gewone urllib.request.urlopen tegen dezelfde host CERTIFICATE_VERIFY_FAILED veroorzaakte — dus de Bearer key wordt verzonden via een ongeverifieerd kanaal. Trigger formuleringen beoordeeld: "Draw me a picture of a cow in a spacesuit" (laden), "Generate an image of a futuristic city at sunset" (laden), "Can you paint a watercolor landscape for my blog header?" (laden), "Create a flowchart diagram of our auth flow" (niet laden — dat is mermaid/SVG, geen tekst-naar-afbeelding), "Resize and compress these PNGs in ./assets" (niet laden — manipulatie, geen generatie); 5/5 correct.
Getest op: 2026-07-31 · Claude Code 2.x (agent harness)
Installatie
git clone --depth 1 https://github.com/ai-sns/ai-sns.git /tmp/draw-image-src mkdir -p ~/.claude/skills cp -R /tmp/draw-image-src/adapters/openclaw/skill_example/draw-image ~/.claude/skills/draw-image # Requires python3 (stdlib only) AND your own OpenAI API key with image-generation access. # SKILL.md claims "The script has a built-in API base and key, so no extra configuration is # needed" -- this is FALSE. The shipped DEFAULT_API_KEY is the literal string "your_api_key" # and OpenAI returns HTTP 401. You must set: export DRAW_IMAGE_API_KEY=sk-... # (optionally export DRAW_IMAGE_API_BASE=https://your-openai-compatible-host/v1) # SECURITY, read before using: scripts/draw.py sets ssl.CERT_NONE + check_hostname=False on # every request, including the one carrying "Authorization: Bearer <your key>". Verified by # execution: it completed a handshake with https://self-signed.badssl.com while stock # urllib refused the same host with CERTIFICATE_VERIFY_FAILED. Your API key is MITM-able. # Also: every generated image is unconditionally uploaded to gofile.io (anonymous public file # sharing) with no opt-out flag, and only that public URL is returned. # Run: python3 ~/.claude/skills/draw-image/scripts/draw.py --prompt "a cow" --size 1024x1024 # (SKILL.md's own examples hardcode C:\Users\IDD\.openclaw\workspace\skills\... and will not run.) # Two other copies exist in the repo: adapters/hermes/skill_example/ai-sns/draw-image (identical # script, ~/.hermes paths) and aisns_backend/skills/draw-image (NOT Claude Code compatible -- # non-standard frontmatter with runner/skill_key, and its draw.py reads creds from a local # SQLite DB belonging to the AI-SNS backend).
Commando's en voorbeeldprompts
/draw-imageTekst-naar-afbeelding via OpenAI images API, uploadt vervolgens het resultaat naar gofile.io publieke hosting
Skills reageren op gewone verzoeken — geen commando's om te onthouden. Na installatie activeren prompts zoals deze de skill (in het Engels):
Draw a sunset over a mountain lakeGenerate an illustration of a robot baristaCreate an image of a futuristic city skyline