Community影像github.com

getedgehq/generate-image

透過 Codex CLI 使用 OpenAI GPT Image 2 生成圖片,費用計入使用者的 ChatGPT Plus 訂閱(無需 OpenAI API 金鑰,無單張圖片 API 費用)。當使用者要求建立、生成或製作圖片、照片、插圖、圖示、主視覺或概念藝術時使用。

generate-image 是什麼?

此技能讓 AI 代理能夠透過 Codex CLI 呼叫 OpenAI GPT Image 2 生成圖片,並將費用直接計入使用者的 ChatGPT Plus 訂閱,完全不需要 OpenAI API 金鑰或負擔額外的每張圖片費用。它適用於任何已安裝 Codex CLI 並以 ChatGPT Plus 帳號登入的環境,特別適合在本地或開發者工具(如 Codex CLI)內使用。技能會將使用者的文字提示轉換為精確的英文提示詞,然後執行一個 shell 腳本生成 PNG 圖片,並根據專案結構自動儲存到適當的目錄(如有 `public/` 資料夾則存在 `public/images/`,否則存在 `assets/images/`)。腳本支援自訂輸出路徑、檔名,並會自動避免覆寫既有檔案。開發者若需要在專案中快速產出概念圖、插圖或主視覺資產,此技能提供了一條無需手動管理 API 金鑰與帳單的捷徑。

相容平台~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 金鑰,也沒有獨立的單張圖片 API 計費。

開始之前

此技能不直接與 OpenAI 通訊。它會呼叫 Codex CLI,而該 CLI 必須事先安裝在這台機器上,並已使用有效的 ChatGPT Plus 訂閱帳號登入。請用 codex --version 檢查,如果尚未登入則執行 codex login。不需要貼上任何 API 金鑰,也沒有單張圖片的額外費用;所有圖片費用都計入該訂閱。

如果沒有已登入的 Codex CLI,這裡的一切都無法運作,腳本會在第一次呼叫時失敗,而非產出任何檔案。

快速開始

# 從此技能自己的目錄執行,無論你的代理安裝在哪裡
./scripts/generate-image.sh "一隻戴著太陽眼鏡的柴犬,棚拍風格"

儲存到解析後的輸出資料夾(見下方說明),檔名為 slugified 的 PNG,例如: assets/images/yi-zhi-dai-zhe-tai-yang-yan-jing-de-chai-quan-peng-pai-feng-ge.png

工作流程

  1. 將使用者的請求轉換為強而有力的英文提示詞。請遵循 PROMPTING.md 中的建構順序與槓桿(場景 → 主體 → 細節 → 不變項 → 用途)。在呼叫前先釐清模糊的要求;當資產很重要時,不要只傳遞一句簡單的話。
  2. 使用提示詞執行腳本。可選擇性地傳遞 --out 與 --name 參數。
  3. 將儲存的路徑回報給使用者。若要修改,請以小的單變數步驟迭代,並重新說明不變項(請見 PROMPTING.md)。

輸出位置

若未指定 --out,腳本會自動解析資料夾:

條件目標資料夾
./public/ 存在(Web/應用程式專案)./public/images/
其他情況./assets/images/(若不存在則建立)

這能在各專案間建立一致的 assets/images/ 慣例,同時也尊重 Web 專案的需求,在該類專案中圖片必須放在 public/ 下才能被提供。

選項

標記效果
--out <目錄>寫入此目錄而非自動解析的預設目錄
--out <檔案>.png寫入此確切的檔案路徑
--name <基底名稱>使用此基底名稱而非將提示詞轉為 slug

永遠不會覆寫現有檔案:腳本會改為附加 -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

相關技能