GB

gyu-bot/codex-image-generation-skill

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

20 stars 质量 44 趋势 14

专门为Codex OAuth + OpenAI托管image_generation提供Hermes技能。

概览

专门为Codex OAuth + OpenAI托管image_generation提供Hermes技能。 该仓库应直接在以下网站借阅: 它为Hermes提供了Git管理的图像生成流程,包括: - 直接的Codex OAuth响应传输;- GPT-image-2托管图像生成;- 以忠实为先的提示处理;- 直接、保真和增强提示模式;- 默认——审核低;- 精确的可见文本/语言保存策略;- 引用和编辑图像支持;- 元数据和原始事件捕获;- 多候选生成,带--count。 - Hermes 源代码 ~/.hermes/hermes-agent - Hermes Codex OAuth 凭证可用 - 带有 Hermes 依赖的 Python 环境,包括 openai - 可选:用于压缩超大参考图像的 Pillow 该辅助工具本身直接使用Hermes的Codex OAuth辅助工具。它不会调用已移除的Codex responses CLI子命令。

概述(AI 翻译)

专门为Codex OAuth + OpenAI托管的赫尔墨斯技能image_generation。

该仓库应直接在以下网站借阅:

它为Hermes提供了Git管理的图像生成流程,包括:

  • 直接传输《OAuth Responses 法典》;
  • gpt-image-2 托管图像生成;
  • 忠实优先提示处理;
  • direct、fidelity和enhanced提示模式;
  • 默认 --moderation low;
  • 精确的可见文本/语言保存政策;
  • 参考和编辑图像支持;
  • 元数据和原始事件捕获;
  • 多候选生成,--count。

文件

要求

  • Hermes 来源 ~/.hermes/hermes-agent
  • 赫尔墨斯古籍OAuth资历可用
  • 带有Hermes依赖的Python环境,包括openai
  • 可选:用于压缩超大参考图像的枕头

理智检查:

该辅助工具本身直接使用Hermes的Codex OAuth辅助程序。它不会调用已移除的codex responses的CLI子命令。

快速开始

原文/高保真提示:

直通模式:

增强的真实照片模式:

参考图片:

编辑图片:

多候选人:

重要选项

  • --prompt-mode direct|fidelity|enhanced

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

codex-image-generation

Dedicated Hermes skill for Codex OAuth + OpenAI hosted image_generation.

This repository is meant to be checked out directly at:

~/.hermes/skills/creative/codex-image-generation

It gives Hermes a git-managed image generation workflow with:

  • direct Codex OAuth Responses transport;
  • gpt-image-2 hosted image generation;
  • fidelity-first prompt handling;
  • direct, fidelity, and enhanced prompt modes;
  • default --moderation low;
  • exact visible text / language preservation policy;
  • reference and edit image support;
  • metadata and raw event capture;
  • multiple candidate generation with --count.

Files

SKILL.md                  Hermes skill instructions
README.md                 Repository documentation
scripts/gen_image.py      Main CLI helper
scripts/test_gen_image.py Unit tests for payload, parsing, diagnostics

Requirements

  • Hermes source at ~/.hermes/hermes-agent
  • Hermes Codex OAuth credentials available
  • Python environment with Hermes dependencies, including openai
  • Optional: Pillow for compressing oversized reference images

Sanity check:

codex login status

The helper itself uses Hermes’ Codex OAuth helpers directly. It does not call the removed codex responses CLI subcommand.

Quick start

python ~/.hermes/skills/creative/codex-image-generation/scripts/gen_image.py \
  "A dreamy jellyfish library under the sea, painterly concept art" \
  --output ./jellyfish-library.png

Exact text / high-fidelity prompt:

python ~/.hermes/skills/creative/codex-image-generation/scripts/gen_image.py \
  "Create a clean event poster with the exact text 'FRI 11PM / HBC Rooftop', black background, silver typography, no extra text" \
  --prompt-mode fidelity \
  --output ./poster.png

Direct pass-through mode:

python ~/.hermes/skills/creative/codex-image-generation/scripts/gen_image.py \
  "Minimal red circle on a white background" \
  --prompt-mode direct \
  --output ./red-circle.png

Enhanced photoreal mode:

python ~/.hermes/skills/creative/codex-image-generation/scripts/gen_image.py \
  "A boutique hotel lobby in Seoul at night" \
  --prompt-mode enhanced \
  --enhancement-profile photoreal \
  --output ./hotel-lobby.png

Reference image:

python ~/.hermes/skills/creative/codex-image-generation/scripts/gen_image.py \
  "Create a luxury skincare ad using the attached bottle as the product reference" \
  --reference-image ./bottle.png \
  --output ./skincare-ad.png

Edit image:

python ~/.hermes/skills/creative/codex-image-generation/scripts/gen_image.py \
  "Replace the background with a rainy neon Tokyo street while keeping the subject intact" \
  --edit-image ./portrait.png \
  --action edit \
  --output ./portrait-tokyo.png

Multiple candidates:

python ~/.hermes/skills/creative/codex-image-generation/scripts/gen_image.py \
  "A cinematic sci-fi knight on a ruined moon" \
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add gyu-bot/codex-image-generation-skill
新手?先看 mcpskill.org 教程 →