yangshun2005/openscience-cn/generate-image
- community
Checking that the SKILL.md file is still in the repository.
Generate or edit images using AI models (FLUX, Gemini). Use for general-purpose image generation including photos, illustrations, artwork, visual assets, concept art, and any image that isn't a technical diagram or schematic. For flowcharts, circuits, pathways, and technical diagrams, use the scientific-schematics skill instead.
Install
npx vskill@latest install yangshun2005/openscience-cn/generate-imageSKILL.md
Generate Image
Generate or edit a high-quality image with OpenScience's native generate_image tool. The tool keeps credentials in the trusted host and saves the returned image directly into the connected workspace.
Required route
Inside OpenScience, always call the native generate_image tool. Do not invoke scripts/generate_image.py through Bash: the native tool uses a connected Gemini or OpenRouter account and saves the result into the workspace.
Credential routing is automatic:
- A connected Gemini account is used when available.
- Otherwise, a connected user-owned OpenRouter key is used.
- Stop when neither account is connected or the selected provider rejects the request.
Never ask the user to paste a secret into chat. Direct them to Customize → Models to connect an account.
Tool contract
Call generate_image with:
prompt(required): detailed generation or editing instructions.output_path: destination in the connected workspace; defaultgenerated-image.png.input_path: existing image for an edit. Omit it entirely for a new image;
never create or pass a blank canvas, directory, . or /dev/null.
model: OpenRouter image model; defaultgoogle/gemini-3-pro-image(Nano Banana Pro).aspect_ratio: optional1:1,3:2,2:3,4:3,3:4,16:9, or9:16.
Example generation:
Example edit:
Model selection
google/gemini-3-pro-image: Nano Banana Pro; recommended for generation and editing.black-forest-labs/flux.2-pro: fast, high-quality generation and editing.black-forest-labs/flux.2-flex: cheaper generation-only alternative.
Use Nano Banana Pro unless the user requests another model or a measured iteration shows a reason to switch.
Quality workflow
- Inspect the destination document or visual context first.
- State the communication goal, content constraints, aspect ratio, and typography constraints in the prompt.
- Generate one purposeful candidate; never create filler images merely because an output slot exists.
- Open and inspect the saved image.
- Check factual content, legibility at final size, cropping, color accessibility, and unwanted invented text.
- Refine only when a concrete defect remains. Preserve requested content during edits.
For a technical architecture, method flow, pathway, or experimental diagram, load scientific-schematics and apply its publication checks while still using the native generate_image tool for the Nano Banana call.
Standalone script
scripts/generate_image.py remains a user-key helper for use outside OpenScience. It reads --api-key, OPENROUTER_API_KEY, or .env and calls public OpenRouter directly.
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 repositoryCheckingbackend/cli/skills/llm-tools/generate-image/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/yangshun2005/openscience-cn/generate-image)