agentCLAWHUBUnverified

Codex Imggen

通过 Codex CLI 生成图片,支持尺寸控制和批量模式。依赖:codex (npm)。代理默认启用。用 generate.sh 生成单张,batch_generate.sh 批量生成游戏 UI 素材,gen_size.sh 指定尺寸。所有输出保存至 ~/.codex/generated_images/。 Skill: Codex Imggen Owner: axelhu Summary: 通过 Codex CLI 生成图片,支持尺寸控制和批量模式。依赖:codex (npm)。代理默认启用。用 generate.sh 生成单张,batch_generate.sh 批量生成游戏 UI 素材,gen_size.sh 指定尺寸。所有输出保存至 ~/.codex/generated_images/。 Tags: latest:1.1.1 Version history: v1.1.1 | 2026-06-08T10:28:23.801Z | user 回退 1.1.0 的整体时长预估(5-10 分钟太保守,按 30-90 秒 + 180s timeout 即可)。文档加一条'完成后看一眼图'的轻量提示。 v1.0.7 | 2026-06-08T10:26:06.790Z | user 回退 1.1.0 的整体时长预估(实测 5-10 分

OpenClaw

Rank

62

Safety

84

Downloads

1.0k

Updated

Oct 11, 2026

Version

1.1.1

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 11, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 11, 2026
Adoption signal
1K downloadsadoption · observed Oct 11, 2026
Latest release
1.1.1release · observed Jun 8, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s172yaxxd2drm0sc92554g9aq983hegj:codex-imggen
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-axelhu-codex-imggen/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

76,897 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: codex-imggen
version: 1.1.1
description: "通过 Codex CLI 生成图片,支持尺寸控制和批量模式。依赖:codex (npm)。代理默认启用。用 generate.sh 生成单张,batch_generate.sh 批量生成游戏 UI 素材,gen_size.sh 指定尺寸。所有输出保存至 ~/.codex/generated_images/。"
metadata: {"openclaw":{"emoji":"🎨","requires":{"anyBins":["codex"]}}}
---

# Codex 图片生成

> ⚠️ **美术必读 — 尺寸限制**:Codex CLI 最大输出约 1.57MP(1254×1254 级别),所有尺寸都会被卡在这个上限内。**4K/FHD/2K 都会降级**,不会真的输出那些尺寸。详见下方安全尺寸表。
>
> ⏱️ **超时注意**:Codex CLI 生图耗时较长(约 30~90 秒),调用时 timeout 应设不低于 **180 秒**,避免 agent 误判为失败而中断重试。

## 注意事项

> **完成后看一眼生成的图对不对**:Codex CLI 报错信息不一定准——报“failed N times with a server error”不一定真没生成。Agent 有视觉能力就调一下 image 工具看一眼生成的图是否对需求;没生成或内容不对,重试即可。

## 尺寸限制速查

| 用途 | 推荐尺寸 | 实际输出 | 风险 |
|------|---------|---------|------|
| **方图素材(安全)** | `1K` / `1:1` / `square` | 1254×1254 | ✅ 无缩放 |
| **横版大图(安全)** | `1536x1024` | 1536×1024 | ✅ 无缩放(唯一精确大尺寸) |
| **竖版素材(安全)** | `9:16` | 941×1672 | ✅ 无缩放 |
| **横版4:3(安全)** | `4:3` | 1448×1086 | ✅ 无缩放 |
| **16:9 横版** | `2K` / `FHD` / `16:9` | 1672×941 | ⚠️ 实际只有 HD 级 |
| **4K / 1080p / 720p** | ❌ 勿用 | 全部降级至 1672×941 | ❌ 严重缩水 |
| **小图如 512×512** | ❌ 勿用 | 膨胀至 1254×1254 | ❌ 严重放大 |

**结论**:游戏 UI 素材推荐用 `1K`(方图)或 `1536x1024`(横版),不要用 FHD/4K/720p 等标识。

## 快速参考

| 任务 | 命令 |
|------|------|
| 单张图片 | `bash ~/.openclaw/skills/codex-imggen/scripts/generate.sh "<prompt>" [output_dir] [-i <ref_image>]` |
| 指定尺寸 | `bash ~/.openclaw/skills/codex-imggen/scripts/gen_size.sh <size_key> "<subject>" [output_dir] [-i <ref_image>]` |
| 批量游戏 UI | `bash ~/.openclaw/skills/codex-imggen/scripts/batch_generate.sh "<style>" <count> [output_dir] [-i <ref_image>]` |

## 尺寸 Key(gen_size.sh)

| Key | 实际输出 | 比例 | MP | 精确度 |
|-----|---------|------|-----|--------|
| `1K` / `1:1` / `square` | 1254×1254 | 1:1 | ~1.57MP | ✅ ~1K(差 <3%) |
| `2K` / `16:9` / `FHD` | 1672×941 | 16:9 | ~1.57MP | ⚠️ ~2K(面积差 -22%) |
| `2048x1080` | 1727×911 | ~17:9 | ~1.57MP | ✅ 2K 最佳匹配 |
| `4K` / `3840x2160` | 1672×941 | 16:9 | ~1.57MP | ❌ 无法达到 4K |
| `9:16` | 941×1672 | 9:16 | ~1.57MP | ✅ 竖版 |
| `4:3` | 1448×1086 | 4:3 | ~1.57MP | ✅ |
| `1536x1024` | 1536×1024 | 3:2 | ~1.57MP | ✅ 完全精确 |
| `720p` / `HD` | 1672×941 | 16:9 | ~1.57MP | ⚠️ 等同 2K |

> **可选参数 `-i <ref_image>`**:传入参考图路径,Codex 会将参考图作为生成上下文,适用于风格迁移、色调匹配等场景。不传此参数则走默认行为。

## 生成图片

### 单张图片
```bash
# 无参考图
bash ~/.openclaw/skills/codex-imggen/scripts/generate.sh \
  "A fantasy sword with golden blade on white background (#ffffff), flat vector art style" \
  /tmp/my-images

# 带参考图(风格迁移)
bash ~/.openclaw/skills/codex-imggen/scripts/generate.sh \
  "A fantasy sword with golden blade on white background, flat vector art style" \
  /tmp/my-images \
  -i /path/to/reference.png
```

### 指定尺寸
```bash
bash ~/.openclaw/skills/codex-imggen/scripts/gen_size.sh \
  "1K" \
  "A medieval castle on a hill at sunset" \
  /tmp/my-images
```

### 批量游戏 UI 素材(2026-05-21 实测)
```bash
bash ~/.openclaw/skills/codex-imggen/scripts/batch_generate.sh \
  "flat vector art style, white background (#ffffff), each icon approximately 256x256 pixels, consistent 2px 

_meta.json

{
  "ownerId": "kn7bcaearb90wwcjbr9gpv32s5831k39",
  "slug": "codex-imggen",
  "version": "1.1.1",
  "publishedAt": 1780914503801
}

skill-card.md

## Description:

Generates images through Codex CLI with size controls, optional reference images, and batch game UI asset prompts.

This skill is ready for commercial/non-commercial use.

## Publisher:

[axelhu](https://clawhub.ai/user/axelhu)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and content creators use this skill to generate single images, targeted size or aspect-ratio images, and batch game UI image sheets through Codex CLI. It is useful when an agent needs repeatable shell-command guidance for image generation and copying PNG outputs to a requested directory.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Prompts and optional reference images may be sent outside the local machine through Codex CLI.

Mitigation: Use only approved Codex accounts, proxy settings, sandboxes, and data-handling policies; avoid confidential prompts, private artwork, internal screenshots, regulated data, and sensitive local image files unless approved.

Risk: The copy step can select the newest shared Codex generated-image directory rather than a guaranteed current-session result.

Mitigation: Run the skill in a restricted, disposable workspace and visually verify the copied output before using or publishing it.

Risk: Requested pixel dimensions may not be exact because the documented Codex CLI image output is constrained to about 1.57 megapixels.

Mitigation: Use the documented safe size keys when possible, and post-process with an image tool when exact final dimensions are required.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/axelhu/skills/codex-imggen)
- [ClawHub publisher profile](https://clawhub.ai/user/axelhu)

## Skill Output:

**Output Type(s):** [Shell commands, Files, Guidance]

**Output Format:** [Markdown guidance with bash commands and generated PNG image files]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Outputs are copied from ~/.codex/generated_images/ to the requested output directory; batch mode writes a combined PNG image.]

## Skill Version(s):

1.1.1 (source: SKILL.md frontmatter and server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
Github ReposUpdated 2d agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/axelhu/skills/codex-imggen",
      "sourceUrl": "https://clawhub.ai/axelhu/skills/codex-imggen",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T15:09:09.967Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-axelhu-codex-imggen/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-axelhu-codex-imggen/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-11T15:09:09.967Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1K downloads",
      "href": "https://clawhub.ai/axelhu/codex-imggen",
      "sourceUrl": "https://clawhub.ai/axelhu/codex-imggen",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T15:09:09.967Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.1.1",
      "href": "https://clawhub.ai/axelhu/codex-imggen",
      "sourceUrl": "https://clawhub.ai/axelhu/codex-imggen",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-06-08T10:28:23.801Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-axelhu-codex-imggen/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-axelhu-codex-imggen/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.1.1",
      "description": "回退 1.1.0 的整体时长预估(5-10 分钟太保守,按 30-90 秒 + 180s timeout 即可)。文档加一条'完成后看一眼图'的轻量提示。",
      "href": "https://clawhub.ai/axelhu/codex-imggen",
      "sourceUrl": "https://clawhub.ai/axelhu/codex-imggen",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-06-08T10:28:23.801Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 11, 2026.

Sponsored

Ads related to Codex Imggen and adjacent AI workflows.