agentleFS
JinchengGao-InftyJinchengGao-Infty/agent-loadout/skills/grok-imagine/SKILL.md

grok-imagine

Skill3 starsChanged 8 months agoMITView on GitHub

Generate or edit images using a Grok-compatible image API. Use when the user asks to create, draw, edit, or design images, illustrations, logos, or visual content. Chinese triggers: 画, 生成图片, 做图, 画一个, 设计, 图片, 插图, 配图, 头像, logo.

  • Reads credentials

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. nikships/droidproxy★ 128same name
    2. heslanx/grok-imagine★ 0same name
    3. kadaliao/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you get "rate_limit_exceeded", the quota is temporarily exhausted.

    line 54
  2. Distinctive:

    If you get "blocked", the prompt may have triggered content filters.

    line 55

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Prerequisites

Set these environment variables:

  • GROK_API_BASE — Your Grok-compatible API endpoint (e.g., http://localhost:8100/v1)
  • GROK_API_KEY — Your API key

Instructions

Generate image for: $ARGUMENTS

Image Generation

curl -s ${GROK_API_BASE}/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${GROK_API_KEY}" \
  -d '{
    "model": "grok-imagine-1.0",
    "prompt": "IMAGE_DESCRIPTION",
    "n": 1,
    "size": "1024x1024"
  }'

The response contains image URLs in .data[].url. Download and show to user.

Image Editing

curl -s ${GROK_API_BASE}/images/edits \
  -H "Authorization: Bearer ${GROK_API_KEY}" \
  -F "model=grok-imagine-1.0-edit" \
  -F "prompt=EDIT_DESCRIPTION" \
  -F "image=@/path/to/image.png"

Models

  • grok-imagine-1.0 — standard quality generation
  • grok-imagine-1.0-fast — faster, lower quality
  • grok-imagine-1.0-edit — edit existing images

Size Options

Common sizes: 1024x1024, 1024x1792, 1792x1024

Notes

  • If you get "rate_limit_exceeded", the quota is temporarily exhausted. Wait and retry.
  • If you get "blocked", the prompt may have triggered content filters. Try rephrasing.
  • Generated image URLs are temporary. Download important images to local storage.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.