Skip to content
Skill

Grok imagine

Generates images from text prompts through xAI Grok's imagine builtin

Grok imagine is an open-source agent skill for design and media. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
5
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Grok imagine

This skill lets an agent produce an image from a written description by calling xAI Grok's /imagine builtin through the bundled companion script. The companion sanitizes the returned image, saves it to a session path under the Grok home folder or to a location the user chooses, and reports the absolute file path along with a command for opening the image on macOS, with xdg-open as the Linux substitute.

The workflow is a single shell invocation of the companion's imagine subcommand. Optional flags cover saving to a chosen path, overriding the default imagine model, setting a timeout (five minutes by default, zero to disable), and requesting JSON output. The agent is expected to return the script's output unchanged, and if Grok refuses on content-policy grounds, to show that refusal text rather than retry with a softened prompt.

The skill needs the Grok companion plugin installed and an xAI Grok account configured for it. Video generation and image analysis are outside its scope and are handled by separate flows.

When your agent uses it

Generate an image from a text description using xAI Grok's `/imagine` builtin. Use when the user asks for an image, picture, illustration, logo, mockup, or visual artifact. Returns the absolute path to the saved image plus an `open` command to view it.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (2 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the grok plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add LovelaceLoom/grok-plugin-cc
/plugin install grok@grok-plugin-cc

Or copy only this skill to ~/.claude/skills/grok-imagine:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/grok-imagine &&
cp -R "$tmp/plugins/grok/skills/grok-imagine" ~/.claude/skills/grok-imagine &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/grok-imagine inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/grok-imagine to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/grok-imagine &&
cp -R "$tmp/plugins/grok/skills/grok-imagine" ~/.agents/skills/grok-imagine &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/grok-imagine inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/grok-imagine to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/grok-imagine &&
cp -R "$tmp/plugins/grok/skills/grok-imagine" ~/.cursor/skills/grok-imagine &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/grok-imagine inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/LovelaceLoom/grok-plugin-cc.git --path plugins/grok/skills/grok-imagine

Or copy the folder to ~/.gemini/skills/grok-imagine yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/grok-imagine:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/grok-imagine &&
cp -R "$tmp/plugins/grok/skills/grok-imagine" ~/.copilot/skills/grok-imagine &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/grok-imagine inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git

Then copy grok-plugin-cc/plugins/grok/skills/grok-imagine into your agent's skills folder as grok-imagine. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Text-to-image generation
Turns a plain-language description into an image using Grok's imagine builtin.
Saved file paths
Reports the absolute path of the generated image and can copy it to a chosen location.
Viewing command
Provides an open command for macOS, with a Linux alternative, to view the result.
Model and timeout options
Allows overriding the imagine model and adjusting the generation timeout.
Machine-readable output
Offers a JSON output mode for scripts and other tooling.
Refusal passthrough
Surfaces Grok's content-policy refusal text instead of silently rewriting the prompt.

Good for

  • Generate an illustration for a blog post
  • Create a logo concept for a new project
  • Draw a mockup of a app screen
  • Make a picture of a scene described in text
  • Save a generated image to a specific folder

Grok imagine FAQ

When does Grok imagine trigger?

It is used when the user asks for an image, picture, illustration, logo, mockup or other visual artifact generated from a text description.

What does Grok imagine need to run?

It calls the Grok companion script through node using the plugin root path, so the Grok companion plugin must be installed.

Can Grok imagine generate video?

No. Video generation is handled by a separate imagine-video subcommand that is currently available only as a slash command.

Can Grok imagine analyze an existing image?

No. Describing an existing image with Grok is a separate flow and is not covered by this skill.

How do I install Grok imagine in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/grok-imagine to use it in all your projects, or to .claude/skills/grok-imagine in one project. Or install the grok plugin, which includes it: /plugin marketplace add LovelaceLoom/grok-plugin-cc, then /plugin install grok@grok-plugin-cc.

Does Grok imagine run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Grok imagine?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Grok imagine?

The closest alternatives to Grok imagine are Generate image, Text in image, Imagegen, Nano banana pro openrouter and Photoreal stills.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from LovelaceLoom/grok-plugin-cc

  1. Sends a one-off question to xAI Grok and returns its answer unchanged

    • Open source
    • 5 GitHub stars
    • AI models and LLM tooling
  2. Lets a Claude Code subagent hand rescue tasks to the Grok companion runtime

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Runs parallel Grok analyses from several expert angles and merges them into one verdict

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Guides an agent in writing focused prompts for Grok coding, review and research tasks

    • Open source
    • 5 GitHub stars
    • AI models and LLM tooling
  5. Hands a long coding task or root-cause investigation to xAI Grok via a companion script

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Runs deep web-grounded research on a topic through xAI Grok with self-verification

    • Open source
    • 5 GitHub stars
    • Web search and scraping