SkillsGrove
SkillsGrove/디자인 및 이미지/captain-nook/nook_skills/nook-image2-gpt

nook-image2-gpt

설치

$npx skills add https://github.com/captain-nook/nook_skills --skill nook-image2-gpt
$git clone --depth 1 https://github.com/captain-nook/nook_skills.git /tmp/nook_skills && mkdir -p ~/.claude/skills && cp -r /tmp/nook_skills/nook-image2-gpt ~/.claude/skills/nook-image2-gpt
이 Agent Skill을 설치해 주세요: https://github.com/captain-nook/nook_skills/tree/7ac004af583fb3cebef7407e50020feced8660e9/nook-image2-gpt — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITAtomic image generation skill backed by the nook-image2-gpt MCP server. Use when Codex needs stable text-to-image or image-to-image generation through submit_image_task and get_image_result, especially as a low-level image provider for larger skills such as nook-poster.
아래 SKILL.md는 captain-nook/nook_skills(커밋 7ac004a)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 Nook Skills contributors. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

nook-image2-gpt

异步任务驱动的图片生成 MCP 工具。通过 submit_image_task + get_image_result 提供文生图和图生图能力。

MCP server 名称:nook-image2-gpt 提供 tool:submit_image_task、get_image_result


1. 部署(agent 执行,用户零操作)

  1. 克隆仓库到本地
  2. 向用户索取中转站 API Key
  3. 在本目录执行:node setup.js,按提示输入 API Key 和中转站 URL
  4. 提示用户重启 agent 客户端

脚本自动完成:安装依赖 + 写入 Agent MCP 配置。


2. AI 使用说明

以下内容供 AI 阅读。

2.1 MCP 依赖

本 skill 依赖 nook-image2-gpt MCP server。

调用出图时,必须使用 submit_image_task 和 get_image_result 两个 tool,不得自行编写代码或调用其他 API。 若 tool 列表中没有这两个名字,说明 MCP server 未启动,提示用户重启 agent。

2.2 submit_image_task(提交任务)

参数 必填 默认 说明
prompt 是 — 提示词,越短出图越快
size 否 1024x1024 见下方尺寸表
n 否 1 生成数量(1-4,图生图推荐 1)
mode 否 text_to_image text_to_image 或 image_to_image
input_image_path 图生图时必填 — 源图片绝对路径

返回: { task_id, status: "queued", estimated_wait }

提交后立即返回,不阻塞。后台 worker 异步执行。

2.3 get_image_result(查询结果)

参数 必填 说明
task_id 是 submit_image_task 返回的 ID

返回:

  • status: queued / processing / succeeded / failed
  • image_paths: 成功时的图片路径数组
  • error: 失败时的错误信息

轮询间隔建议 10-15 秒。成功后取 image_paths[0] 作为图片路径。

2.4 尺寸表

size 比例 适用场景
1024x1024 1:1 头像、图标(默认)
2048x2048 1:1 高清方图
2048x1152 16:9 封面图、宽屏插图
3840x2160 16:9 桌面壁纸、横幅
2160x3840 9:16 手机壁纸、海报

3. 在其他 Skill 中调用

详细集成约定见 references/integration-contract.md。上层生产级 skill 应把本 skill 当作原子出图 provider,只接收本地图片路径,不依赖中转站、API key 或代理细节。

在你的 SKILL.md 的出图章节中粘贴以下片段:

### 出图(nook-image2-gpt)

前置检查:tool 列表中必须存在 `submit_image_task` 和 `get_image_result`。

1. 调用 `submit_image_task`
   - prompt: <构造提示词>
   - mode: text_to_image / image_to_image
   - size: <按场景选择>
   - input_image_path: <图生图时传入>

2. 轮询 `get_image_result(task_id)` 直到 status 为 succeeded
   - 间隔 10-15s
   - 成功后取 image_paths[0]

本 MCP 只负责出图。提示词构造、图生图源图管理、输出文件搬运由上层 Skill 负责。

라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 Nook Skills contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.