Agent skill

Generate Image

by tsingyuai in tsingyuai/growth-lab

Generate, edit, or batch-create SEO, marketing, social, and document images with Gemini or OpenAI through the repository-owned Growth Lab image client.

Apache-2.0Auto-check: notesMedia & Creative

Install Generate Image

skills CLI
$ npx skills add tsingyuai/growth-lab --skill generate-image -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tsingyuai/growth-lab generate-image --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tsingyuai/growth-lab.git skills-src && mkdir -p .claude/skills && cp -r skills-src/executors/generate-image .claude/skills/generate-image && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
generate-image
GitHub stars
2k
Token cost
~1k tokens
SKILL.md length
441 words
Files
3
Skills in repo
22
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate, edit, or batch-create SEO, marketing, social, and document images with Gemini or OpenAI through the repository-owned Growth Lab image client.

  • Content loop needs illustrations
  • SKILL.md covers Define the asset, Generate, Control text and structure and Inspect every result
  • Runs JavaScript scripts from its folder; calls node and python; needs GEMINI_API_KEY and OPENAI_API_KEY
  • Reference-image edits

What it does

Generate Image is an agent skill from tsingyuai/growth-lab. Generate, edit, or batch-create SEO, marketing, social, and document images with Gemini or OpenAI through the repository-owned Growth Lab image client. Use when a page or content loop needs illustrations, diagrams, covers, reference-image edits, multiple candidates, or verified image text and composition. This is the only AI image-generation Executor in Growth Lab.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `agents/openai.yaml`).

It sits in Media & Creative, covering Image generation. It works with OpenAI and Google Gemini. The repository describes itself as: An end-to-end growth tool that understands the product, fetch the data it needs, researches the market, executes campaigns, and reviews results to improve the next round of… The licence is Apache-2.0.

When your agent uses it

  • Content loop needs illustrations
  • Reference-image edits
  • Multiple candidates
  • Verified image text and composition

Example prompts

  • “/generate-image”

Requirements

  • Python 3
  • Node.js
  • A credential in GEMINI_API_KEY
  • A credential in OPENAI_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 2d0807c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node
    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GEMINI_API_KEY
    • OPENAI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Generate Image loads about 1k tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 441 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~96
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:53
    KEY` from the process environment, root `.env.local`, or root `.env`, in that precedence order. Use `GOOGLE_GEMINI_BASE_

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from tsingyuai/growth-lab at commit 2d0807c, republished under its Apache-2.0 licence (© tsingyuai). 441 words, ~1,022 tokens.

Download SKILL.mdSave it as .claude/skills/generate-image/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
generate-image
description
Generate, edit, or batch-create SEO, marketing, social, and document images with Gemini or OpenAI through the repository-owned Growth Lab image client. Use when a page or content loop needs illustrations, diagrams, covers, reference-image edits, multiple candidates, or verified image text and composition. This is the only AI image-generation Executor in Growth Lab.

Generate images

Use executors/generate-image/generate-image.mjs for text-to-image and reference-image editing. It is a repository-owned, zero-dependency Node.js client. Do not call Codex system Skills, private scripts, or files under ~/.codex.

Define the asset

Specify:

  • placement and purpose;
  • subject and visible action;
  • composition and aspect ratio;
  • visual style and brand palette;
  • exact text when text is essential;
  • details that must appear;
  • artifacts, logos, watermarks, and unrelated text to exclude.

Prefer real product screenshots when the image explains product behavior. Use generated visuals for concepts, scenes, covers, illustrations, diagrams, and supporting examples.

Generate

Use a prompt file for long or multilingual prompts:

bash
node executors/generate-image/generate-image.mjs \
  --out <output.png> --prompt-file <prompt.txt>

Choose OpenAI explicitly when appropriate:

bash
node executors/generate-image/generate-image.mjs \
  --model gpt-image-2 --out <output.png> \
  --prompt-file <prompt.txt>

--model accepts any gpt-image-* ID (sent to the OpenAI Images API at OPENAI_BASE_URL) or any gemini-*image* / nano-banana* ID (sent to the Gemini API at GOOGLE_GEMINI_BASE_URL). Compatible gateways may expose suffixed or tiered model IDs; list them with the gateway's /v1/models before choosing.

Add one --ref <image> argument for each reference image used in an edit.

For JSONL batch generation, put one job per line with prompt or prompt_file, out, and optional model, refs, size, or quality:

bash
node executors/generate-image/generate-image.mjs \
  --batch <jobs.jsonl> --out-dir <directory> --concurrency 3

Read GEMINI_API_KEY or OPENAI_API_KEY from the process environment, root .env.local, or root .env, in that precedence order. Use GOOGLE_GEMINI_BASE_URL or OPENAI_BASE_URL only for a compatible HTTPS endpoint. Keep credentials out of prompts, files, logs, and commits. Do not read credentials from another application's private authentication files.

Before the first provider call, run python models/onboard-growth-lab/scripts/check_configuration.py. If image generation is optional-missing, tell the user that collection, copywriting, review, and deterministic rendering can continue without an image API. When generated assets are requested, point to CONFIGURATION.md, name the OpenAI and Gemini field options, and wait for the user to configure or skip. Never ask them to paste a key into the conversation. A paid verification call requires separate approval.

Show full SKILL.md (146 more words)Show less

Control text and structure

List every required label verbatim in the prompt. State that all rendered text must match those strings exactly and that the image may contain no other text or watermark.

For a structured diagram, enumerate nodes, arrows, order, grouping, and direction explicitly. For edits, state what must remain unchanged.

Inspect every result

Use the Runtime's image viewer at full size. Check:

  • relevance to the adjacent page content;
  • every rendered character;
  • subject and factual details;
  • arrow direction, order, and grouping;
  • visual artifacts and unintended objects;
  • crop, aspect ratio, and mobile readability;
  • consistency with the product's visual language.

Regenerate with one targeted correction when the result fails. Use a deterministic code-native graphic when repeated attempts cannot render exact dense text or structure.

Store the selected asset in the product's normal public directory with a stable descriptive filename, suitable compression, explicit dimensions, and descriptive alt text.

© tsingyuai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in executors/generate-image of tsingyuai/growth-lab.

  • SKILL.md
  • agents/openai.yaml
  • generate-image.mjs

Open the folder on GitHubat commit 2d0807c

Compare with similar skills

Generate Image next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Generate Image compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generate Image this skilltsingyuai/growth-lab2k—~1kAutomated safety check: NotesApache-2.0
Nano Banana Pro Prompts Recommend SkillYouMind-OpenLab/nano-banana-pro-prompts-recommend-skill1.9k1 repos~4.1kAutomated safety check: PassNone
AI Image Creatorcentminmod/my-claude-code-setup2.7k—~8.1kAutomated safety check: NotesMIT
Chatgpt Image Adkrusemediallc/arcads-claude-code1.6k—~2.7kAutomated safety check: NotesMIT
Zy Cinematic Realismpopopo-99/zy-cinematic-realism567—~4.6kAutomated safety check: PassCC-BY-NC-4.0
Image GenerationNegai-ai/AgentClaw343—~1.9kAutomated safety check: NotesApache-2.0

Similar skills

  • Nano Banana Pro Prompts Recommend Skill

    YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill

    Recommend suitable prompts from 10,000+ Nano Banana Pro image generation prompts based on user needs.

    1.9k GitHub starsUsed in 1 repo~4.1k tokens
    Media & CreativeAuto-check passed
  • AI Image Creator

    centminmod/my-claude-code-setup

    Generate, edit-from-reference, or analyze images with AI via OpenRouter (Gemini, GPT Image, Seedream, Qwen, MAI, Grok, FLUX.2, Recraft, Muse, Riverflow; Cloudflare AI Gateway BYOK).

    2.7k GitHub stars~8.1k tokensUpdated yesterday
    Media & CreativeAuto-check: notes
  • Chatgpt Image Ad

    krusemediallc/arcads-claude-code

    Generate one or more standalone Meta image-ad creatives via ChatGPT Image 2 (gpt-image-2) through the Arcads external API.

    1.6k GitHub stars~2.7k tokensUpdated 17 days ago
    Media & CreativeAuto-check: notes
  • Zy Cinematic Realism

    popopo-99/zy-cinematic-realism

    Develop supplied scripts, short stories, or synopses into scene understanding, director-facing art concepts, and motivated narrative keyframes; compile scene ideas, visual references, or existing…

    567 GitHub stars~4.6k tokensUpdated 6 days ago
    Media & CreativeAuto-check passed
  • Image Generation

    Negai-ai/AgentClaw

    Generate, edit, and iterate raster images from text prompts or reference images with GPT Image, Nano Banana, or Seedream.

    343 GitHub stars~1.9k tokensUpdated 4 mo ago
    Media & CreativeAuto-check: notes
  • Image

    Nexus-JPF/note-companion

    When the user wants to create, generate, edit, or optimize images for marketing — blog heroes, social graphics, product mockups, profile banners, listing visuals, or brand assets.

    870 GitHub starsUsed in 3 repos~3.9k tokens
    Media & CreativeAuto-check passed

More from tsingyuai/growth-lab

