Token导航 LogoToken导航TokenDH.com
图像处理需要联网github未标认证来源可访问许可证需确认审计异常

gemini-imageGemini 图像

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

428

周安装

18

GitHub Stars

165

下载量

150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gemini-image(Gemini 图像)
来源仓库:https://github.com/redf0x1/camofox-browser
仓库路径:skills/gemini-image
安装命令:
npx skills add https://github.com/redf0x1/camofox-browser --skill gemini-image
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/redf0x1/camofox-browser --skill gemini-image

简介

用于图像生成和图片编辑辅助。gemini-image 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据文本提示生成图片或处理视觉素材。
  • 通过 npx 命令从 GitHub 仓库安装使用。
  • 需确认输入图片版权和输出格式限制。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

Gemini Image Generation Skill (CLI)

Use this skill for Gemini image generation flows with CamoFox CLI commands only. Use curl only for download file retrieval from the local CamoFox download API.

1. Prerequisites

  • CamoFox server must be running on port 9377.
  • Google account with Gemini access.
  • First-time login requires email/password and 2FA approval on phone.
  • After first login, save and reuse a session profile.

2. Quick Start (Fast Path — Authenticated)

When a valid Gemini session is already saved:

All commands below assume --user gemini. Add it explicitly in multi-session scenarios.

# Load saved session and open Gemini
camofox open https://gemini.google.com/app --user gemini

# Load saved profile
camofox session load <profile-name> --user gemini

# Verify auth (check for profile avatar, no "Sign in" button)
camofox snapshot --user gemini

# Type image prompt
camofox type <prompt-ref> "your image description here" --user gemini

# Submit prompt
camofox press Enter --user gemini

# Wait for image generation to complete (15-180 seconds)
camofox wait 'mat-icon[fonticon="download"]' --timeout 180000 --user gemini

# Download the generated image
camofox click 'mat-icon[fonticon="download"]' --user gemini

# Cleanup
camofox close --user gemini

3. Authentication Flow

Step 3.1: Check Auth State

camofox open https://gemini.google.com/app --user gemini
camofox snapshot --user gemini
# Look for: "Sign in" button -> NOT authenticated
# Look for: Greeting text "Xin chào..." -> authenticated

Step 3.2: Login (if needed)

# Navigate to Google login
camofox navigate https://accounts.google.com --user gemini

# Enter email
camofox fill '[e1]="email@gmail.com"' --user gemini
# OR
camofox type e1 "email@gmail.com" --user gemini
camofox click e4 --user gemini  # Next button

# Wait for password page
camofox wait 'input[type="password"]' --user gemini
camofox snapshot --user gemini

# Enter password
camofox type e2 "password" --user gemini
camofox click e4 --user gemini  # Next button
Security Tip: For production workflows, store credentials in CamoFox Auth Vault: ``bash camofox auth save google-gemini # Follow interactive prompts to save credentials securely camofox auth load google-gemini --user gemini ``

Step 3.3: 2FA (Push Notification)

After entering password, Google may prompt 2FA:

  • Push notification: user taps "Yes" on phone app.
  • Wait for redirect:
camofox wait 'a[href*="myaccount.google.com"]' --timeout 90000 --user gemini
  • Or wait for URL change away from accounts.google.com:
camofox wait navigation --timeout 90000 --user gemini

Step 3.4: Save Session

camofox session save <profile-name> --user gemini
# Reuse next time with: camofox session load <profile-name> --user gemini

4. Image Generation

# Navigate to Gemini (if not already there)
camofox navigate https://gemini.google.com/app --user gemini

# Snapshot to find prompt input ref
camofox snapshot --user gemini
# Prompt textbox is typically the main textarea element

# Type your image description
camofox type <prompt-ref> "Generate an image of a cute red fox wearing sunglasses in digital art style" --user gemini

# Submit the prompt
camofox press Enter --user gemini

# Wait for generation to complete (15-180 seconds)
# The download button appears when generation is done
camofox wait 'mat-icon[fonticon="download"]' --timeout 180000 --user gemini

# Verify the result
camofox snapshot --user gemini
# Key refs after generation:
# - Download button (mat-icon fonticon="download")
# - Like (mat-icon fonticon="thumb_up")
# - Dislike (mat-icon fonticon="thumb_down")
# - Redo
# - Share

5. Download Generated Image

# Click download button (locale-independent CSS selector)
camofox click 'mat-icon[fonticon="download"]' --user gemini

# Check download status
camofox downloads --format json --user gemini
# Parse `downloadId` from JSON output (for example with `jq -r '.[0].id'`)

# Retrieve the file via REST API
# The click response or downloads command shows the download ID
curl -o "generated-image.png" "http://localhost:9377/downloads/<download-id>/content?userId=gemini"

# Cleanup
camofox close --user gemini

6. Tips & Best Practices

  • Session reuse: Always save profile after login. Load before each run to skip login.
  • Locale-agnostic selectors: Use mat-icon[fonticon="..."] instead of text labels.
  • Wait instead of sleep: Use camofox wait with CSS selectors, not fixed delays.
  • Re-snapshot after actions: Element refs (eN) shift after navigation/interaction.
  • Image prompts: Be descriptive; Gemini performs better with detailed prompts.
  • Rate limits: Free tier has daily image generation limits. If limit is reached, wait or switch account.

7. Error Recovery

ErrorSolution
"Sign in" still visible after session loadSession expired (24-48h). Re-login with email/password + 2FA
wait times out for download buttonImage generation may have failed. Run camofox snapshot and inspect error text
"can't create it right now"Not authenticated. Re-check auth state and login again
"Image Generation Limit Reached"Daily limit reached. Wait 24h or use another account
TAB_NOT_FOUNDTab was invalidated. Open a new tab with camofox open
type does not input textGemini may use custom editor. Fallback: camofox eval 'document.querySelector(".ql-editor").innerHTML = "prompt"'

8. Verified Test Results

  • Account: user@gmail.com (User)
  • Profile: gemini-sky (52 cookies)
  • Test prompt: Generate an image of a cute red fox wearing sunglasses in digital art style
  • Result: 8.1MB PNG (Gemini_Generated_Image_ecu3ujecu3ujecu3.png)
  • Generation time: ~30 seconds
  • Download method: click mat-icon[fonticon="download"]

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.17%
按下载量换算56

Claude

28.02%
按下载量换算42

Cursor

16.37%
按下载量换算25

Gemini CLI

10.11%
按下载量换算15

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills