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

image-gen图像生成器

Agent Skill

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

总安装

198

周安装

8

GitHub Stars

4

下载量

62
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/krishagel/geoffrey --skill image-gen

简介

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。

  • 适合根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。
  • 使用时需要确认输入图片、版权来源、输出格式和模型限制。
  • 涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网或文件读写。

SKILL.md

Image Generation Skill

Generate professional images, infographics, and diagrams using Google's Nano Banana 2 model (gemini-3.1-flash-image-preview).

Model Capabilities

Nano Banana 2 (released February 26, 2026):

  • Text rendering - Accurate, legible text in images
  • Google Search grounding - Real-time data (weather, stocks, etc.)
  • Subject consistency - Up to 5 characters maintained across generations
  • Multi-turn conversation - Iterative refinement
  • Up to 14 reference images - For composition and style transfer
  • Resolutions: 1K, 2K, 4K
  • Aspect ratios: 1:1, 2:3, 3:2, 4:3, 16:9, 21:9

Scripts

All scripts use Python via uv run with inline dependencies.

generate.py - Text to Image

uv run scripts/generate.py "prompt" output.png [aspect_ratio] [size]

Examples:

# Basic image
uv run scripts/generate.py "A cozy coffee shop in autumn" coffee.png

# Infographic with specific aspect ratio
uv run scripts/generate.py "Infographic explaining how neural networks work" nn.png 16:9 2K

# 4K professional image
uv run scripts/generate.py "Professional headshot, studio lighting" headshot.png 3:2 4K

edit.py - Image Editing

uv run scripts/edit.py input.png "edit instructions" output.png

Examples:

# Edit existing image
uv run scripts/edit.py photo.png "Change the background to a beach sunset" edited.png

compose.py - Multi-Image Composition

uv run scripts/compose.py "prompt" output.png --refs image1.png image2.png

Examples:

# Combine styles from multiple images
uv run scripts/compose.py "Combine these styles into a logo" logo.png --refs style1.png style2.png

Workflows

Workflows provide structured approaches for specific visual types. Each workflow follows the PAI 6-step editorial process:

  1. Extract narrative - Understand the complete story/concept
  2. Derive visual concept - Single metaphor with 2-3 physical objects
  3. Apply aesthetic - Define style, colors, mood
  4. Construct prompt - Build detailed generation instructions
  5. Generate - Execute via script
  6. Validate - Check against criteria, regenerate if needed

Available Workflows

  • infographic.md - Data visualization, statistics, explainers
  • diagram.md - Technical diagrams, flowcharts, architecture

Workflow Usage

When generating images, follow the appropriate workflow:

For Infographics

1. What data/concept needs visualization?
2. What's the key insight or takeaway?
3. Aspect ratio: 16:9 (landscape) recommended
4. Include: clear hierarchy, minimal text, supporting icons
5. Generate at 2K minimum for text clarity

For Diagrams

1. What system/process is being illustrated?
2. What are the key components and relationships?
3. Style: flat colors, clean lines, minimal detail
4. Generate at 2K for label clarity

Environment Setup

Requires GEMINI_API_KEY environment variable. This should be set from Geoffrey's secrets:

source ~/Library/Mobile\ Documents/com~apple~CloudDocs/Geoffrey/secrets/.env

Best Practices

Infographics

  • Use simple, direct prompts: "Infographic explaining how X works"
  • Model auto-includes relevant icons/logos
  • 16:9 aspect ratio works best
  • Generate at 2K+ for readable text

General

  • Multi-turn refinement: generate, then ask for specific changes
  • Reference images improve consistency
  • Be specific about style, mood, lighting
  • SynthID watermark is automatic (Google provenance)

Output Location

By default, save images to /tmp/ or user-specified paths. For persistent storage, use:

~/Library/Mobile Documents/com~apple~CloudDocs/Geoffrey/images/

⚠️ CRITICAL: Never Read Generated Images

DO NOT use the Read tool on generated images.

Why:

  • 4K images (3840x2160) are within the 8000px limit
  • 2K images (2560x1440) are also safe
  • BUT: Do not Read them - they're for user consumption, not analysis
  • For edits, use edit.py script, not Read tool

Workflow:

  1. Generate image with script
  2. Return file path to user
  3. User views the high-quality output

Limitations

  • No photorealistic humans (safety filter)
  • No copyrighted characters
  • Maximum 14 reference images for composition
  • 4K only available with Nano Banana 2 and Nano Banana Pro

Pricing

SizeCost per Image
1KFree tier / $0.04
2K$0.134
4K$0.24

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.6%
按下载量换算24

Claude

31.07%
按下载量换算19

Cursor

17.46%
按下载量换算11

Gemini CLI

10.23%
按下载量换算6

安全审计

Gen Agent Trust Hub

可疑

Socket

未通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills