baoyu-danger-gemini-web
यह क्या करती है
यह स्किल एजेंट को एक आधिकारिक API के बजाय अनौपचारिक वेब इंटरफ़ेस के ज़रिए Gemini से जोड़ती है। यह उन यूज़र्स के लिए है जो इस समझौते को स्वीकार करते हैं और Gemini के टेक्स्ट या इमेज चाहते हैं।
कब इस्तेमाल करें
- ✓जब कोई दूसरी स्किल इमेज जनरेशन बैकएंड माँगती है और आप Gemini इस्तेमाल करना चाहते हैं।
- ✓जब आप चाहते हैं कि Gemini टेक्स्ट सवालों के जवाब दे या संदर्भ इमेज के साथ काम करे।
- ✓जब आपको अपने एजेंट से Gemini के साथ कई चरणों वाली बातचीत चाहिए।
Skill का लिंक
https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-danger-gemini-web/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस प्रॉम्प्ट से Gemini के ज़रिए सूर्यास्त के समय एक लाइटहाउस की इमेज बनाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आपका एजेंट पहले जाँचता है कि आपने इस अनौपचारिक कनेक्शन की शर्तें स्वीकार की हैं, फिर आपका प्रॉम्प्ट और इमेज Gemini को भेजता है और जो बनता है वह लौटाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Gemini Web Client
User Input Tools
When this skill prompts the user, follow this tool-selection rule (priority order):
- Prefer built-in user-input tools exposed by the current agent runtime — e.g.,
AskUserQuestion,request_user_input,clarify,ask_user, or any equivalent. - Fallback: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.
- Batching: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.
Concrete AskUserQuestion references below are examples — substitute the local equivalent in other runtimes.
Script Directory
{baseDir} = this SKILL.md's directory; scripts are at {baseDir}/scripts/<script-name>.ts. Resolve ${BUN_X}: bun if installed; else npx -y bun; else suggest installing bun. Replace {baseDir} and ${BUN_X} with actual values.
| Script | Purpose |
|---|---|
scripts/main.ts |
CLI entry point for text/image generation |
scripts/gemini-webapi/* |
TypeScript port of gemini_webapi (GeminiClient, types, utils) |
Consent Check (REQUIRED)
Before first use, verify user consent for reverse-engineered API usage. Consent file:
- macOS:
~/Library/Application Support/baoyu-skills/gemini-web/consent.json - Linux:
~/.local/share/baoyu-skills/gemini-web/consent.json - Windows:
%APPDATA%\baoyu-skills\gemini-web\consent.json
- Check if consent file exists with
accepted: trueanddisclaimerVersion: "1.0" - If valid consent exists → print warning with
acceptedAtdate, proceed - If no consent → show disclaimer, ask user via
AskUserQuestion:- "Yes, I accept" → create consent file with ISO timestamp, proceed
- "No, I decline" → output decline message, stop
- Consent file format:
{"version":1,"accepted":true,"acceptedAt":"<ISO>","disclaimerVersion":"1.0"}
Preferences (EXTEND.md)
First found wins:
| Priority | Path | Scope |
|---|---|---|
| 1 | .baoyu-skills/baoyu-danger-gemini-web/EXTEND.md |
Project |
| 2 | ${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-danger-gemini-web/EXTEND.md |
XDG |
| 3 | $HOME/.baoyu-skills/baoyu-danger-gemini-web/EXTEND.md |
User home |
If none found, use defaults. EXTEND.md supports: default model, proxy settings, custom data directory.
Usage
${BUN_X} {baseDir}/scripts/main.ts "Your prompt" # text
${BUN_X} {baseDir}/scripts/main.ts --prompt "Your prompt" --model gemini-3-flash
${BUN_X} {baseDir}/scripts/main.ts --prompt "A cute cat" --image cat.png # image
${BUN_X} {baseDir}/scripts/main.ts --promptfiles system.md content.md --image out.png
${BUN_X} {baseDir}/scripts/main.ts --prompt "Describe this" --reference image.png # vision input
${BUN_X} {baseDir}/scripts/main.ts --prompt "Create variation" --reference a.png --image out.png
${BUN_X} {baseDir}/scripts/main.ts "Remember: 42" --sessionId session-abc # multi-turn
${BUN_X} {baseDir}/scripts/main.ts "What number?" --sessionId session-abc
${BUN_X} {baseDir}/scripts/main.ts "Hello" --json
Options
| Option | Description |
|---|---|
--prompt, -p |
Prompt text |
--promptfiles |
Read prompt from files (concatenated) |
--model, -m |
Model (see Models; default gemini-3-pro) |
--image [path] |
Generate image (default: generated.png) |
--reference, --ref |
Reference images for vision input |
--sessionId |
Session ID for multi-turn conversation |
--list-sessions |
List saved sessions |
--json |
Output as JSON |
--login |
Refresh cookies, then exit |
--cookie-path |
Custom cookie file path |
--profile-dir |
Chrome profile directory |
Models
| Model | Description |
|---|---|
gemini-3-pro |
Default, latest 3.0 Pro |
gemini-3-flash |
Fast, lightweight 3.0 Flash |
gemini-3-flash-thinking |
3.0 Flash with thinking |
gemini-3.1-pro-preview |
3.1 Pro preview (empty header, auto-routed) |
Authentication
First run opens a browser for Google auth; cookies are cached. Force refresh: --login. Override browser: GEMINI_WEB_CHROME_PATH. Auto-detected browsers: Chrome, Chrome Canary/Beta, Chromium, Edge.
Without an explicit profile dir, cookie refresh may reuse an already-running local Chrome/Chromium debugging session tied to a standard user-data d
अक्सर पूछे जाने वाले सवाल
इसके लिए सहमति क्यों चाहिए?
स्किल एक reverse-engineered API इस्तेमाल करती है, इसलिए पहली बार इस्तेमाल से पहले वह उसकी शर्तें स्वीकार करने को कहती है।
क्या यह मेरी दी हुई इमेज संभाल सकती है?
हाँ। यह इमेज इनपुट के लिए संदर्भ इमेज सपोर्ट करती है, और प्रॉम्प्ट से इमेज जनरेशन भी।
क्या यह आधिकारिक Gemini API है?
नहीं। स्किल एक reverse-engineered वेब कनेक्शन इस्तेमाल करती है, आधिकारिक API नहीं।
जानकारी
लेखक का मूल विवरण
Generates images and text via reverse-engineered Gemini Web API. Supports text generation, image generation from prompts, reference images for vision input, and multi-turn conversations. Use when other skills need image generation backend, or when user requests "generate image with Gemini", "Gemini text generation", or needs vision-capable AI generation.
repo: JimLiu/baoyu-skills
लोकप्रियता
- GitHub स्टार
- 27k
- रैंकिंग में स्थान
- #9952
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
release-skills
27kयह आपके एजेंट को किसी भी प्रोजेक्ट के रिलीज़ में मार्गदर्शन देती है: वर्ज़न बढ़ाना, changelog अपडेट करना और GitHub release या tag प्रकाशित करना।
baoyu-article-illustrator
27kयह आपके एजेंट को लेख में चित्र जोड़ने में मदद करती है, उन जगहों को खोजकर जहाँ विज़ुअल चाहिए, और एक ही शैली में इमेज बनाकर।
baoyu-comic
27kयह आपके एजेंट को पैनल, कला शैलियों और लहजों के साथ शैक्षिक कॉमिक बनाना दिखाती है, जैसे जीवनी या ट्यूटोरियल।
baoyu-compress-image
27kयह आपके एजेंट को इमेज फ़ाइलों को WebP या PNG में बदलकर छोटा करने देती है, स्वचालित टूल चयन के साथ, ताकि वे तेज़ी से लोड हों।
मिलती-जुलती skills
writing-skills
311kयह आपके एजेंट को नई स्किल लिखना और हर एक को पहले टेस्ट करना सिखाती है, यह जांचते हुए कि स्किल सच में उसका व्यवहार बदलती है।
writing-for-agents
310kAI एजेंट्स के लिए साफ़ निर्देश कैसे लिखें, यह समझाती है, जिसमें स्किल, AGENTS.md और CLAUDE.md फ़ाइलें शामिल हैं, ताकि एजेंट अनुमानित ढंग से व्यवहार करे।
bengali-nlp
280kयह आपके एजेंट को Bengali text प्रोसेस करने देता है। यह भाषा को समझने और उसके text को normalize करने जैसी उसकी खास बातों को संभालने में मदद करता है।