agent-browser
Use Agent Browser for real browser navigation, dynamic pages, and web interaction; also use it as a distinct browser-based path…
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.
$ npx -y skills add peiiii/nextclaw --skill aigen-image-generation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/aigen-image-generationContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
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.
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:
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.
`aigen` stores its own config under `${AIGEN_HOME:-~/.aigen}`:
Do not edit these files manually unless the user explicitly asks. Prefer the dedicated commands.
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:
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.
Create an output directory outside the repo unless the user explicitly asks for a project path:
output_dir="$(mktemp -d)"
Choose a collision-resistant output name:
output_name="image-$(date +%Y%m%d-%H%M%S)-$(openssl rand -hex 3)"
Generate:
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:
Return the generated file path to the user. In environments that can render local images, show the image using its absolute path.
Check provider and model setup:
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:
aigen models list --remote --provider openrouter --kind image --json
Install `@nextclaw/aigen` globally or use `npx -y @nextclaw/aigen@latest`.
Run provider/model setup commands first, or set `AIGEN_HOME` to the expected config directory.
Use `aigen secrets set <provider-id> --stdin --json`. Do not pass the key as a command-line argument.
Check:
Use `aigen models list --remote --provider <provider-id> --kind image --json` when supported.
The skill succeeds when:
Your long-term personal AI partner. NextClaw's mission is to be a good long-term partner to you. We are building toward a 1.0 that understands you, takes useful initiative, and continuously improves itself.
Use Agent Browser for real browser navigation, dynamic pages, and web interaction; also use it as a distinct browser-based path…
Turn a user request into a scheduled automation by configuring cron jobs, including session-bound follow-ups and periodic checks.
Use when the user asks to keep watching an external state, notify them when something changes or a condition is met, remember…
Use when deciding how to deliver an AI result: reply now, put durable news, reports, recommendations, or articles in the NextClaw…
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced…