aigen-image-generation

aigen-image-generation is a skill for Claude Code, Codex from Peiiii/nextclaw. It costs 48 tokens per session (1,184 once invoked), scanned A, original, MIT.

A local command-line tool for creating image files from text prompts through configured image providers such as OpenRouter or OpenAI.

In plain words
What is it for?
Use it to create illustrations, mockups, or other images from descriptions and write them to a chosen output folder. It does not cover video, audio, or image editing.
Why use it?
It gives an agent a way to generate images and save the results locally. It also keeps provider settings and API keys in the tool's own configuration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create illustrations, mockups, or other images from descriptions and write them to a chosen output folder. It does not cover video, audio, or image editing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peiiii/nextclaw/aigen-image-generation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Peiiii/nextclaw --skill aigen-image-generation
Clone the repo
git clone --depth 1 https://github.com/Peiiii/nextclaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aigen-image-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/peiiii/nextclaw/aigen-image-generation.svg)](https://agentmods.dev/skills/peiiii/nextclaw/aigen-image-generation)
Your own site
<a href="https://agentmods.dev/skills/peiiii/nextclaw/aigen-image-generation"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/aigen-image-generation.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,184 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 58
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium MCP Rug Pull · line 48
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 149
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01184
Opus 5 $0.00024 $0.00592
Sonnet 5 $0.00010 $0.00237
Haiku 4.5 $0.00005 $0.00118

Measured 4d ago against content hash 9a623edf6d98, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

aigen-image-generation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/aigen-image-generation/SKILL.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

command -v aigen
aigen --version

If aigen is not installed, use the published package:

npm install -g @nextclaw/aigen

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

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:

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

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

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

Add a model under the provider:

Read the full file on GitHub · 180 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 180 lines · 48 tokens per session scan A 9a623edf6d98

Subscribe to this mod's changes

aigen-image-generation is a skill published in the GitHub repository Peiiii/nextclaw (256 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 1,184 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright…

PM-Shawn/Abu-Cowork · 62 tokens

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

PM-Shawn/Abu-Cowork · 59 tokens

infographic

A guide for creating infographics with only HTML and CSS. Infographics present structured information visually, such as timelines, comparisons, funnels and organisation charts.

PM-Shawn/Abu-Cowork · 71 tokens

slack-gif-creator

Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack.".

PM-Shawn/Abu-Cowork · 51 tokens

mermaid-diagram

A guide for writing Mermaid code for structured diagrams. Mermaid is a text format that can describe diagrams such as flowcharts, architecture diagrams and timelines.

PM-Shawn/Abu-Cowork · 104 tokens

skin-creator

Create and apply a two-asset LobsterAI visual skin from the user's style description. Use only when the AI Skin Designer kit supplies the structured skinpack workflow marker; do not use for ordinary theme or image requests.

netease-youdao/LobsterAI · 48 tokens