Community图像github.com

getedgehq/generate-image

使用 OpenAI GPT Image 2 通过 Codex CLI 生成图像,费用计入用户的 ChatGPT Plus 订阅(无需 OpenAI API 密钥,无需按图像付费)。

generate-image 是什么?

该技能通过 OpenAI GPT Image 2 生成图像,并利用 Codex CLI 进行身份验证和费用结算。用户的 ChatGPT Plus 订阅覆盖所有图像生成成本,因此无需提供 OpenAI API 密钥,也无需单独按图像付费。技能通过本地 `codex` CLI 执行,该 CLI 必须已安装并登录到拥有活跃 Plus 订阅的 ChatGPT 账户。它提供一个 Bash 脚本 `generate-image.sh`,接受文本提示并输出 PNG 文件。输出文件默认保存在 `assets/images/` 或 `public/images/` 目录(取决于项目结构),支持通过 `--out` 和 `--name` 参数自定义路径和文件名。现有文件不会被覆盖,而是自动追加 `-2`、`-3` 等后缀。该技能适用于任何支持 Codex CLI 的环境,尤其是代码编辑器或命令行工具,如 Codex CLI 自身或集成后的人工智能代理。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/getedgehq/skills/tree/main/generate-image

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

生成图像

通过 OpenAI GPT Image 2 创建图像。身份验证通过已登录 ChatGPT 账户的 Codex CLI 运行,因此图像生成费用由用户的 Plus 订阅覆盖。无需 OpenAI API 密钥,也无需单独按图像计费。

开始之前

本技能不直接与 OpenAI 通信。它通过调用 Codex CLI 实现,且该 CLI 必须已在此机器上安装并已登录到拥有活跃 Plus 订阅的 ChatGPT 账户。请使用 codex --version 检查,如果未登录,运行 codex login。无需粘贴 API 密钥,也没有单独按图像的费用;图像费用计入该订阅。

如果没有登录的 Codex CLI,则任何功能都无法工作,脚本会在第一次调用时直接失败,不会生成文件。

快速开始

# 从本技能自己的目录(无论代理将其安装在哪里)执行
./scripts/generate-image.sh "一只戴着太阳镜的柴犬,摄影棚照片"

保存到解析后的输出文件夹(见下文),文件名为短横线分隔的 PNG,例如: assets/images/a-shiba-inu-wearing-sunglasses-studio-photo.png

工作流程

  1. 将用户请求转化为强有力的英文提示。严格按照 PROMPTING.md 中的构建顺序和要点(场景 → 主体 → 细节 → 不变要素 → 用途)。在调用前细化模糊的请求;当素材重要时,不要直接传递简单的单行提示。
  2. 使用提示运行脚本。可选地传递 --out 和 --name。
  3. 将保存的路径报告给用户。如需更改,以小的单变量步骤进行迭代,并重申不变要素(参见 PROMPTING.md)。

输出位置

当未指定 --out 时,脚本自动解析文件夹:

条件目标文件夹
./public/ 存在(Web/应用项目)./public/images/
其他情况./assets/images/(如果不存在则创建)

这为所有项目建立了统一的 assets/images/ 约定,同时尊重 Web 项目,其中图像必须位于 public/ 下才能被提供。

选项

标志效果
--out <dir>写入此目录,而非解析后的默认目录
--out <file>.png写入此确切文件路径
--name <basename>使用此基本名称,而非将提示转换为短横线分隔格式

现有文件永远不会被覆盖:脚本会追加 -2、-3 等后缀。

可交付物命名

这些输出是工作资产,因此默认使用简短的功能名称。如果某个图像是利益相关者的 可交付物,请通过 --name 参数提供明确的名称,遵循文件命名规则,例如:--name "20260612_Hero Banner_v1"

要求

  • 已安装 codex CLI(brew install --cask codex)
  • 已使用 ChatGPT 账户登录:codex login(Plus 或更高版本;免费版不支持图像生成)

脚本会检查两者,并在缺少时以明确消息失败。

Individual skills in this repo

This repo contains 18 individual skills — each has its own dedicated page.

getedgehq/agent-evals

Build evals for an AI agent that already does real work. Use when someone asks "how do I know my agent is right", wants to test an agent before trusting it, compare models on cost versus quality, or turn production failures into tests. Walks from first tasks and yes/no verifiers, to isolated environments, to a trace-driven improvement loop.

getedgehq/cli-ux-review

