Skip to content
Agentmart
Submit a tool

grok-image

Generate an image via the grok CLI (/imagine command).

Skill by techfreakworm

IndexedMIT★ 5
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/techfreakworm-grok-image

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Generate an image via the grok CLI (/imagine command). Returns a local PNG/JPG path. Used as one of the two providers in parallel dual-image dispatch (the other is codex-image-gen). Do NOT call this inline — always dispatch via Agent so the channel stays responsive.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/grok-image

Tools it pre-approves 5

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • mcp__grok_image__generate_image,
  • Bash(ls
  • *),
  • Bash(file
  • *)

What's inside

Skill name
grok-image
Description
Generate an image via the grok CLI (/imagine command). Returns a local PNG/JPG path. Used as one of the two providers in parallel dual-image dispatch (the other is codex-image-gen). Do NOT call this inline — always dispatch via Agent so the channel stays responsive.
License
MIT
Allowed tools
mcp__grok_image__generate_image,, Bash(ls, *),, Bash(file, *)
Instructions
37 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# grok-image

When invoked, you have a `prompt` describing the desired image.

## How grok image generation works

The `mcp__grok_image__generate_image` MCP tool calls the grok CLI:

```
grok -p "/imagine <prompt>" --output-format json
```

The CLI returns a JSON envelope with a `text` field containing a markdown image
link. The server extracts the path and copies the file to `output_dir` (default
`/tmp`). Returns `{"path": str, "session_id": str}`.

## Steps

1. Call `mcp__grok_image__generate_image` with the user's prompt and
   `output_dir="/tmp"`.
2. Return ONLY the JSON result: `{"path": "<absolute path>", "session_id": "<id>"}`.
3. Do NOT send the image to Telegram yourself. The orchestrator collects both
   results (grok + codex) and sends them together in one reply.

## Error handling

If `mcp__grok_image__generate_image` raises a `RuntimeError` or `FileNotFoundError`,
return a plain dict indicating the error:

```python
{"error": "<error message>", "provider": "grok"}
```

The orchestrator will surface this in the reply caption alongside the other
provider's successful result.

From techfreakworm/claude-soma, MIT.

More from techfreakworm/claude-soma

Signals

Stars
5
Forks
1
Open issues
0
Last commit (this folder)
May 31, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from techfreakworm

Cite this page

grok-image skill. Agent Mart. https://agentmart.dev/skills/techfreakworm-grok-image (last updated 2026-10-24)