Agent skill

Aigen Image Generation

by Peiiii in Peiiii/nextclaw

Use the local aigen CLI to generate images through configured providers such as OpenRouter or OpenAI.

MITAuto-check passedMedia & Creative

Install Aigen Image Generation

skills CLI
$ npx skills add Peiiii/nextclaw --skill aigen-image-generation -a claude-code

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

GitHub CLI
$ gh skill install Peiiii/nextclaw aigen-image-generation --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/Peiiii/nextclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/aigen-image-generation .claude/skills/aigen-image-generation && 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
aigen-image-generation
GitHub stars
260
Token cost
~1.3k tokens
SKILL.md length
529 words
Files
2
Skills in repo
70
Repo updated
First seen
Licence
MIT

At a glance

Use the local aigen CLI to generate images through configured providers such as OpenRouter or OpenAI.

  • The user asks to create
  • SKILL.md covers What This Skill Covers, What This Skill Does Not Cover, Readiness Check and Configuration Model, plus 6 more sections
  • Calls npx, npm and openssl; needs OPENROUTER_API_KEY
  • Render images and wants files produced locally through an external CLI

What it does

Aigen Image Generation is an agent skill from Peiiii/nextclaw. Use the local aigen CLI to generate images through configured providers such as OpenRouter or OpenAI. Use when the user asks to create, generate, or render images and wants files produced locally through an external CLI.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `marketplace.json`).

It sits in Media & Creative, covering Image generation and Model routing and gateways. It works with OpenRouter and OpenAI. The repository describes itself as: A human-centered long-term AI partner—not a task-centered assistant. The licence is MIT.

When your agent uses it

  • The user asks to create
  • Render images and wants files produced locally through an external CLI

Example prompts

  • “/aigen-image-generation”

Requirements

  • Node.js
  • A credential in OPENROUTER_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 297cf0e. 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

    Shell commands in SKILL.md call:

    • npx
    • npm
    • openssl

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

  • Network

    No URLs in SKILL.md. Its commands use npx and npm, which can reach the network depending on how they are called.

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

  • Credentials

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

    • OPENROUTER_API_KEY

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

Context cost

Aigen Image Generation loads about 1.3k tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 529 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from Peiiii/nextclaw at commit 297cf0e, republished under its MIT licence (© Peiiii). 529 words, ~1,271 tokens.

Download SKILL.mdSave it as .claude/skills/aigen-image-generation/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
aigen-image-generation
description
Use the local aigen CLI to generate images through configured providers such as OpenRouter or OpenAI. Use when the user asks to create, generate, or render images and wants files produced locally through an external CLI.

aigen Image Generation

Use this skill when the user wants AI-generated images and local file output through the aigen CLI.

This is a wrapped external tool skill:

  • The skill owns setup guidance, readiness checks, safe secret handling, and the generation workflow.
  • aigen owns provider configuration, API calls, response normalization, and writing image files.
  • Do not present this as a built-in NextClaw image engine.

What This Skill Covers

  • Generate images from text prompts.
  • Use provider/model routes such as openrouter/x-ai/grok-imagine-image-quality.
  • Configure provider records, model records, and provider API keys through aigen.
  • Save generated image files to a caller-created output directory.

What This Skill Does Not Cover

  • Video, audio, or image editing workflows.
  • Long-running daemon management.
  • Secret storage outside aigen secrets.
  • Provider-specific SDK patching or hidden fallback behavior.

Readiness Check

First check whether aigen is available:

bash
command -v aigen
aigen --version

If aigen is not installed, use the published package:

bash
npm install -g @nextclaw/aigen

If global install is not appropriate, use npx for the current task:

bash
npx -y @nextclaw/aigen@latest --version

Prefer a stable aigen binary for multi-step workflows because provider and secret commands need consistent local state.

Configuration Model

aigen stores its own config under ${AIGEN_HOME:-~/.aigen}:

  • config.json contains providers and models.
  • secrets.json contains masked provider API key records.

Do not edit these files manually unless the user explicitly asks. Prefer the dedicated commands.

First-Use Setup

For OpenRouter:

bash
aigen providers add openrouter --api-format openrouter --json

Set the API key through stdin. Never put the key directly in shell history:

bash
printf '%s' "$OPENROUTER_API_KEY" | aigen secrets set openrouter --stdin --json

Add a model under the provider:

bash
aigen models add openrouter/x-ai/grok-imagine-image-quality --kind image --generate --max-count 1 --json