Audit a command-line tool for user-friendliness — clear situation / next-step / options in every output, colour-highlighted runnable commands, no raw jargon, no silent hangs. Invoke for "CLI UX audit", "review my CLI", "is this CLI intuitive", or before any CLI release.

getedgehq/harness-first

Diagnose and fix an unreliable, expensive, or unsafe LLM agent by auditing its harness (golden set, judge, cost caps, data layer, action approvals, tracing) before blaming or swapping the model. Use when someone says an agent is "burning tokens", "hallucinating", "brittle", gives inconsistent answers, asks whether to switch to a cheaper/better model, or wants to ship an agent or prompt change to customers.

getedgehq/http-error-triage

Run before concluding anything from an HTTP error on a third-party API. Separates a real credential/entitlement problem from a CDN or WAF block, a wrong endpoint, or a client-signature ban. Use whenever an API returns 401/403/402/429 and you are about to say "the key is dead", "credits are exhausted", "the plan lacks access", or "we are rate limited".

getedgehq/linkedin-media-prep

Convert, crop, resize, and compress images and videos for optimal LinkedIn upload quality and file size. Use when the user wants to prepare a photo, image, or video for LinkedIn (profile picture, cover photo, post image, article featured image, post video, or video ad), optimize file size for LinkedIn, crop and resize for LinkedIn dimensions, convert HEIC/RAW/PNG/MOV to LinkedIn-ready JPEG or MP4, or mentions LinkedIn media requirements, specs, or limits.

getedgehq/monid

>-

getedgehq/opendraft

An 18-agent pipeline that turns one topic line into a drafted

getedgehq/people-search

Find and rank professional people for recruiting, partnerships, sales, or research from user-provided data, public web sources, an authenticated search session, or a connected provider. Use for people discovery, LinkedIn or Sales Navigator search design, profile-list ranking, or provider filter translation.

getedgehq/rocketlist

Turn a CV into a shortlist of live startup roles from Rocketlist's public job board, including adjacent job titles the person would never have searched for, each with its published salary, the evidence for the fit, and a direct apply link. Use for "find roles I would be a strong fit for", career pivots, remote or VC-backed job hunts, and salary-visible role discovery.

getedgehq/security-audit-checklist

Run a comprehensive security audit across application code, cloud infrastructure, containers, CI/CD pipelines, and infrastructure-as-code. Covers privacy compliance, OWASP basics, secret leakage, API security, IAM misconfigurations, storage exposure, Kubernetes hardening, and network security. Use when the user asks to audit, review, or harden app or cloud security, check for secrets, scan for XSS/SQLi, verify security headers, review Terraform/CloudFormation, audit AWS/GCP/Azure configs, or perform any security-focused review.

getedgehq/shadcn-first

>-

getedgehq/skills

Develop or review a branded long-form YouTube channel using Simon Kaiser's public creator-led approach: audience fit, recurring formats, natural brand integration, Time with Brand, and an organic, paid, and Shorts strategy. Use for channel strategy, format briefs, and pilots.

getedgehq/skills

Build a YouTube strategy, evidence-backed idea slate, and title plus thumbnail package using Paddy Galloway's public method. Use when planning a channel, choosing concepts, or preparing a video before filming.

getedgehq/skills

Build or review a buyer-centered strategic narrative using Andy Raskin's public method. Use for sales or investor deck stories, homepage positioning, keynotes, launch narratives, and why-now messaging.

getedgehq/skills

Turn a product URL, launch brief, or approved script into a production-ready launch video. Use for product reveals, feature announcements, SaaS launches, and narrated product films; not for generic explainers or editing existing footage.

getedgehq/strip-image-ai-metadata

Strip C2PA and AI-generation metadata from images (PNG, JPEG, WebP) to remove "Generated by AI" / "ChatGPT" / "DALL-E" labels that platforms like LinkedIn, Instagram, and X display. Use when the user wants to clean AI-generated images before posting, remove AI attribution from photos, strip C2PA manifests, sanitize image metadata for professional use, or verify whether an image contains C2PA data.

getedgehq/top-down-comms

>-

getedgehq/workplan

Create, update, or close work plans for multi-step tasks. Use when starting refactors, bug lists, feature work, migrations, or any task with 2+ steps. Also use after auto-compaction to re-orient. Triggers: "workplan", "work plan", "create a plan", "what's the plan", "where was I", or when Claude detects

相关技能