generate-image
Pass
Audited by Gen Agent Trust Hub on Apr 12, 2026
Risk Level: SAFE
Full Analysis
- [COMMAND_EXECUTION]: The skill instructs the agent to execute a local Python script (
scripts/generate_image.py) to interface with external AI models for image generation and editing tasks.\n- [DATA_EXFILTRATION]: The skill transmits user-provided text prompts and local image files (encoded as base64) to the OpenRouter API endpoint athttps://openrouter.ai/api/v1/chat/completions. This network activity is necessary for the skill's primary function and targets a well-known service.\n- [CREDENTIALS_UNSAFE]: The script manages authentication by reading theOPENROUTER_API_KEYfrom environment variables or a local.envfile, which is a standard and recommended practice for secret management in development environments.\n- [PROMPT_INJECTION]: The skill acts as a surface for indirect prompt injection because it processes untrusted user input that is subsequently forwarded to an external model service.\n - Ingestion points: The
promptandinput_imageparameters inscripts/generate_image.py.\n - Boundary markers: User inputs are delimited within the structured JSON payload of the API request.\n
- Capability inventory: The skill performs HTTPS POST requests to an external API and writes PNG files to the local filesystem.\n
- Sanitization: The script does not perform explicit sanitization or filtering of the user-provided prompt before transmission.
Audit Metadata