Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add redfox-data/redfox-community-dsh --skill image-gengit clone --depth 1 https://github.com/redfox-data/redfox-community-dshWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/redfox-data/redfox-community-dsh/image-gen)<a href="https://agentmods.dev/skills/redfox-data/redfox-community-dsh/image-gen"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/image-gen/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/redfox-data/redfox-community-dsh/image-gen"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/image-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.02480 |
| Opus 5.5 | $0.00013 | $0.00992 |
| Sonnet 5.5 | $0.00006 | $0.00496 |
| Haiku 4.5 | $0.00003 | $0.00248 |
Grade A, and why
image-gen scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- instagram-video-downloader — 86% identical, 213 lines differ
How it starts
The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GPT-image2
调用 OpenAI 最新的 gpt-image-2 模型生成高质量图片。粘贴提示词就能用。
Skill 特色
- 支持命令行批量生成、参数化控制宽高比与分辨率档位
- 文生图 + 图生图双模式,
--image一个参数启用编辑模式(最多 2 张参考图)
能力概述
- 文生图:输入提示词,生成全新图片
- 图生图:上传参考图(最多 2 张) + 提示词,基于原图编辑生成
- 模型:gpt-image-2(OpenAI 最新图像模型)
- 接口:红狐新版
gptImage2Submit/gptImage2Result - 输出格式:PNG(新接口固定输出)
- 宽高比:
1:1/3:2/2:3/4:3/3:4/5:4/4:5/16:9(默认) /9:16/2:1/1:2/21:9/9:21 - 分辨率档位:
1k/2k(默认) /4k - 批量生成:单次最多 4 张(新接口上限)
- 兼容旧像素格式:仍接受
1792x1024等旧写法,脚本内部自动映射到宽高比 + 档位
使用方式
文生图 — 输入文字生成图片
# 基本生成(默认 16:9 + 2k)
python3 "$SKILL_PATH/assets/imagegen.py" "一只橘色的猫咪坐在窗台上看着窗外的夕阳"
# 横版 4k 高清
python3 "$SKILL_PATH/assets/imagegen.py" "futuristic city skyline" --size 16:9 --resolution 4k
# 竖版小红书封面(3:4 + 2k)
python3 "$SKILL_PATH/assets/imagegen.py" "product cover, minimal style" --size 3:4 --resolution 2k
# 方形 1k 快速档
python3 "$SKILL_PATH/assets/imagegen.py" "minimalist cat logo, flat design" --size 1:1 --resolution 1k
# 批量生成 4 张(新接口上限)
python3 "$SKILL_PATH/assets/imagegen.py" "icon set, flat style" -n 4
# 兼容旧像素写法(自动映射为 16:9 + 1k)
python3 "$SKILL_PATH/assets/imagegen.py" "cyberpunk street" --size 1792x1024
图生图 — 上传参考图编辑生成
# 单张参考图(自动上传 OSS → 提交任务)
python3 "$SKILL_PATH/assets/imagegen.py" "把猫咪改成白色,背景换成星空" --image ~/Pictures/cat.png
# 两张参考图(新接口最多支持 2 张)
python3 "$SKILL_PATH/assets/imagegen.py" "融合两张图的风格" --image ref1.png --image ref2.jpg
# 直接使用 URL 参考图(跳过上传步骤)
python3 "$SKILL_PATH/assets/imagegen.py" "把海报主体换成手表" --image "https://example.com/poster.jpg"
其他操作
# 仅提交任务(返回 taskId,不等待)
python3 "$SKILL_PATH/assets/imagegen.py" "complex scene" --no-download
# 查询已有任务结果
python3 "$SKILL_PATH/assets/imagegen.py" "" --task-id 5f100fcb8f3c4e3087c6aba93e121f7e
# 指定输出目录和文件名前缀
python3 "$SKILL_PATH/assets/imagegen.py" "illustration" -o ~/Pictures/AI --prefix artwork
参数说明
| 参数 | 说明 | 默认值 |
|---|---|---|
prompt |
生成/编辑提示词(必填,最多 500 字) | - |
--size |
宽高比(如 16:9);也兼容旧像素格式(如 1792x1024) |
16:9 |
--resolution |
分辨率档位:1k / 2k / 4k |
像素格式自动匹配;宽高比默认 2k |
-n, --count |
生成数量(1-4,新接口上限 4) | 1 |
--image |
参考图路径或 URL(可多次传入,最多 2 张) | - |
-o, --output-dir |
输出目录 | ~/Downloads/QoderImages |
--prefix |
文件名前缀 | image |
--no-download |
仅提交不等待 | - |
--task-id |
查询已有任务 | - |
--api-key |
指定 API Key | - |
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · +52 lines c6fe033589d4
- 3mo ago First seen · 161 lines · 32 tokens per session scan A 5511c1c51fe1
image-gen is a skill published in the GitHub repository redfox-data/redfox-community-dsh (13 stars, last pushed 6d ago), licensed MIT. It adds 32 tokens to every session and 2,480 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
image-gen compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| image-genredfox-data/redfox-community-dsh | Skill | 13 | 6d ago | MIT | A | 32 | Claude Code, Codex |
| dsh-hooks-authoringKYinCode/dsh-hooks-plugin | Skill | 3 | 3mo ago | MIT | A | 112 | Claude Code |
| web-artifact-designerxulelenlp/dsh-web-artifact-designer | Skill | 9 | 3mo ago | MIT | A | 115 | Claude Code, Codex |
| refactoromagents/omagents | Skill | 361 | 3d ago | MIT | A | 55 | Codex |
| tech-debt-auditomagents/omagents | Skill | 361 | 3d ago | MIT | A | 57 | Codex |
| deep-researchomagents/omagents | Skill | 361 | 3d ago | MIT | B | 24 | Codex |
| company-research-methodPerryLink/dsh-industry-research | Skill | 227 | 7d ago | Apache-2.0 | A | 83 | Claude Code, Codex |