Agent skill

Gemini Skill

by WJZ-P in WJZ-P/gemini-skill

通过 Gemini 官网(gemini.google.com)执行生图、对话等操作。用户提到"生图/画图/绘图/nano banana/nanobanana/生成图片"等关键词时触发。操作方式分三级优先级:首选 MCP 工具 → 次选 Skill 脚本 → 最次连接 Skill 浏览器手动操作(需用户授权)。禁止自行启动外部浏览器访问 Gemini。

MITAuto-check passedAgent Workflows

Install Gemini Skill

skills CLI
$ npx skills add WJZ-P/gemini-skill --skill gemini-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install WJZ-P/gemini-skill gemini-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gemini-skill
GitHub stars
832
Token cost
~1.1k tokens
SKILL.md length
297 words
Files
40 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

通过 Gemini 官网(gemini.google.com)执行生图、对话等操作。用户提到"生图/画图/绘图/nano banana/nanobanana/生成图片"等关键词时触发。操作方式分三级优先级:首选 MCP 工具 → 次选 Skill 脚本 → 最次连接 Skill 浏览器手动操作(需用户授权)。禁止自行启动外部浏览器访问 Gemini。

  • Works in 3 steps: 🥇 首选:调用 MCP 工具 — 直接调用本 Skill 暴露的 MCP… → 🥈 次选:运行 Skill 脚本 — 当 MCP 工具无法满足需求时,可运行本… → 🥉 最次:连接 Skill 管理的浏览器 —…
  • Tasks that involve MCP servers
  • SKILL.md covers ⚠️ 操作优先级(必须遵守), 📡 进度同步 & 长耗时工具规则, 触发关键词 and 使用方式, plus 3 more sections
  • Calls npm and node

What it does

Gemini Skill is an agent skill from WJZ-P/gemini-skill. 通过 Gemini 官网(gemini.google.com)执行生图、对话等操作。用户提到"生图/画图/绘图/nano banana/nanobanana/生成图片"等关键词时触发。操作方式分三级优先级:首选 MCP 工具 → 次选 Skill 脚本 → 最次连接 Skill 浏览器手动操作(需用户授权)。禁止自行启动外部浏览器访问 Gemini。

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 41 other files, including reference files (for example `ATLAS_CLOUD_PROVIDER_REVIEW.md`, `README.en.md` and `README.md`).

It sits in Agent Workflows, covering MCP servers and Image generation. It works with Google Gemini and Model Context Protocol. The repository describes itself as: gemini drawing MCP & skill through browser, can be used in openclaw or any agent that supports MCP. Gemini画图 MCP和sill,支持龙虾或任何agent使用٩(๑◡<๑)۶. The licence is MIT.

When your agent uses it

  • Tasks that involve MCP servers
  • Tasks that involve Image generation

Example prompts

  • “生图/画图/绘图/nano banana/nanobanana/生成图片”
  • “/gemini-skill”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

Read from SKILL.md and the folder at commit 333e818. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gemini Skill loads about 1.1k tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 297 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from WJZ-P/gemini-skill at commit 333e818, republished under its MIT licence (© WJZ-P). 297 words, ~1,069 tokens.

