baoyu-gemini-web
Image generation skill using Gemini Web. Generates images from text prompts via Google Gemini. Also supports text generation. Use as the image generation backend for other skills like cover-image, xhs-images, article-illustrator.
Best use case
baoyu-gemini-web is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Image generation skill using Gemini Web. Generates images from text prompts via Google Gemini. Also supports text generation. Use as the image generation backend for other skills like cover-image, xhs-images, article-illustrator.
Image generation skill using Gemini Web. Generates images from text prompts via Google Gemini. Also supports text generation. Use as the image generation backend for other skills like cover-image, xhs-images, article-illustrator.
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "baoyu-gemini-web" skill to help with this workflow task. Context: Image generation skill using Gemini Web. Generates images from text prompts via Google Gemini. Also supports text generation. Use as the image generation backend for other skills like cover-image, xhs-images, article-illustrator.
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/baoyu-gemini-web/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How baoyu-gemini-web Compares
| Feature / Agent | baoyu-gemini-web | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Image generation skill using Gemini Web. Generates images from text prompts via Google Gemini. Also supports text generation. Use as the image generation backend for other skills like cover-image, xhs-images, article-illustrator.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Gemini Web Client ## Quick start ```bash npx -y bun scripts/main.ts "Hello, Gemini" npx -y bun scripts/main.ts --prompt "Explain quantum computing" npx -y bun scripts/main.ts --prompt "A cute cat" --image cat.png npx -y bun scripts/main.ts --promptfiles system.md content.md --image out.png ``` ## Commands ### Text generation ```bash # Simple prompt (positional) npx -y bun scripts/main.ts "Your prompt here" # Explicit prompt flag npx -y bun scripts/main.ts --prompt "Your prompt here" npx -y bun scripts/main.ts -p "Your prompt here" # With model selection npx -y bun scripts/main.ts -p "Hello" -m gemini-2.5-pro # Pipe from stdin echo "Summarize this" | npx -y bun scripts/main.ts ``` ### Image generation ```bash # Generate image with default path (./generated.png) npx -y bun scripts/main.ts --prompt "A sunset over mountains" --image # Generate image with custom path npx -y bun scripts/main.ts --prompt "A cute robot" --image robot.png # Shorthand npx -y bun scripts/main.ts "A dragon" --image=dragon.png ``` ### Output formats ```bash # Plain text (default) npx -y bun scripts/main.ts "Hello" # JSON output npx -y bun scripts/main.ts "Hello" --json ``` ## Options | Option | Short | Description | |--------|-------|-------------| | `--prompt <text>` | `-p` | Prompt text | | `--promptfiles <files...>` | | Read prompt from files (concatenated in order) | | `--model <id>` | `-m` | Model: gemini-3-pro (default), gemini-2.5-pro, gemini-2.5-flash | | `--image [path]` | | Generate image, save to path (default: generated.png) | | `--json` | | Output as JSON | | `--login` | | Refresh cookies only, then exit | | `--cookie-path <path>` | | Custom cookie file path | | `--profile-dir <path>` | | Chrome profile directory | | `--help` | `-h` | Show help | ## Models - `gemini-3-pro` - Default, latest model - `gemini-2.5-pro` - Previous generation pro - `gemini-2.5-flash` - Fast, lightweight ## Authentication First run opens Chrome to authenticate with Google. Cookies are cached for subsequent runs. ```bash # Force cookie refresh npx -y bun scripts/main.ts --login ``` ## Environment variables | Variable | Description | |----------|-------------| | `GEMINI_WEB_DATA_DIR` | Data directory | | `GEMINI_WEB_COOKIE_PATH` | Cookie file path | | `GEMINI_WEB_CHROME_PROFILE_DIR` | Chrome profile directory | | `GEMINI_WEB_CHROME_PATH` | Chrome executable path | ## Examples ### Generate text response ```bash npx -y bun scripts/main.ts "What is the capital of France?" ``` ### Generate image ```bash npx -y bun scripts/main.ts "A photorealistic image of a golden retriever puppy" --image puppy.png ``` ### Get JSON output for parsing ```bash npx -y bun scripts/main.ts "Hello" --json | jq '.text' ``` ### Generate image from prompt files ```bash # Concatenate system.md + content.md as prompt npx -y bun scripts/main.ts --promptfiles system.md content.md --image output.png ```
Related Skills
gemini
Use when the user asks to run Gemini CLI for code review, plan review, or big context (>200k) processing. Ideal for comprehensive analysis requiring large context windows. Uses Gemini 3 Pro by default for state-of-the-art reasoning and coding.
nerdzao-elite-gemini-high
Modo Elite Coder + UX Pixel-Perfect otimizado especificamente para Gemini 3.1 Pro High. Workflow completo com foco em qualidade máxima e eficiência de tokens.
gemini-api-dev
Use this skill when building applications with Gemini models, Gemini API, working with multimodal content (text, images, audio, video), implementing function calling, using structured outputs, or needing current model specifications. Covers SDK usage (google-genai for Python, @google/genai for JavaScript/TypeScript), model selection, and API capabilities.
baoyu-xhs-images
Xiaohongshu (Little Red Book) infographic series generator with multiple style options. Breaks down content into 1-10 cartoon-style infographics. Use when user asks to create "小红书图片", "XHS images", or "RedNote infographics".
baoyu-url-to-markdown
Fetch any URL and convert to markdown using Chrome CDP. Supports two modes - auto-capture on page load, or wait for user signal (for pages requiring login). Use when user wants to save a webpage as markdown.
baoyu-slide-deck
Generate professional slide deck images from content. Creates comprehensive outlines with style instructions, then generates individual slide images. Use when user asks to "create slides", "make a presentation", "generate deck", or "slide deck".
baoyu-post-to-x
Post content and articles to X (Twitter). Supports regular posts with images and X Articles (long-form Markdown). Uses real Chrome with CDP to bypass anti-automation.
baoyu-post-to-wechat
Post content to WeChat Official Account (微信公众号). Supports both article posting (文章) and image-text posting (图文).
baoyu-markdown-to-html
Converts Markdown to styled HTML with WeChat-compatible themes. Supports code highlighting, math, PlantUML, footnotes, alerts, and infographics. Use when user asks for "markdown to html", "convert md to html", "md转html", or needs styled HTML output from markdown.
baoyu-image-gen
AI image generation with OpenAI and Google APIs. Supports text-to-image, reference images, aspect ratios, and parallel generation (recommended 4 concurrent subagents). Use when user asks to generate, create, or draw images.
baoyu-format-markdown
Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks. Use when user asks to "format markdown", "beautify article", "add formatting", or improve article layout. Outputs to {filename}-formatted.md.
baoyu-danger-x-to-markdown
Convert X (Twitter) tweet or article URL to markdown. Uses reverse-engineered X API (private). Requires user consent before use.