gemini-skill

gemini-skill is a skill for Claude Code, Codex from WJZ-P/gemini-skill. It costs 98 tokens per session (2,057 once invoked), scanned A, original, MIT.

A skill that uses the Gemini website, Google's AI assistant, for conversations and image generation. It defines how the assistant should choose tools and handle long-running requests.

In plain words
What is it for?
Use it when someone asks to chat with Gemini or create an image, including requests mentioning Nano Banana. It covers tool selection, browser access, progress updates, and saving results.
Why use it?
It prevents conflicting browser sessions and makes the required way of using Gemini clear. It also sets rules for waiting and reporting results.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it when someone asks to chat with Gemini or create an image, including requests mentioning Nano Banana. It covers tool selection, browser access, progress updates, and saving results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wjz-p/gemini-skill/gemini-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add WJZ-P/gemini-skill --skill gemini-skill
Clone the repo
git clone --depth 1 https://github.com/WJZ-P/gemini-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gemini-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/wjz-p/gemini-skill/gemini-skill/github.svg)](https://agentmods.dev/skills/wjz-p/gemini-skill/gemini-skill)
Your own site
<a href="https://agentmods.dev/skills/wjz-p/gemini-skill/gemini-skill"><img src="https://agentmods.dev/badge/skills/wjz-p/gemini-skill/gemini-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gemini-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/wjz-p/gemini-skill/gemini-skill"><img src="https://agentmods.dev/badge/skills/wjz-p/gemini-skill/gemini-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,057 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.02057
Opus 5 $0.00049 $0.01028
Sonnet 5 $0.00020 $0.00411
Haiku 4.5 $0.00010 $0.00206

Measured 9d ago against content hash b4c6806def47, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

gemini-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

SKILL.md · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gemini Skill

⚠️ 操作优先级(必须遵守)

与 Gemini 的一切交互,按以下优先级选择方式:

  1. 🥇 首选:调用 MCP 工具 — 直接调用本 Skill 暴露的 MCP 工具完成操作,覆盖绝大多数场景
  2. 🥈 次选:运行 Skill 脚本 — 当 MCP 工具无法满足需求时,可运行本 Skill 项目中提供的脚本来完成
  3. 🥉 最次:连接 Skill 管理的浏览器 — 仅当前两种方式都无法解决时,可通过 gemini_browser_info 获取 CDP 连接信息,主动连接到本 Skill 管理的浏览器进行操作。此方式必须先征得用户同意

绝对禁止:自行启动新的浏览器实例访问 Gemini 页面(如使用 OpenClaw 浏览器、另起 Puppeteer 等),这会导致会话冲突。

浏览器 Daemon 未运行时 MCP 工具会自动拉起,无需任何手动操作。

📡 进度同步 & 长耗时工具规则

MCP 工具调用(尤其是生图、等待回复等)可能耗时较长(60~180 秒)。必须遵守以下规则:

  • 本 Skill 所有 MCP 工具均为同步阻塞调用,会等到最终结果才返回。不存在"中间状态"需要轮询。
  • 调用长耗时工具时,timeoutMs 必须设为 ≥180000(3 分钟),避免传输层提前超时截断。
  • 禁止在未收到工具最终返回前结束对话或向用户报告"还在运行"/"工具超时"。
  • 每隔 15~30 秒向用户发送一条进度消息(如"正在等待 Gemini 生成图片…已等待 30 秒…"),保持反馈。
  • 拿到最终结果后立即回传产物(文件路径)或报告错误,不得遗漏。
  • fullSize 模式失败,可降级重试 fullSize=false(预览图模式更稳定)。

触发关键词

  • 生图任务生图绘图海报nano bananananobananaimage generation生成图片
  • 若请求含糊,先确认用户是否需要生图

使用方式

本 Skill 通过 MCP Server 暴露工具,AI 直接调用即可。

浏览器启动、会话管理、图片提取、文件保存等流程已全部封装在工具内部。

⚠️ 强制规则

AI 必须始终通过 MCP 工具完成所有操作。

禁止绕过 MCP 自行编写临时脚本(如 node -e "..." 或创建 .js 临时文件)来 import / require 本项目导出的函数(如 createGeminiSessioncreateOps 等)。

如果 MCP 工具确实无法满足当前需求,AI 必须先向用户说明原因并获得明确同意, 才能编写临时脚本调用底层 API。未经用户同意,一律禁止。

可用工具

核心生图(封装完整流程):

工具名 说明 入参
gemini_generate_image 完整生图流程:新建会话→发prompt→等待→提取图片→保存本地(耗时约 60~120 秒) promptnewSession(默认false),referenceImages(参考图路径数组),fullSize(默认true,高清原图;false则预览图),timeout(默认120000ms)

会话管理:

工具名 说明 入参
gemini_new_chat 新建一个空白对话
gemini_temp_chat 进入临时对话模式(不保留历史记录)

模型切换:

工具名 说明 入参
gemini_switch_model 切换 Gemini 模型 modelpro / quick / think

文本对话:

工具名 说明 入参
gemini_send_message 发送文本消息并等待回答完成,直接返回 Gemini 的回复文本 messagetimeout(默认120000ms)

图片操作:

工具名 说明 入参
gemini_upload_images 上传图片到输入框(仅上传不发送,可配合 send_message) images(路径数组)
gemini_get_images 获取会话中所有已加载图片的元信息
gemini_extract_image 提取指定图片的 base64 并保存到本地 imageUrl(从 get_images 获取)
gemini_download_full_size_image 下载完整尺寸的高清图片,默认最新一张,可指定索引 index(可选,从0开始,从旧到新)
gemini_share_latest_image 为图片创建公开分享链接并直接返回链接,默认最新一张 index(可选),timeoutcopyToClipboardcloseDialog

Read the full file on GitHub · 164 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 164 lines · 98 tokens per session scan A b4c6806def47

Subscribe to this mod's changes

gemini-skill is a skill published in the GitHub repository WJZ-P/gemini-skill (832 stars, last pushed 1mo ago), licensed MIT. It adds 98 tokens to every session and 2,057 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

notebooklm

This skill should be used when the user wants to query their Google NotebookLM notebooks for citation-backed, source-grounded answers, or manage notebooks, sources, and Studio content (audio, report, video, infographic, presentation, data table, flashcards, quiz, mind map). It drives the @roomi-fields/notebooklm-mcp…

roomi-fields/notebooklm-mcp · 118 tokens

video-perception

Use when the user mentions a video file (.mp4, .mov, .avi, .mkv, .webm), a YouTube URL, asks to watch/analyze/review a video, or references video content in conversation.

jordanrendric/claude-video-vision · 51 tokens

image-generation

Optimizes image generation prompts using Subject-Context-Style structure. Use this skill when generating images, creating illustrations, photos, visual assets, editing images, or crafting prompts for any image generation model.

shinpr/mcp-image · 43 tokens

gemini-image-generator

Use when generating professional posed product images for e-commerce using Gemini AI with optimized prompts.

oyi77/1ai-skills · 21 tokens

ffmpeg-production

FFmpeg video/audio processing — conversion, scaling, compression, trimming, concatenation, AI post-processing. Not for audio ducking/voice mixing (tts-production) or Remotion rendering.

Galbaz1/video-research-mcp · 42 tokens

video-production

Orchestrate multi-clip AI video projects — style anchors, chaining patterns, frame-level QA, montage assembly. Not for video analysis, research, provider settings, or FFmpeg encoding.

Galbaz1/video-research-mcp · 41 tokens