mariannioliveira/doctorconteudo/image-generator
Claude Code and agent skill by mariannioliveira/doctorconteudo
- community
Checking that the SKILL.md file is still in the repository.
Generates images via Openrouter API using AI image models. Supports two modes: test (cheap model for iteration) and production (high-quality model for final output). Handles prompt construction, API calls, base64 decoding, and file saving. Supports reference images (logos, mascots) for brand-consistent generation.
Install
npx vskill@latest install mariannioliveira/doctorconteudo/image-generatorSKILL.md
The same SKILL.md was published earlier as workest-bootstrap-owner/squads100/image-generator.
Image Generator
When to use
Use the Image Generator when you need to create visual assets from text prompts. This skill calls the Openrouter API with AI image generation models and saves the resulting images locally.
IMPORTANT: Think twice before generating images. Image generation costs money and takes time. Before generating:
- Check if a suitable image already exists in the squad's assets folder
- Check if a web search could find a free/open image that works
- Consider if the image is truly necessary for the content quality
- Only generate when no existing alternative is good enough
- Generate only what you need — never batch-generate "test variations". One image is enough to validate a concept.
Modes
Test mode (--mode test)
- Model:
sourceful/riverflow-v2-fast - When to use: During iteration, testing layouts, checking composition, reviewing concepts
- Cost: ~R$0.01-0.02 per image (very low)
- Quality: Good enough for layout validation, not for final output
Production mode (--mode production)
- Model:
google/gemini-3.1-flash-image-preview - When to use: Only when generating the final images that will be published or delivered
- Cost: ~R$0.07-0.10 per image
- Quality: High quality, suitable for social media and publishing
Default mode is `test`. Only switch to production when the user has approved the layout/composition and you are generating the final deliverable images.
Instructions
Single image generation
With a reference image (logo, mascot, brand asset)
Use --reference to send a local image to the model as visual context. The model will incorporate the referenced image (e.g., a logo or mascot) into the generated output.
Supported reference formats: PNG, JPEG, WEBP, GIF.
Batch generation
The batch JSON file should contain:
Each item can optionally include a "reference": "path/to/ref.png" field.
Prompt guidelines
- Be specific about composition, lighting, style, and mood
- Specify aspect ratio or orientation when relevant (e.g., "portrait 3:4", "landscape 16:9")
- Include "hyper realistic, 4K quality" for photographic styles
- Include "clean composition" to avoid cluttered outputs
- Avoid requesting text in images — AI models struggle with text rendering
Cost awareness
- Each production image costs approximately R$0.07-0.10
- Each test image costs approximately R$0.01-0.02
- A typical carousel with 8 images costs ~R$0.60-0.80 in production mode
- Always use test mode first, then regenerate only the approved concepts in production mode
- When testing, generate 1 image only — not 3, not 5, just 1
Available operations
- Single generation — Generate one image from a text prompt
- Batch generation — Generate multiple images from a JSON batch file
- Mode selection — Choose between test (cheap) and production (high-quality) models
- Reference image — Send a logo/mascot/brand asset as visual context for the generation
Error handling
- If
OPENROUTER_API_KEYis not set, the script exits with an error message. Set it in your.envfile or environment. - If the API returns an error, the script prints the error code and body, then exits with code 1.
- If no image is found in the API response, the script reports which model was used and exits with code 1.
- For batch mode, partial failures are reported with a success count summary.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/image-generator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mariannioliveira/doctorconteudo/image-generator)