Download SKILL.mdSave it as .claude/skills/gemini-skill/SKILL.md (or your agent's skills folder). This skill also uses 39 other files; get the full folder from GitHub.
name
gemini-skill
description
通过 Gemini 官网(gemini.google.com)执行生图、对话等操作。用户提到"生图/画图/绘图/nano banana/nanobanana/生成图片"等关键词时触发。操作方式分三级优先级:首选 MCP 工具 → 次选 Skill 脚本 → 最次连接 Skill 浏览器手动操作(需用户授权)。禁止自行启动外部浏览器访问 Gemini。

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 banana、nanobanana、image generation、生成图片
  • 若请求含糊,先确认用户是否需要生图

使用方式

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

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

⚠️ 强制规则

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

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

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

可用工具

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

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

会话管理:

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

模型切换:

工具名说明入参
gemini_switch_model切换 Gemini 模型model(pro / quick / think)

文本对话:

工具名说明入参
gemini_send_message发送文本消息并等待回答完成,直接返回 Gemini 的回复文本message,timeout(默认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(可选),timeout,copyToClipboard,closeDialog

文字回复提取:

工具名说明入参
gemini_get_all_text_responses获取会话中所有文字回复(仅文字,不含图片)无
gemini_get_latest_text_response获取最新一条文字回复无

登录状态:

工具名说明入参
gemini_check_login检查是否已登录 Google 账号无

页面导航:

工具名说明入参
gemini_navigate_to打开指定的 Gemini 页面 URL(如历史会话链接),仅允许 gemini.google.com 域名url(目标 URL),timeout(默认30000ms)

诊断 & 恢复:

工具名说明入参
gemini_probe探测页面各元素状态(输入框、按钮、模型等)无
gemini_reload_page刷新页面(卡住或异常时使用)timeout(默认30000ms)
gemini_browser_info获取浏览器连接信息(CDP 端口、wsEndpoint 等)无
典型用法

快速生图(一步到位):

  1. 调用 gemini_generate_image,传入 prompt → 返回本地图片路径

生图并拿分享链接:

  1. 调用 gemini_generate_image 生成图片
  2. 调用 gemini_share_latest_image 返回公开链接

灵活组合(细粒度控制):

  1. gemini_new_chat — 新建会话
  2. gemini_switch_model → pro — 切换到高质量模型
  3. gemini_upload_images — 上传参考图
  4. gemini_send_message — 发送描述词
  5. gemini_get_images → gemini_extract_image — 获取并保存图片

排障:

  1. gemini_probe — 看看页面元素有没有就位
  2. gemini_reload_page — 页面卡了就刷新
  3. gemini_browser_info — 获取 CDP 信息自行连接调试

MCP 客户端配置

json
{
  "mcpServers": {
    "gemini": {
      "command": "node",
      "args": ["<项目绝对路径>/src/mcp-server.js"]
    }
  }
}

也可通过 npm run mcp 手动启动。

失败处理

工具内部已包含重试逻辑。若仍然失败,返回值的 isError: true 和错误信息会告知原因:

  • 生成超时 — 建议用户简化描述词后重试
  • Daemon 未启动 — 工具会自动拉起,若仍失败可手动 npm run daemon
  • 页面异常 — 可调用 gemini_browser_info 查看浏览器状态排查

参考

  • 详细执行与回退:references/gemini-flow.md
  • 关键词与路由:references/intent-routing.md

© WJZ-P, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 39 other files (references) in the repository root of WJZ-P/gemini-skill.

  • SKILL.md
  • .env
  • .env.example
  • .gitignore
  • ATLAS_CLOUD_PROVIDER_REVIEW.md
  • LICENSE
  • README.en.md
  • README.md
  • markdown/Bloome.jpg
  • markdown/atlas-cloud-provider.png
  • markdown/bloome-home.png
  • markdown/example.png
  • markdown/example2.png
  • markdown/gemini-color.svg
  • markdown/home.png
  • package-lock.json
  • package.json
  • references/gemini-flow.md
  • references/intent-routing.md
  • … and 21 more

Open the folder on GitHubat commit 333e818

Compare with similar skills

Gemini Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gemini Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gemini Skill this skillWJZ-P/gemini-skill832—~1.1kAutomated safety check: PassMIT
ComfyComfy-Org/comfy-skills222—~1.4kAutomated safety check: PassMIT
Kst AI Assets Usagepivoshenko/kasetto208—~2.1kAutomated safety check: PassCustom licence
Documentation Serverandrea9293/mcp-documentation-server343—~2.3kAutomated safety check: PassMIT
Migrate To Antigravityyuting0624/antigravity-for-claude-code375—~2kAutomated safety check: PassMIT
Setupguaardvark/guaardvark257—~1.2kAutomated safety check: PassMIT

Similar skills

  • Comfy

    Comfy-Org/comfy-skills

    Generate images, video, audio, and 3D with Comfy Cloud — search hundreds of models and workflow templates, run custom ComfyUI workflows, and manage generation jobs through the hosted Comfy Cloud MCP…

    222 GitHub stars~1.4k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Kst AI Assets Usage

    pivoshenko/kasetto

    Report which kasetto-installed skills and MCP servers are actually being used across the AI agents on this machine, and render a branded HTML dashboard of the result.

    208 GitHub stars~2.1k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Documentation Server

    andrea9293/mcp-documentation-server

    A skill your agent uses when you need to store, retrieve, search, or manage documents in a local knowledge base with semantic search and hybrid (vector + full-text) retrieval.

    343 GitHub stars~2.3k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Migrate To Antigravity

    yuting0624/antigravity-for-claude-code

    Move an existing Claude Code setup onto the Antigravity CLI (agy) — user skills, CLAUDE.md, auto-memory, MCP servers, installed plugins, permissions and trusted workspaces.

    375 GitHub stars~2k tokensUpdated 5 days ago
    Agent WorkflowsAuto-check passed
  • Setup

    guaardvark/guaardvark

    Connect this agent to a running Guaardvark (self-hosted AI studio) and check what it can do right now.

    257 GitHub stars~1.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Gemini Agents API

    google/skills

    Official

    Manages custom Agent resources on Gemini Enterprise Agent Platform.

    21k GitHub stars~3.2k tokensUpdated today
    Agent WorkflowsAuto-check passed

Questions about Gemini Skill

What does Gemini Skill do?

通过 Gemini 官网(gemini.google.com)执行生图、对话等操作。用户提到"生图/画图/绘图/nano banana/nanobanana/生成图片"等关键词时触发。操作方式分三级优先级:首选 MCP 工具 → 次选 Skill 脚本 → 最次连接 Skill 浏览器手动操作(需用户授权)。禁止自行启动外部浏览器访问 Gemini。. Gemini Skill is an agent skill from WJZ-P/gemini-skill.

When should I use Gemini Skill?

Gemini Skill fits situations like: tasks that involve MCP servers; tasks that involve Image generation.

How do I install Gemini Skill in Claude Code?

Run `npx skills add WJZ-P/gemini-skill --skill gemini-skill -a claude-code`. Or copy the skill folder (the WJZ-P/gemini-skill repository) into .claude/skills/gemini-skill in your project. Claude Code loads it when a task matches its description.

How do I install Gemini Skill in Codex?

Run `npx skills add WJZ-P/gemini-skill --skill gemini-skill -a codex`. Or copy the skill folder (the WJZ-P/gemini-skill repository) into .agents/skills/gemini-skill in your project. Codex loads it when a task matches its description.

Can I use Gemini Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add WJZ-P/gemini-skill --skill gemini-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gemini-skill, .gemini/skills/gemini-skill, .github/skills/gemini-skill and .opencode/skills/gemini-skill in your project.

What does Gemini Skill need to run?

Going by SKILL.md and its folder, Gemini Skill needs the command-line tools its instructions call (npm and node).

Does Gemini Skill access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Gemini Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gemini Skill use?

Gemini Skill is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gemini Skill use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.

What are the alternatives to Gemini Skill?

Skills that share tags, products or a category with Gemini Skill: Comfy (Comfy-Org/comfy-skills, 222 stars), Kst AI Assets Usage (pivoshenko/kasetto, 208 stars), Documentation Server (andrea9293/mcp-documentation-server, 343 stars) and Migrate To Antigravity (yuting0624/antigravity-for-claude-code, 375 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gemini Skill?

WJZ-P (a GitHub user) maintains it in WJZ-P/gemini-skill, which has 832 GitHub stars. The repository was last updated on September 18, 2026.

Source: WJZ-P/gemini-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.