grok-imagine-image SKILL.md skillB
grok-imagine-image from wwwzhouhui/skills_collection is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add wwwzhouhui/skills_collection/grok-imagine-image@git:20260726.4787fccPins git:20260726.4787fcc in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- wwwzhouhui/skills_collection
- Path
grok-imagine-image/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260726.4787fcc, committed Jul 26, 2026
- Size
- 3,977 bytes
- Repository stars
- 284
- License
- none declared
使用 grok-imagine-image 模型,通过兼容 Grok2API / OpenAI 风格的接口(`/v1/images/generations`)生成图片。当用户要求用 Grok Imagine / grok-imagine-image 生成、绘制、创作图片时使用;或其他工作流需要本地脚本调用该生图模型时使用。当用户明确指定 Grok Imagine,或提供该 Grok2API 地址时,优先使用本技能,而不是通用生图工具。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Grok Imagine 生图
通过 `POST /v1/images/generations` 调用 `grok-imagine-image` 生成图片。
## 快速开始
在任意工作区执行:
```bash
python "$CODEX_HOME/skills/grok-imagine-image/scripts/generate.py" \
--prompt "a cozy reading nook with soft daylight" \
--output-dir ./outputs \
--name-tag reading-nook \
--json
```
Windows 绝对路径示例:
```bash
python "C:\Users\Administrator\.codex\skills\grok-imagine-image\scripts\generate.py" \
--prompt "a simple red apple on a white background" \
--output-dir "./outputs" \
--json
```
## 默认配置
| 项目 | 默认值 |
|---|---|
| API 地址 | `http://43.163.230.83:8000/v1` |
| 模型 | `grok-imagine-image` |
| 尺寸 | `1024x1024` |
| 超时 | `180` 秒 |
| API Key | 写在 `scripts/generate.py` 中的占位符(`DEFAULT_API_KEY`) |
可用环境变量或参数覆盖:
- `GROK_IMAGINE_API_KEY` / `--api-key`
- `GROK_IMAGINE_API_BASE` / `--api-base`
- `GROK_IMAGINE_MODEL` / `--model`
## 工作流程
1. 确认用户需要使用 Grok Imagine 生图。
2. 写清楚提示词(该接口通常英文 prompt 效果更稳)。
3. 选择当前工作区下的输出目录(面向用户的图片优先放 `outputs/`)。
4. 运行 `scripts/generate.py`。
5. 回报本地保存路径和可访问的图片 URL。
6. 若下载成功,把本地图片路径展示给用户。
## 重要接口行为
- **只使用** `/v1/images/generations`。不要用 `/v1/chat/completions` 调 `grok-imagine-image`。
- 成功响应大致如下:
```json
{
"created": 1785029720,
"data": [
…Read the whole file at its exact version.
How to install
mdr add wwwzhouhui/skills_collection/grok-imagine-image@sha256:2eaaf72c54b44445The line at the top of this page pins the label git:20260726.4787fcc, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_j7v2h3ugyzoazrbb)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Jul 26, 2026.
Audit of the latest version
- fail: No link to a raw IP address (matched: http://43.163.230.83:8000)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3977 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
wwwzhouhui/skills_collection · 284 stars · license none declared · pushed 2026-10-16 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_j7v2h3ugyzoazrbb GET https://markdownregistry.com/api/v1/resolve?ref=wwwzhouhui/skills_collection/grok-imagine-image GET https://markdownregistry.com/api/v1/blob/2eaaf72c54b44445f039b46ecf2a787657516089d21f0701e2d468d4a54ef721
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.