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.
npx skills add Peiiii/nextclaw --skill aigen-image-generationgit clone --depth 1 https://github.com/Peiiii/nextclawWrote 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.
[](https://agentmods.dev/skills/peiiii/nextclaw/aigen-image-generation)<a href="https://agentmods.dev/skills/peiiii/nextclaw/aigen-image-generation"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/aigen-image-generation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
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]
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.01184 |
| Opus 5.5 | $0.00019 | $0.00474 |
| Sonnet 5.5 | $0.00010 | $0.00237 |
| Haiku 4.5 | $0.00005 | $0.00118 |
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 2mo 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.
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.
aigenowns 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.jsoncontains providers and models.secrets.jsoncontains 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:
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.
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.
- 2mo ago First seen · 180 lines · 48 tokens per session scan A 9a623edf6d98
aigen-image-generation is a skill published in the GitHub repository Peiiii/nextclaw (266 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.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.
aigen-image-generation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| aigen-image-generationPeiiii/nextclaw | Skill | 266 | today | MIT | A | 48 | Claude Code, Codex |
| ha-skill-creatorshiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 106 | Claude Code |
| ha-browsershiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 140 | Claude Code |
| ha-logsshiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 183 | Claude Code, Codex |
| ha-pet-importshiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 109 | Codex |
| ha-skill-installershiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 82 | Claude Code, Codex |
| email-draftshiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 46 | Claude Code, Codex |