Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, UI mockups, product shots, or transparent-background…

Apache-2.0Auto-check passedMedia & Creative

Install Imagegen

skills CLI
$ npx skills add nexus-research-lab/nexus --skill imagegen -a claude-code

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

GitHub CLI
$ gh skill install nexus-research-lab/nexus imagegen --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/nexus-research-lab/nexus.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/imagegen .claude/skills/imagegen && 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
imagegen
GitHub stars
151
Token cost
~600 tokens
SKILL.md length
96 words
Files
4 (incl. scripts, references)
Skills in repo
17
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, UI mockups, product shots, or transparent-background…

  • The result should be an image asset rather than repo-native SVG
  • SKILL.md covers 快路径, 判断, 生成 and 编辑, plus 2 more sections
  • Runs Python scripts from its folder
  • Tasks that involve Image generation

What it does

Imagegen is an agent skill from nexus-research-lab/nexus. Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, UI mockups, product shots, or transparent-background cutouts. Use when the result should be an image asset rather than repo-native SVG, HTML/CSS, or canvas.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts and reference files (for example `references/prompting.md`, `references/sample-prompts.md` and `scripts/remove_chroma_key.py`).

It sits in Media & Creative, covering Image generation and UI design. The repository describes itself as: Multi-agent collaboration platform for persistent, proactive AI agents across rooms, workspaces, skills, and external services. The licence is Apache-2.0.

When your agent uses it

  • The result should be an image asset rather than repo-native SVG
  • Tasks that involve Image generation
  • Tasks that involve UI design

Example prompts

  • “/imagegen”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 67f54e7. 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 1 file in scripts/ (Python), which the agent can run.

    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 no API keys, tokens, secrets or passwords.

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

Context cost

Imagegen loads about 600 tokens when it runs, and up to ~3.5k if it reads all its reference files. Until then it costs about 77 tokens; SKILL.md has 96 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~77
When it runs · the whole SKILL.md, loaded when a task matches
~600
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.5k

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 passed

The automated check found no risky patterns in SKILL.md.

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); the scripts in this folder are not scanned.

SKILL.md

The full file from nexus-research-lab/nexus at commit 67f54e7, republished under its Apache-2.0 licence (© nexus-research-lab). 96 words, ~600 tokens.

Download SKILL.mdSave it as .claude/skills/imagegen/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
imagegen
description
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, UI mockups, product shots, or transparent-background cutouts. Use when the result should be an image asset rather than repo-native SVG, HTML/CSS, or canvas.
title
Image Generation
scope
any
tags
image, asset, generation, design

Image Generation Skill

为当前 workspace 生成或编辑位图资产。只使用 nexus.generate_image 与 nexus.edit_image;Provider、鉴权、接口兼容和响应解析全部由 Go 服务负责。

快路径

普通单图生成必须走内置工具快路径。

  • 调用 generate_image,不要调用 Bash。
  • 不读取 references。
  • 不创建 prompt 文件。
  • 不读取输出图片。
  • 不做目录探测。
  • 不使用 Write、Read、LS、Glob、TaskOutput。
  • 不主动用 high quality。

工具入参模板:

json
{
  "prompt": "A concise production prompt",
  "size": "1024x1024",
  "quality": "low",
  "output_format": "png",
  "file_name": "stable-name"
}

如果用户明确要横幅、封面或宽图,使用 size=1792x1024,仍保持 quality=low。如果图片服务返回 429/过载,最多再调用 1 次工具,降低尺寸或保持 low 重试。

工具返回的 item.path 和 item.markdown 是结果真相源。不要打开生成后的 PNG/JPG/WebP 文件验证,这会把二进制或 base64 塞回上下文。 不要在工具入参里选择 Provider 或模型,让 Settings 里的默认生图模型决定。用户需要切换默认生图模型时,使用 nexus-configuration;当前 authority 不允许时,引导用户到 Settings 或主智能体完成。

判断

  • 没有输入图片:默认 generate。
  • 用户要求改图、局部替换、合成、mask:使用 edit。
  • 用户提供图片只是做风格或构图参考:仍使用 generate,除非明确要求编辑原图。
  • 多个不同资产使用多次 generate_image 调用,每个资产一条 prompt;不要把多资产塞进一个 prompt。
  • 需求更适合 SVG、HTML/CSS、Canvas 或现有矢量源时,不用本 skill。

生成

把用户描述整理成一条不超过 600 字符的 prompt。用户描述已经具体时不要读取任何 reference。

json
{
  "prompt": "Nexus AI assistant promotional banner, futuristic dark blue background, glowing neural network core, large clean NEXUS text, premium technology style",
  "size": "1024x1024",
  "quality": "low",
  "output_format": "png",
  "file_name": "nexus-promo-banner"
}

编辑

json
{
  "image_path": "input.png",
  "mask_path": "mask.png",
  "prompt": "Make this black and white",
  "output_format": "png",
  "file_name": "edited-image"
}

调用 edit_image;image_path 和 mask_path 使用 workspace 相对路径。只有路径不明确时才做一次必要的文件查找。

回复

最终回复保持极简,只给工具返回的 markdown 和路径。不要输出尺寸、大小、配色说明、过程说明或下一步建议,除非用户明确询问。

markdown
已生成:`output/imagegen/nexus-promo-banner.png`

![Nexus 宣传图](output/imagegen/nexus-promo-banner.png)

复杂任务参考

普通单图生成不要读取 references。只有复杂多资产、透明背景、强文字约束或编辑失败排查时再打开对应文件:

  • references/prompting.md
  • references/sample-prompts.md
  • scripts/remove_chroma_key.py

© nexus-research-lab, 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 3 other files (scripts, references) in skills/imagegen of nexus-research-lab/nexus.

  • SKILL.md
  • references/prompting.md
  • references/sample-prompts.md
  • scripts/remove_chroma_key.py

Open the folder on GitHubat commit 67f54e7

Compare with similar skills

Imagegen 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.

Imagegen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Imagegen this skillnexus-research-lab/nexus151—~600Automated safety check: PassApache-2.0
Imagensanjay3290/ai-skills4326 repos~657Automated safety check: PassApache-2.0
Sf Diagram NanobananaproJaganpro/sf-skills424—~1.6kAutomated safety check: PassMIT
Image PromptingBlockRunAI/blockrun-mcp391—~3.6kAutomated safety check: PassMIT
Imagegennexu-io/open-design100k—~300Automated safety check: PassApache-2.0
Imagennexu-io/open-design100k—~279Automated safety check: PassApache-2.0

Similar skills

  • Imagen

    sanjay3290/ai-skills

    Generate images using Google Gemini's image generation capabilities.

    432 GitHub starsUsed in 6 repos~657 tokens
    Media & CreativeAuto-check passed
  • Sf Diagram Nanobananapro

    Jaganpro/sf-skills

    AI-powered image generation for Salesforce visuals via Nano Banana Pro.

    424 GitHub stars~1.6k tokensUpdated 5 mo ago
    Media & CreativeAuto-check passed
  • Image Prompting

    BlockRunAI/blockrun-mcp

    A skill your agent uses when generating or editing images via blockrunimage — especially with GPT Image 2, Nano Banana, or Grok Imagine for posters, UI mockups, marketing assets, product shots, or…

    391 GitHub stars~3.6k tokensUpdated 2 days ago
    Media & CreativeAuto-check passed
  • Imagegen

    nexu-io/open-design

    Generate and edit images using OpenAI's Image API for project assets — UI mockups, icons, illustrations, social cards, and visual references.

    100k GitHub stars~300 tokensUpdated today
    Media & CreativeAuto-check passed
  • Imagen

    nexu-io/open-design

    Generate images using Google Gemini's image generation API for UI mockups, icons, illustrations, and visual assets.

    100k GitHub stars~279 tokensUpdated today
    Media & CreativeAuto-check passed
  • Ky Design To HTML

    KyrieCheungYep/ky-design-to-html-skill

    Convert visible UI references such as screenshots, exported mockups, Figma frame images, SaaS empty states, dashboards, and landing page screenshots into high-quality HTML/CSS by decomposing layout…

    163 GitHub stars~2.8k tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed

More from nexus-research-lab/nexus

All 17 skills in this repo
  • Caixun Work Hours

    nexus-research-lab/nexus

    彩讯(RichPMS)工时填报助手:把当前会话、代码记录或用户口述整理成日报,按 8 小时分配,经用户确认后写入工时系统。用户提到“填日报、报工、补报、本周工时、日报被驳回”时使用。

    151 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Wechat Article Search

    nexus-research-lab/nexus

    搜索微信公众号文章,并整理标题、摘要、发布时间、来源公众号和链接。用户提到微信公众号、 公众号文章、微信文章、搜一批公众号资料、按关键词找公众号内容、查某公众号相关报道, 或需要为中文研究收集微信公众平台文章时使用;即使用户只说“搜微信里的文章”也应触发。

    151 GitHub stars~858 tokensUpdated today
    Auto-check: notes
  • XLSX

    nexus-research-lab/nexus

    只要电子表格文件(.xlsx、.xlsm、旧版 .xls、.csv、.tsv)是任务的主要输入或输出,或者需要 被打开、读取、创建、修改,就使用本 Skill。也适用于公式、格式、图表、数据清洗和表格格式转换。

    151 GitHub stars~501 tokensUpdated today
    Auto-check passed
  • Automation

    nexus-research-lab/nexus

    通过宿主提供的 nexus.command 结构化工具查询、规划、确认并管理 scheduled task。用户要求提醒、延迟执行、周期检查、定时报表、补跑、结果重投递、持续关注、修改或删除任务、处理任务权限阻塞时使用;同时适用于定时任务后台 run 检查自身状态。

    151 GitHub stars~541 tokensUpdated today
    Auto-check passed
  • Execution Orchestrator

    nexus-research-lab/nexus

    选择执行结构、委派子智能体、管理 Nexus 工作图与可复用模板;遵守本轮权限,简单任务直接完成. An agent skill from nexus-research-lab/nexus.

    151 GitHub stars~821 tokensUpdated today
    Auto-check passed
  • Goal Manager

    nexus-research-lab/nexus

    在当前 Nexus round 中创建、读取、明确纠正、审计、完成或阻塞 durable Goal。只处理用户或系统明确的跨轮目标生命周期;普通任务、提醒和执行图责任分别使用直接执行、Automation 或 Execution。

    151 GitHub stars~616 tokensUpdated today
    Auto-check passed

Questions about Imagegen

What does Imagegen do?

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, UI mockups, product shots, or transparent-background…. Imagegen is an agent skill from nexus-research-lab/nexus. Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, UI mockups, product shots, or transparent-background cutouts.

When should I use Imagegen?

Imagegen fits situations like: the result should be an image asset rather than repo-native SVG; tasks that involve Image generation; tasks that involve UI design.

How do I install Imagegen in Claude Code?

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

How do I install Imagegen in Codex?

Run `npx skills add nexus-research-lab/nexus --skill imagegen -a codex`. Or copy the skill folder (skills/imagegen in nexus-research-lab/nexus) into .agents/skills/imagegen in your project. Codex loads it when a task matches its description.

Can I use Imagegen 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 nexus-research-lab/nexus --skill imagegen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/imagegen, .gemini/skills/imagegen, .github/skills/imagegen and .opencode/skills/imagegen in your project.

What does Imagegen need to run?

Going by SKILL.md and its folder, Imagegen needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Imagegen 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 Imagegen safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Imagegen use?

Imagegen 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 Imagegen use?

About 600 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.9k tokens, read only when the agent opens those files.

What are the alternatives to Imagegen?

Skills that share tags, products or a category with Imagegen: Imagen (sanjay3290/ai-skills, 432 stars), Sf Diagram Nanobananapro (Jaganpro/sf-skills, 424 stars), Image Prompting (BlockRunAI/blockrun-mcp, 391 stars) and Imagegen (nexu-io/open-design, 100k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Imagegen?

nexus-research-lab (a GitHub organization) maintains it in nexus-research-lab/nexus, which has 151 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 10, 2026.

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