grok-imagine

grok-imagine is a skill for Claude Code, Codex from nikships/droidproxy. It costs 81 tokens per session (2,415 once invoked), scanned A, original, MIT.

An image-generation and image-editing tool using Grok Imagine Image 2.0 through DroidProxy. It turns text descriptions or existing images into visual assets.

In plain words
What is it for?
Use it to create or edit illustrations, icons, mockups, and other visual assets.
Why use it?
It helps when you need a new image or a change to an existing one without creating the artwork manually. It is intended for image creation and editing, not for analyzing an attached image.

Skill for Claude CodeCodex

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

Good fit Use it to create or edit illustrations, icons, mockups, and other visual assets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nikships/droidproxy/grok-imagine
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 nikships/droidproxy --skill grok-imagine
Clone the repo
git clone --depth 1 https://github.com/nikships/droidproxy

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 grok-imagine

README.md
[![agentmods](https://agentmods.dev/badge/skills/nikships/droidproxy/grok-imagine/github.svg)](https://agentmods.dev/skills/nikships/droidproxy/grok-imagine)
Your own site
<a href="https://agentmods.dev/skills/nikships/droidproxy/grok-imagine"><img src="https://agentmods.dev/badge/skills/nikships/droidproxy/grok-imagine/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.

agentmods 80×15 button for grok-imagine

Your own site · 80×15
<a href="https://agentmods.dev/skills/nikships/droidproxy/grok-imagine"><img src="https://agentmods.dev/badge/skills/nikships/droidproxy/grok-imagine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,415 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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: 2 findings, up to medium

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 →

  • medium Data Exfiltration · line 56
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 89
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00081 $0.02415
Opus 5 $0.00041 $0.01208
Sonnet 5 $0.00016 $0.00483
Haiku 4.5 $0.00008 $0.00242

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

Security

Grade A, and why

grok-imagine scanned grade A with 1 finding 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

RESP=$(curl -sS http://localhost:8317/v1/images/generations \
skills/grok-imagine/SKILL.md · 187 lines

How it starts

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

Grok Imagine Image 2.0 (via DroidProxy)

Generate and edit images with grok-imagine-image-2.0 using the SuperGrok / X Premium+ OAuth session that powers DroidProxy chat. This is the current Imagine image model (text or image → image). Do not use the older grok-imagine-image / grok-imagine-image-quality ids unless the user explicitly asks for them.

Two things you can't guess and that everything else depends on:

  • The endpoint is http://localhost:8317, not api.x.ai. DroidProxy TLS-forwards any request whose model starts with grok- and injects the OAuth bearer.
  • Auth is Authorization: Bearer dummy-not-used. The real token comes from the proxy. Never ask for or use an XAI_API_KEY.

Use for generating or editing visual assets. Not for understanding an image the user already attached — that's chat multimodal, not this skill.

Prompting

xAI rewrites the prompt with an upsampler before generation, so write a clear scene rather than a tag soup. If the user gives a detailed prompt or asks you to use theirs, use it verbatim. Otherwise craft 2–5 sentences of natural prose:

subject → action/pose → setting → style → composition → lighting/mood → key details

  • Front-load the subject. Give strong high-level direction for mood, composition, lighting, and style without specifying every pixel.
  • State what to include, not what to exclude. No negative prompts.
  • One coherent scene per prompt. Match aspect_ratio to the use case: icons 1:1, banners 16:9, stories 9:16.
  • For edits, describe only what changes and what must stay the same.
  • For multi-image edits, address sources as <IMAGE_0>, <IMAGE_1>, <IMAGE_2> in the prompt (max 3). Combining subjects, transferring a style, or composing a scene from references is the intended use.
  • Ground real people, brands, places, and “current/latest” facts with a web search first and put the verified details in the prompt. For a named real person, edit from a real reference photo — do not generate the likeness from text alone.

Read the full file on GitHub · 187 lines

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. 9d ago First seen · 187 lines · 81 tokens per session scan A e39cfd2d96fd

Subscribe to this mod's changes

grok-imagine is a skill published in the GitHub repository nikships/droidproxy (121 stars, last pushed yesterday), licensed MIT. It adds 81 tokens to every session and 2,415 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.