/ego-skills:chatgpt-image-genfrom ego-skills
Expands rough image ideas using a six-axis domain engine, then generates one image via the free ChatGPT website in Ego Lite. Requires login verification. Use when the user wants to generate images, enrich prompts, or use ChatGPT Images without a Codex subscription.
Ships in ego-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
用 Ego Lite 里已经登录的 ChatGPT 网页生成一张图。扩写沿用 codex-imagegen 1.0.4 的领域六轴。生成不走 Codex CLI,也不读 API key。
Create one image on the logged-in ChatGPT website. Enrichment is the domain engine from codex-imagegen 1.0.4. Generation is https://chatgpt.com/ in Ego, not codex exec.
质量杠杆仍是:生图质量 = 模型 × 提示词信息密度。把粗略想法沿六个轴补足,再交给网页里的 ChatGPT Images。免费档的模型、额度和入口以 references/limitations.md 为准。
先看 references/。命中领域就用该文件的方向;没有就用通用六轴;机制、流程、对比、时间线不要生图,改画带文字的 SVG(references/diagram.md)。
英文提示词 60–120 词,顺序是主体、构图、环境、光影、风格、配色、约束。用户给出的主体、风格、配色只加不改。画面里不要长句子;UI 稿只允许很短的界面文字。logo 的生产文件应是 SVG,脚本仍可出一张气质探索图。
把用户的原话传给脚本。不要先扩写再当作 --idea,否则骨架会套两次。
node skills/chatgpt-image-gen/scripts/check-login.mjs
node skills/chatgpt-image-gen/scripts/check-login.mjs --keep
已登录的唯一正信号是账号控件(推断的无障碍名称,见 references/login.md)。只有输入框不算登录:帮助中心写明,未登录时发送提示词仍可能要求登录。对不上就退出 2,不要猜。
| 退出码 | 含义 | Agent 做什么 |
|---|---|---|
0 | 已登录 | 告诉用户 login_tip,继续 |
2 | 未登录、无法证明登录,或没有 ego-browser | 展示 how_to_login,停 |
3 | 扩写已打印,没有发送 | 给人看提示词和 --out |
1 | 参数、页面或生成失败 | 报告 JSON error,不要假装已保存 |
不要代填密码,不要粘贴 Cookie,不要导出会话。
node skills/chatgpt-image-gen/scripts/enrich.mjs --idea "a ceramic cup" --domain photo
node skills/chatgpt-image-gen/scripts/generate.mjs \
--idea "a ceramic cup" --out /absolute/path/to/image.png
node skills/chatgpt-image-gen/scripts/generate.mjs \
--idea "a ceramic cup" --style "risograph print" --palette "olive and cream" \
--aspect 3:2 --out /absolute/path/to/image.png --yes
node skills/chatgpt-image-gen/scripts/cleanup.mjs
| 命令 | 浏览器 |
|---|---|
enrich | 不开。退出码 0 只表示本地提示词有效 |
generate 不加 --yes | 不开。退出码 3 |
generate --yes | 登录通过后发送一次。成功是 --out 里的图片字节 |
| 流程图 / 时间线 | 不开。generate 为 false,去画 SVG |
--publish | 没有这个开关 |
--yes 才是发送同意。默认等待 180 秒(--timeout-ms)。限流、拒绝、超时、下载失败都不是成功,也不会自动重试。
成功不是模型说它画好了,也不是点到了 Save。回读必须是一个新的图片元素,地址在允许的主机上,字节是 png、jpeg、webp 或 gif,并且和 --out 的扩展名一致。Save 按钮的本机下载目录观察不到,所以脚本不用它。
细节见 references/inputs.md、references/limitations.md、references/states.md。本机验收见 references/acceptance.md。这一版没有在真实 ChatGPT 页面上跑过。
npm test
单测不打开 chatgpt.com,也不使用真实登录态。单测通过不能当作线上验收。
领域文稿来自 MIT 的 codex-imagegen 1.0.4。某个领域被验收通过且还没有 reference 时,同时补 references/<id>.md 和 scripts/lib/domains.mjs。
agents/openai.yaml (opens in a new tab)references/_template.md (opens in a new tab)references/acceptance.md (opens in a new tab)references/architecture-interior.md (opens in a new tab)references/children-book-illustration.md (opens in a new tab)references/diagram.md (opens in a new tab)references/editorial-illustration.md (opens in a new tab)references/food-photography.md (opens in a new tab)references/inputs.md (opens in a new tab)references/limitations.md (opens in a new tab)references/login.md (opens in a new tab)references/logo.md (opens in a new tab)references/photo.md (opens in a new tab)references/product-shot.md (opens in a new tab)references/states.md (opens in a new tab)references/tos-notes.md (opens in a new tab)references/ui-mockup.md (opens in a new tab)scripts/check-login.mjs (opens in a new tab)scripts/cleanup.mjs (opens in a new tab)scripts/enrich.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
chatgpt-image, prompt-enrichment, image-generation, ego-lite
npx claudepluginhub terryso/ego-skills --plugin ego-skills14 skills in this plugin
/bilibili-videoPublish a local video to the Bilibili creator platform (member.bilibili.com) with Ego Lite via ego-browser. Login-check first. Bilibili wants TWO covers uploaded separately: --cover-4x3 (首页推荐) and --cover-16x9 (个人空间). Nothing is submitted without --yes: that run only prints a local plan and exits 3. --type selects a partition from the human-type list and reads it back; a missing name stops before 立即投稿. Success is 投稿成功 / 审核中, with a BV URL or identity unconfirmed. Bilibili has no private visibility on web upload: approved submissions go public. Use when the user asks to post to B站, 哔哩哔哩, B站投稿, or publish a video to bilibili./douyin-videoPublish a local video to the Douyin creator center (creator.douyin.com) with Ego Lite via ego-browser. Login-check first. Title is a separate field of at most 30 characters. Success is a redirect to content management or a publish-success message. The caller supplies a local video file. This skill does not download video. Use when the user asks to post to 抖音, 抖音发视频, 发布到抖音创作者中心, or creator.douyin.com./instagram-saved-downloadDownload the user's own Instagram Saved posts (images, and MP4 when asked) with Ego Lite cookies via ego-browser. Soft-fails if Instagram is logged out and tells the user that signing in is what makes Saved readable. Personal archive only. Each run checks login itself./kuaishou-videoPublish a local video to the Kuaishou creator platform (cp.kuaishou.com) with Ego Lite via ego-browser. Login-check first. Success means the work shows 审核中. Optional comment from the creator comment manager. The caller supplies a local video file and a description. This skill does not download video. Use when the user asks to post to 快手, 快手发视频, 发布到快手创作者平台, or comment on a Kuaishou work from the creator backend./pinterest-downloadSearch Pinterest and save images or MP4s with the user's Ego Lite cookies. Also related pins, board feeds, and small previews the model can read. Parity with @sunkimkk/pinterest-mcp. Soft-fails if Pinterest is logged out, and always tells the user that signing in inside Ego improves results. Personal use only./teambition-egoRead and update Teambition test plans and single test cases through the Ego Lite browser session (www.teambition.com). Login-check first. Phase 2a writes are create, update title/precondition/steps, set-status, and archive (delete --yes). Use when the user mentions Teambition 测试用例, 用例库, 测试计划, testplan, or case steps. Do not use teambition_cli, an Open API token, or the task search API for this module.
Other plugins' skills for the same job