gpt-image-2
面向 GPT Image 2 的图像生成 / 编辑技能。可在 3 种环境下使用:(A) Garden 本地模式,通过 OpenAI 兼容接口直接出图并落盘;(B) Host-Native 模式,把本 Skill 当作提示词工程指引,把渲染好的 prompt 交给宿主 Agent 自带的图像工具出图;(C)…
Skill by novolei
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/novolei-gpt-image-2
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/gpt-image-2
What's inside
- Skill name
gpt-image-2- Description
- 面向 GPT Image 2 的图像生成 / 编辑技能。可在 3 种环境下使用:(A) Garden 本地模式,通过 OpenAI 兼容接口直接出图并落盘;(B) Host-Native 模式,把本 Skill 当作提示词工程指引,把渲染好的 prompt 交给宿主 Agent 自带的图像工具出图;(C) Advisor 模式,宿主无任何图像工具时退化为高质量 prompt 顾问。涵盖 18 大类、80+ 个结构化模板,覆盖海报 / UI / 产品 / 信息图 / 学术图 / 技术架构图 / 漫画 / 头像 / 流程板 / 电影分镜 / IP 周边 / 编辑工作流等场景。
- License
- Apache-2.0
- Instructions
- 496 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (103)
- README.md
- README.zh-CN.md
- SKILL.md
- manifest.json
- graphical-abstract.md · references/academic-figures/
- mechanism-diagram.md · references/academic-figures/
- method-pipeline-overview.md · references/academic-figures/
- multi-condition-comparison.md · references/academic-figures/
- neural-network-architecture.md · references/academic-figures/
- publication-chart.md · references/academic-figures/
- qualitative-comparison-grid.md · references/academic-figures/
- research-overview-poster.md · references/academic-figures/
- scientific-schematic.md · references/academic-figures/
- game-screenshot-mockup.md · references/assets-and-props/
- retro-skeuomorphic-icons.md · references/assets-and-props/
- character-grid-portrait.md · references/avatars-and-profile/
- cultural-portrait-series.md · references/avatars-and-profile/
- sticker-set.md · references/avatars-and-profile/
- style-transfer-selfie.md · references/avatars-and-profile/
- themed-3d-icon.md · references/avatars-and-profile/
- beverage-label-design.md · references/branding-and-packaging/
- brand-identity-board.md · references/branding-and-packaging/
- character-merch-board.md · references/branding-and-packaging/
- cosmetic-packaging.md · references/branding-and-packaging/
- full-mascot-brand-doc.md · references/branding-and-packaging/
- mascot-brand-kit.md · references/branding-and-packaging/
- background-replacement.md · references/editing-workflows/
- local-object-replacement.md · references/editing-workflows/
- object-removal.md · references/editing-workflows/
- portrait-local-edit.md · references/editing-workflows/
- product-retouching.md · references/editing-workflows/
- ad-banner-multi-grid.md · references/grids-and-collages/
- anime-pitch-board.md · references/grids-and-collages/
- banner-grid-2x2.md · references/grids-and-collages/
- lookbook-grid.md · references/grids-and-collages/
- mixed-style-multi-panel.md · references/grids-and-collages/
- bento-grid-infographic.md · references/infographics/
- comparison-infographic.md · references/infographics/
- hand-drawn-infographic.md · references/infographics/
- kpi-dashboard-infographic.md · references/infographics/
- legend-heavy-infographic.md · references/infographics/
- step-by-step-infographic.md · references/infographics/
- food-map.md · references/maps/
- illustrated-city-map.md · references/maps/
- itinerary-day-trip-map.md · references/maps/
- store-distribution-map.md · references/maps/
- travel-route-map.md · references/maps/
- character-sheet.md · references/portraits-and-characters/
- founder-portrait.md · references/portraits-and-characters/
- pose-reference-sheet.md · references/portraits-and-characters/
- professional-portrait.md · references/portraits-and-characters/
- virtual-host.md · references/portraits-and-characters/
- banner-hero.md · references/poster-and-campaigns/
- biomimetic-concept-poster.md · references/poster-and-campaigns/
- brand-poster.md · references/poster-and-campaigns/
- campaign-kv.md · references/poster-and-campaigns/
- character-catalog-poster.md · references/poster-and-campaigns/
- editorial-cover.md · references/poster-and-campaigns/
- lineup-comparison-poster.md · references/poster-and-campaigns/
- vintage-editorial-infographic.md · references/poster-and-campaigns/
- …and 43 more
SKILL.md (first lines)
# GPT Image 2 这是一个面向 GPT Image 2 的聚焦型技能,在 3 种运行环境下都能用,但行为差异显著。**第一步必须先确定当前运行模式**。 它只做两类图像任务: - 生成图片:`POST /images/generations` - 编辑图片:`POST /images/edits` 本文件保留:运行模式、技能结构、环境变量、保存 / 命名规则、模板索引、模式感知工作流。详细模板全部放在 `references/`,分层组织: - 一级:分类目录 - 二级:单模板 Markdown 文件 ## 运行模式(必读,做任何事之前先确定) 本 Skill 自带一个轻量探测脚本,先跑一次,再根据结果决定怎么干活: ```bash node skills/gpt-image-2/scripts/check-mode.js # 想拿结构化结果给上层程序用: node skills/gpt-image-2/scripts/check-mode.js --json ``` 输出会给出 `mode = A` / `A?` / `B-or-C` 以及 `recommendation`。三个模式定义如下: ### Mode A · Garden 本地生图 **触发条件**:环境变量 `ENABLE_GARDEN_IMAGEGEN` 为真(`1` / `true` / `yes` / `on`)**且** 存在 `OPENAI_API_KEY`。 **行为**:完整端到端跑通"选模板 → 写 prompt → 调用脚本 → 出图落盘"。 - 用 `scripts/generate.js` 文本生图、`scripts/edit.js` 编辑现有图。 - prompt 默认落盘到 `garden-gpt-image-2/prompt/`、图片落盘到 `garden-gpt-image-2/image/`。 - 这是最强的模式:你是图像工具的"持有者"。 ### Mode B · Host-Native 委托宿主出图 **触发条件**:未启用 Garden(`ENABLE_GARDEN_IMAGEGEN` 未设置 / 为假),但**当前宿主 Agent 自带图像生成工具或图像 MCP**。 **典型识别信号**(你应该自检): - 你的工具集里出现 `image_generation` / `imagegen` / `dalle` / `nano_banana` / `mcp__*image*` / `make_image` / 类似名字 - 用户在 ChatGPT / Codex / Gemini / Cursor 等支持原生出图的客户端中调用本 Skill - 用户显式说"用你自己的工具出图" **行为**:本 Skill **退化成提示词工程指引**—— 1. 仍按"选模板 → 填字段 → 渲染最终 prompt"的流程走。 2. **不要调用 `node scripts/generate.js`**(没有 API key、必失败)。 3. 直接调用宿主自带的图像工具,把渲染好的 prompt 作为输入。 4. 如用户希望可顺手把 prompt 文件保存到 `garden-gpt-image-2/prompt/`,但图片去向由宿主决定,不强制。 ### Mode C · Advisor 纯提示词顾问 **触发条件**:未启用 Garden,**且**宿主 Agent 也没有任何图像生成工具。 **行为**:本 Skill 退化为"高质量 prompt 撰写顾问"—— 1. 按"选模板 → 填字段 → 渲染最终 prompt"流程走,缺信息就问用户。 2. 把最终 prompt **直接打印给用户** + 保存一份到 `garden-gpt-image-2/prompt/<task-slug>-<timestamp>.md`。 3. 附一句简短的"如何使用"建议(如:丢进 ChatGPT / Midjourney / DALL·E / Sora / Nano Banana / 自己后端 / 第三方 GPT Image 2 网关)。 4. **不要假装出图成功**。明确告知用户:"已生成可直接复用的高质量 prompt,请用你的图像工具执行。" ### 模式决策表 | 条件 | 模式 | 调用脚本? | 落盘 prompt? | 落盘图片? | |---|---|---|---|---| | `ENABLE_GARDEN_IMAGEGEN=1` + 有 KEY | **A** | ✅ `generate.js` / `edit.js` | ✅ 自动 | ✅ 自动 | | `ENABLE_GARDEN_IMAGEGEN=1` 但没 KEY | A? | ❌(先要 KEY) | — | — | | 未启用 + 宿主有图像工具 | **B** | ❌(用宿主工具) | 可选 | 由宿主决定 | | 未启用 + 宿主无图像工具 | **C** | ❌ | ✅ 必须 | ❌(无法) | ### 模式不确定时 - 如果你判断不清自己是 B 还是 C,**直接问用户一句**:"是用你环境里的图像工具出图,还是只要我写好提示词?" - Mode A 调脚本失败(401 / 网络 / 配额)→ 报错并询问"切到 B / C 吗?" ## 用户输入工具 当此技能需要向用户提问时,遵循以下规则: 1. 优先使用当前运行时提供的用户输入工具。 2. 如果没有对应工具,则用简短的纯文本编号问题提问。 3. 能合并的问题尽量一次问完。 ## 技能结构 - `scripts/check-mode.js`:**先跑这个**,检测运行模式(A / B / C) - `scripts/generate.js`:文本生图(仅 Mode A 使用) - `scripts/edit.js`:基于原图 / 遮罩改图(仅 Mode A 使用) - `scripts/shared.js`:共享请求、保存、环境变量读取逻辑 - `references/`:分层结构化提示词模板(A / B / C 三模式都用) ## 环境变量 按以下顺序读取配置: 1. CLI 参数 2. `process.env` 3. `<cwd>/.env` 4. `<cwd>/.gateway.env` 5. `~/.gateway.env` 核心变量: - `ENABLE_GARDEN_IMAGEGEN` — **模式开关**。`1` / `true` / `yes` / `on` 时启用 Mode A;未设置或其它值则进入 Mode B / C。 - `OPENAI_API_KEY` — Mode A 必需;B / C 不需要。 - `OPENAI_BASE_URL` — 默认 `https://api.openai.com/v1`,可指向第三方兼容网关。 - `OPENAI_IMAGE_MODEL` — 默认 `gpt-image-2`,可换成网关支持的型号(如 `gpt-image-1` / `dall-e-3`)。 默认实现按 OpenAI 兼容接口工作,不写死任何第三方网关。 ## 默认输出目录 如果用户没有明确指定输出路径,统一使用当前工作区下的: - 提示词目录:`garden-gpt-image-2/prompt/`(**A / B / C 三种模式都建议用**,方便复用与版本管理) - 图片目录:`garden-gpt-image-2/image/`(**仅 Mode A 使用**;Mode B 由宿主决定,Mode C 不产生图)
From novolei/uclaw-new, Apache-2.0.
More from novolei/uclaw-new
- 0.502score
web-design-engineer
novolei
Build polished visual web artifacts with HTML/CSS/JavaScript/React: pages, dashboards, prototypes, slide decks, animations, UI mockups, and data visualizations.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
kb-retriever
novolei
面向本地知识库目录的检索和问答助手。核心流程:(1)分层索引导航 (2)遇到PDF/Excel时必须先读取references学习处理方法 (3)处理文件后再检索。按文件类型组合使用 grep、Read、pdfplumber、pandas…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
uclaw-tauri-commands
novolei
Use whenever you add or modify a Tauri IPC command in src-tauri/src/tauri_commands.rs.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
uclaw-migrations
novolei
Use whenever you need to add, modify, or coordinate a SQLite migration in src-tauri/src/db/migrations.rs.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
uclaw-composers
novolei
Use whenever you change paste, drop, attachment, send, or any input behavior in the chat or agent UI.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
uclaw-pr-discipline
novolei
Use whenever you're about to commit, open a PR, finish a task in a plan, or are working on the codex-absorption-v2.2 integration branch.
SkillCFreshness: C★ 1Claude Code +9 - 0.493score
uclaw-tick-feature-verify
novolei
Use when E2E-verifying a uClaw feature whose production behavior is driven by a slow tick / cron / scheduler — typical signs are `tick_count % N == 0`…
SkillCFreshness: C★ 1Claude Code +9 - 0.493score
uclaw-github-ops
novolei
Direct GitHub operations (commit / push / PR / merge) on the user's Mac — bypasses Cowork sandbox lock-tracking limitations.
SkillCFreshness: C★ 1Claude Code +9 - 0.493score
uclaw-codex-derived
novolei
Use whenever you copy, port, or adapt code from openai/codex (the Codex CLI Rust workspace at /Users/ryanliu/Documents/Hero/codex).
SkillCFreshness: C★ 1Claude Code +9 - 0.493score
uclaw-gitnexus-workflow
novolei
Use before editing any function, method, or class — especially in files referenced by multiple call sites, or anywhere in src-tauri/src/agent/…
SkillCFreshness: C★ 1Claude Code +9 - 0.493score
uclaw-memory-graph-freeze
novolei
Use whenever you're tempted to write to memory_graph or are working on memory persistence, knowledge graph, entity storage, or "save this for later" features.
SkillCFreshness: C★ 1Claude Code +9 - 0.264score
uclaw-milestone-closed-loop
novolei
No description from the publisher yet.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 5, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/novolei/uclaw-new
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from novolei
- 0.502score
web-design-engineer
novolei
Build polished visual web artifacts with HTML/CSS/JavaScript/React: pages, dashboards, prototypes, slide decks, animations, UI mockups, and data visualizations.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
kb-retriever
novolei
面向本地知识库目录的检索和问答助手。核心流程:(1)分层索引导航 (2)遇到PDF/Excel时必须先读取references学习处理方法 (3)处理文件后再检索。按文件类型组合使用 grep、Read、pdfplumber、pandas…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
uclaw-pr-discipline
novolei
Use whenever you're about to commit, open a PR, finish a task in a plan, or are working on the codex-absorption-v2.2 integration branch.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
uclaw-composers
novolei
Use whenever you change paste, drop, attachment, send, or any input behavior in the chat or agent UI.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
uclaw-migrations
novolei
Use whenever you need to add, modify, or coordinate a SQLite migration in src-tauri/src/db/migrations.rs.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
uclaw-tauri-commands
novolei
Use whenever you add or modify a Tauri IPC command in src-tauri/src/tauri_commands.rs.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
gpt-image-2 skill. Agent Mart. https://agentmart.dev/skills/novolei-gpt-image-2 (last updated 2026-10-24)