If the user has not provided an API key and no safe environment variable is available, stop and ask the user for the key or for permission to use another configured provider. Do not invent, log, or echo API keys.

Generation Workflow

Create an output directory outside the repo unless the user explicitly asks for a project path:

bash
output_dir="$(mktemp -d)"

Choose a collision-resistant output name:

bash
output_name="image-$(date +%Y%m%d-%H%M%S)-$(openssl rand -hex 3)"

Generate:

bash
aigen image \
  --model openrouter/x-ai/grok-imagine-image-quality \
  --prompt "<prompt>" \
  --output-dir "$output_dir" \
  --output-name "$output_name" \
  --json

Parse the JSON result. A successful result contains:

  • ok: true
  • assets[]
  • assets[].path
  • assets[].mimeType
  • assets[].sizeBytes

Return the generated file path to the user. In environments that can render local images, show the image using its absolute path.

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

Safety Rules

  • Never print raw API keys.
  • Never write secrets into repo files, shell scripts, screenshots, logs, or markdown output.
  • Prefer AIGEN_HOME pointing to a temporary directory for tests and smoke checks.
  • Prefer non-repo output directories for generated images unless the user explicitly wants files in the project.
  • Do not overwrite generated files. Use unique output names.
  • If provider/model/secret setup fails, report the exact missing piece and stop before generation.

Diagnostics

Check provider and model setup:

bash
aigen providers list --json
aigen models list --json
aigen secrets list --json
aigen doctor --model openrouter/x-ai/grok-imagine-image-quality --json

Remote model discovery, when supported by the provider:

bash
aigen models list --remote --provider openrouter --kind image --json

Troubleshooting

aigen not found

Install @nextclaw/aigen globally or use npx -y @nextclaw/aigen@latest.

Config not found

Run provider/model setup commands first, or set AIGEN_HOME to the expected config directory.

Missing API key

Use aigen secrets set <provider-id> --stdin --json. Do not pass the key as a command-line argument.

Provider request failed

Check:

  • provider apiFormat
  • provider apiBase
  • model route
  • API key validity
  • whether the model supports image output

Use aigen models list --remote --provider <provider-id> --kind image --json when supported.

Success Criteria

The skill succeeds when:

  • aigen --version runs,
  • provider/model/secret readiness is confirmed,
  • aigen image returns ok: true,
  • at least one asset exists on disk,
  • and the user receives the generated image path or rendered image.

© Peiiii, MIT. 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 1 other file in skills/aigen-image-generation of Peiiii/nextclaw.

  • SKILL.md
  • marketplace.json

Open the folder on GitHubat commit 297cf0e

Compare with similar skills

Aigen Image Generation 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.

Aigen Image Generation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Aigen Image Generation this skillPeiiii/nextclaw260—~1.3kAutomated safety check: PassMIT
Media Toolstherichardngai-code/gpt-image-2-pro-max101—~1.5kAutomated safety check: NotesMIT
AI Image Creatorevolution-foundation/evo-nexus545—~5.1kAutomated safety check: NotesCustom licence
Generate ImageK-Dense-AI/claude-scientific-writer2.4k1 repos~3.8kAutomated safety check: NotesMIT
Baoyu ImagineLeoYeAI/openclaw-master-skills2.2k—~5.1kAutomated safety check: NotesMIT
Openrouter Text2imageQinghongLin/data2story-skill156—~357Automated safety check: PassMIT

Similar skills

  • Media Tools

    therichardngai-code/gpt-image-2-pro-max

    Two CLI tools for image generation + vision analysis using goclaw's provider-chain pattern.

    101 GitHub stars~1.5k tokensUpdated 4 mo ago
    Media & CreativeAuto-check: notes
  • AI Image Creator

    evolution-foundation/evo-nexus

    Generates PNG images through OpenRouter models, with transparent backgrounds and reference-image edits, and describes existing images with multimodal vision.

    545 GitHub stars~5.1k tokensUpdated 4 mo ago
    Media & CreativeAuto-check: notes
  • Generate Image

    K-Dense-AI/claude-scientific-writer

    Generate or edit images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow).

    2.4k GitHub starsUsed in 1 repo~3.8k tokens
    Media & CreativeAuto-check: notes
  • Baoyu Imagine

    LeoYeAI/openclaw-master-skills

    AI image generation with OpenAI, Azure OpenAI, Google, OpenRouter, DashScope, MiniMax, Jimeng, Seedream and Replicate APIs.

    2.2k GitHub stars~5.1k tokensUpdated 2 mo ago
    Media & CreativeAuto-check: notes
  • Openrouter Text2image

    QinghongLin/data2story-skill

    Generate images via OpenRouter. An agent skill from QinghongLin/data2story-skill.

    156 GitHub stars~357 tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-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 2 days ago
    Media & CreativeAuto-check: notes

More from Peiiii/nextclaw

All 70 skills in this repo
  • Nextclaw Skin Studio

    Peiiii/nextclaw

    A skill your agent uses when a user wants to browse, apply, inspect, create, refine, switch, or remove a NextClaw skin; wants a personal skin with arbitrary CSS, JavaScript, images, SVG, DOM…

    260 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • A skill your agent uses when a development task needs visible phase tracing, task-level or phase-level Token measurement, model/effort comparison, or a deterministic usage report or local dashboard…

    260 GitHub stars~802 tokensUpdated yesterday
    Auto-check passed
  • 当 NextClaw 产品更新后需要生成、替换、挑毛病或检查官网、GitHub README、用户文档或社交传播中的真实截图、AI 宣传视觉、整页 HTML 宣传预览、社区二维码等对外视觉资产时使用;也用于“更新截图”“重新截一批图”“做宣传页”“生成 campaign 页面”“视觉审稿”“五星挑刺法”或发布前检查视觉资产。普通站点布局开发或只写文章不触发。

    260 GitHub stars~801 tokensUpdated yesterday
    Auto-check passed
  • UI UX Pro Max

    Peiiii/nextclaw

    A skill your agent uses when the user wants professional UI/UX design guidance, design-system generation, UX review, or stack-specific frontend guidance through a bundled local UI/UX Pro Max dataset…

    260 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Impeccable

    Peiiii/nextclaw

    A skill your agent uses when the user wants distinctive, production-grade frontend design, anti-generic AI aesthetics, UX critique, technical UI audits, or final polish through bundled Impeccable…

    260 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Curate NextClaw skill resources, including OpenClaw and community sources.

    260 GitHub stars~479 tokensUpdated yesterday
    Auto-check passed

Questions about Aigen Image Generation

What does Aigen Image Generation do?

Use the local aigen CLI to generate images through configured providers such as OpenRouter or OpenAI. Aigen Image Generation is an agent skill from Peiiii/nextclaw. Use the local aigen CLI to generate images through configured providers such as OpenRouter or OpenAI.

When should I use Aigen Image Generation?

Aigen Image Generation fits situations like: the user asks to create; render images and wants files produced locally through an external CLI.

How do I install Aigen Image Generation in Claude Code?

Run `npx skills add Peiiii/nextclaw --skill aigen-image-generation -a claude-code`. Or copy the skill folder (skills/aigen-image-generation in Peiiii/nextclaw) into .claude/skills/aigen-image-generation in your project. Claude Code loads it when a task matches its description.

How do I install Aigen Image Generation in Codex?

Run `npx skills add Peiiii/nextclaw --skill aigen-image-generation -a codex`. Or copy the skill folder (skills/aigen-image-generation in Peiiii/nextclaw) into .agents/skills/aigen-image-generation in your project. Codex loads it when a task matches its description.

Can I use Aigen Image Generation 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 Peiiii/nextclaw --skill aigen-image-generation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aigen-image-generation, .gemini/skills/aigen-image-generation, .github/skills/aigen-image-generation and .opencode/skills/aigen-image-generation in your project.

What does Aigen Image Generation need to run?

Going by SKILL.md and its folder, Aigen Image Generation needs the command-line tools its instructions call (npx, npm and openssl) and credentials named OPENROUTER_API_KEY. Our summary lists: Node.js; A credential in OPENROUTER_API_KEY.

Does Aigen Image Generation access the network?

SKILL.md contains no URLs. Its commands use npx and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Aigen Image Generation 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. Review the folder before installing.

What licence does Aigen Image Generation use?

Aigen Image Generation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Aigen Image Generation use?

About 1.3k tokens (SKILL.md is roughly 5.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 Aigen Image Generation?

Skills that share tags, products or a category with Aigen Image Generation: Media Tools (therichardngai-code/gpt-image-2-pro-max, 101 stars), AI Image Creator (evolution-foundation/evo-nexus, 545 stars), Generate Image (K-Dense-AI/claude-scientific-writer, 2.4k stars) and Baoyu Imagine (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Aigen Image Generation?

Peiiii (a GitHub user) maintains it in Peiiii/nextclaw, which has 260 GitHub stars. The repository holds 70 skills in this directory. The repository was last updated on October 8, 2026.

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