questnova502/claude-skills-sync/baoyu-danger-gemini-web
Claude Code and agent skill by questnova502/claude-skills-sync
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install questnova502/claude-skills-sync/baoyu-danger-gemini-webSKILL.md
Gemini Web Client
Supports:
- Text generation
- Image generation (download + save)
- Reference images for vision input (attach local images)
- Multi-turn conversations via persisted
--sessionId
Script Directory
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
- Determine this SKILL.md file's directory path as
SKILL_DIR - Script path =
${SKILL_DIR}/scripts/<script-name>.ts - Replace all
${SKILL_DIR}in this document with the actual path
Script Reference:
| Script | Purpose | |
|---|---|---|
scripts/main.ts | CLI entry point for text/image generation | |
scripts/gemini-webapi/* | TypeScript port of gemini_webapi (GeminiClient, types, utils) |
⚠️ Disclaimer (REQUIRED)
Before using this skill, the consent check MUST be performed.
Consent Check Flow
Step 1: Check consent file
Step 2: If consent exists and accepted: true with matching disclaimerVersion: "1.0":
Print warning and proceed:
Step 3: If consent file doesn't exist or disclaimerVersion mismatch:
Display disclaimer and ask user:
Use AskUserQuestion tool with options:
- Yes, I accept - Continue and save consent
- No, I decline - Exit immediately
Step 4: On acceptance, create consent file:
Step 5: On decline, output message and stop:
Quick start
Commands
Text generation
Image generation
Vision input (reference images)
Output formats
Options
| Option | 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) | |
--reference <files...>, --ref <files...> | Reference images for vision input | |
--sessionId <id> | Session ID for multi-turn conversation (agent generates unique ID) | |
--list-sessions | List saved sessions (max 100, sorted by update time) | |
--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 |
CLI note: scripts/main.ts supports text generation, image generation, reference images (--reference/--ref), and multi-turn conversations via --sessionId.
Models
gemini-3-pro- Default, latest modelgemini-2.5-pro- Previous generation progemini-2.5-flash- Fast, lightweight
Authentication
First run opens a browser to authenticate with Google. Cookies are cached for subsequent runs.
Supported browsers (auto-detected in order):
- Google Chrome
- Google Chrome Canary / Beta
- Chromium
- Microsoft Edge
Override with GEMINI_WEB_CHROME_PATH environment variable if needed.
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 |
Proxy Configuration
If you need a proxy to access Google services (e.g., in China), set HTTP_PROXY and HTTPS_PROXY environment variables before running:
Note: Environment variables must be set inline with the command. Shell profile settings (e.g., .bashrc) may not be inherited by subprocesses.
Examples
Generate text response
Generate image
Get JSON output for parsing
Generate image from prompt files
Multi-turn conversation
Session files are stored in ~/Library/Application Support/baoyu-skills/gemini-web/sessions/<id>.json and contain:
id: Session IDmetadata: Gemini chat metadata for continuationmessages: Array of{role, content, timestamp, error?}createdAt,updatedAt: Timestamps
Extension Support
Custom configurations via EXTEND.md.
Check paths (priority order):
.baoyu-skills/baoyu-danger-gemini-web/EXTEND.md(project)~/.baoyu-skills/baoyu-danger-gemini-web/EXTEND.md(user)
If found, load before workflow. Extension content overrides defaults.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/baoyu-danger-gemini-web/SKILL.md
Popularity
- Repository stars
- 3
- Repository forks
- 4
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 15 Apr 2026, 6 months ago.
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/questnova502/claude-skills-sync/baoyu-danger-gemini-web)