Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate an image with ChatGPT (GPT image generation) in the user's logged-in ego lite browser and save the file into the current project directory. Use this skill whenever the user wants an AI-generated picture — 生成图片、画一张图、做海报/攻略图/插画/封面/信息图, "generate an image of...", "make a poster/infographic/illustration" — especially when they give an image description and want the result saved locally for project use. Prefer this skill whenever ego-browser + ChatGPT image generation is the intended pipelin
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | -14% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 5% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 190% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -15% | 0% |
Generate an image from a text description with ChatGPT via ego-browser, download it, and save it into the project. The whole happy path is one bundled script; this skill mainly covers how to call it, how to handle login, and how to finish up cleanly.
ego-browser on PATH (if ego-browser: command not found, read the ego-browser skill's references/install.md first).The installed ego lite runtime (0.4.4.x) preloads the helper API — useOrCreateTaskSpace, openOrReuseTab, fillInput, click, js, wait, pageInfo, cliLog, completeTaskSpace — not the page / browser / taskSpaces facades some ego-browser docs describe. Also: wait(...) and timeout are in seconds, cliLog(...) is the output channel, and the embedded node runtime does not inherit shell environment variables (pass data via files, like the script does, or interpolate into the heredoc). The bundled script already follows these rules — run it as-is instead of rewriting it against another API.
西安旅游攻略图.png for "帮我生成一张西安旅游攻略图". If the user gave a name or directory, use that. Default extension .png (ChatGPT returns PNG).bash bash <this-skill-dir>/scripts/gen-image.sh "<image description>" "<absolute output path>"
It reuses the task space chatgpt image generation, opens a fresh ChatGPT chat, sends the description, polls until the image appears, downloads it with the page's session cookies, and writes the file. Final line of output is a JSON status.
0 with {"status":"ok", ...} — continue to step 4.42 (login_required) — hand the browser to the user so they can log in:bash ego-browser nodejs <<'EOF' const t = await useOrCreateTaskSpace('chatgpt image generation') const h = await handOffTaskSpace(t.id) cliLog(JSON.stringify(h)) EOF Check h.done, then tell the user to log into ChatGPT in the ego lite window and say when done. Only after they confirm, take control back with a new ego-browser nodejs heredoc using takeOverTaskSpace('chatgpt image generation'), then rerun the generator.
1 with image_timeout — generation may still be running; open the conversation URL from the output, check visually with captureScreenshot(), and if the image has since appeared, fetch it manually (the poll + download snippet in the script is the reference). Otherwise report the failure.completeTaskSpace directly:bash bash <this-skill-dir>/scripts/close-task-space.sh
{"status":"closed", ...} means it closed the task space. {"status":"already_closed", ...} is also success: a previous cleanup already removed it. Do not run ego-browser --help as a cleanup workaround.
https://chatgpt.com/ fresh each run, so every image starts a new chat. The ChatGPT conversation remains in the user's history.Other measured skills in the registry, with their headline benchmark lift.