All 22 skills in this repo
  • Screenshot Assets

    tsingyuai/growth-lab

    Capture authenticated product screenshots through the repository-owned Playwright CDP script and archive them in the invoking loop's Memory.

    2k GitHub stars~583 tokensUpdated 11 days ago
    Auto-check passed
  • Media Crawler

    tsingyuai/growth-lab

    Install, authenticate, configure, operate, and troubleshoot the external MediaCrawler client shared by Douyin, Kuaishou, Bilibili, Weibo, Tieba, and Zhihu collectors.

    2k GitHub stars~731 tokensUpdated 11 days ago
    Auto-check passed
  • Run SEO Page Loop

    tsingyuai/growth-lab

    Run an SEO page observation-action-review loop with persistent Memory by coordinating demand research, page creation, adversarial review, image generation, IndexNow submission, and performance review.

    2k GitHub stars~1.2k tokensUpdated 11 days ago
    Auto-check passed
  • Wechat Article Compose

    tsingyuai/growth-lab

    把一个已确认的选题写成微信公众号长文。锁定复刻锚与用户价值、写出 article.md / wechat.yml / review.md,并通过公众号通用合规检查和人工预览前自检。准备、改写或核验公众号文章时使用;不负责发布,也不产出小红书卡片。

    2k GitHub stars~860 tokensUpdated 11 days ago
    Auto-check passed
  • Wechat Mp Publish

    tsingyuai/growth-lab

    通过微信公众号官方 API 把公众号文章生产单元渲染为微信排版 HTML、生成阅读页预览、上传封面与正文图片并创建草稿;在三重确认下提交发布并查询状态。支持本机直连与固定 IP 远程发布服务两种模式。用户要求预览公众号、同步微信草稿、发布公众号或查询发布状态时使用。

    2k GitHub stars~797 tokensUpdated 11 days ago
    Auto-check: notes
  • Xhs Render Cards

    tsingyuai/growth-lab

    把已批准的小红书草稿、单一分析参考和真实产品素材变成可审查卡片:先完成 DAI 与 image plan,再按确定性、完整效果或可分离图层模式制作,机械验证 PNG 与清单并运行合规检查。精确文字和真实 UI 不交给模型猜测;AI 生图需要单独配置和授权。

    2k GitHub stars~1k tokensUpdated 11 days ago
    Auto-check passed

Questions about Generate Image

What does Generate Image do?

Generate, edit, or batch-create SEO, marketing, social, and document images with Gemini or OpenAI through the repository-owned Growth Lab image client. Generate Image is an agent skill from tsingyuai/growth-lab. Generate, edit, or batch-create SEO, marketing, social, and document images with Gemini or OpenAI through the repository-owned Growth Lab image client.

When should I use Generate Image?

Generate Image fits situations like: content loop needs illustrations; reference-image edits; multiple candidates; verified image text and composition.

How do I install Generate Image in Claude Code?

Run `npx skills add tsingyuai/growth-lab --skill generate-image -a claude-code`. Or copy the skill folder (executors/generate-image in tsingyuai/growth-lab) into .claude/skills/generate-image in your project. Claude Code loads it when a task matches its description.

How do I install Generate Image in Codex?

Run `npx skills add tsingyuai/growth-lab --skill generate-image -a codex`. Or copy the skill folder (executors/generate-image in tsingyuai/growth-lab) into .agents/skills/generate-image in your project. Codex loads it when a task matches its description.

Can I use Generate Image in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tsingyuai/growth-lab --skill generate-image -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-image, .gemini/skills/generate-image, .github/skills/generate-image and .opencode/skills/generate-image in your project.

What does Generate Image need to run?

Going by SKILL.md and its folder, Generate Image needs JavaScript for the scripts in its folder, the command-line tools its instructions call (node and python) and credentials named GEMINI_API_KEY and OPENAI_API_KEY. Our summary lists: Python 3; Node.js; A credential in GEMINI_API_KEY; A credential in OPENAI_API_KEY.

Does Generate Image access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Generate Image safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Generate Image use?

Generate Image is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generate Image use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Generate Image?

Skills that share tags, products or a category with Generate Image: Nano Banana Pro Prompts Recommend Skill (YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill, 1.9k stars), AI Image Creator (centminmod/my-claude-code-setup, 2.7k stars), Chatgpt Image Ad (krusemediallc/arcads-claude-code, 1.6k stars) and Zy Cinematic Realism (popopo-99/zy-cinematic-realism, 567 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Image?

tsingyuai (a GitHub organization) maintains it in tsingyuai/growth-lab, which has 1,997 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on September 28, 2026.

Source: tsingyuai/growth-lab on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.