linkfox-aigc-imagegen

linkfox-aigc-imagegen is a skill for Claude Code, Codex from linkfox-ai/linkfox-skills. It costs 132 tokens per session (1,729 once invoked), scanned A, original, MIT.

An AI image-generation tool that creates or edits images from prompts and, when provided, reference images, using several supported models.

In plain words
What is it for?
Use it to generate image variations, edit reference images, choose output size or model, and save completed images to the session media folder.
Why use it?
It turns image requests into an asynchronous job and retrieves the finished files without requiring manual API polling.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Good fit Use it to generate image variations, edit reference images, choose output size or model, and save completed images to the session media folder.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/linkfox-ai/linkfox-skills/linkfox-aigc-imagegen
Install

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.

Any agent
npx skills add linkfox-ai/linkfox-skills --skill linkfox-aigc-imagegen
Clone the repo
git clone --depth 1 https://github.com/linkfox-ai/linkfox-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for linkfox-aigc-imagegen

README.md
[![agentmods](https://agentmods.dev/badge/skills/linkfox-ai/linkfox-skills/linkfox-aigc-imagegen/github.svg)](https://agentmods.dev/skills/linkfox-ai/linkfox-skills/linkfox-aigc-imagegen)
Your own site
<a href="https://agentmods.dev/skills/linkfox-ai/linkfox-skills/linkfox-aigc-imagegen"><img src="https://agentmods.dev/badge/skills/linkfox-ai/linkfox-skills/linkfox-aigc-imagegen/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.

agentmods 80×15 button for linkfox-aigc-imagegen

Your own site · 80×15
<a href="https://agentmods.dev/skills/linkfox-ai/linkfox-skills/linkfox-aigc-imagegen"><img src="https://agentmods.dev/badge/skills/linkfox-ai/linkfox-skills/linkfox-aigc-imagegen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,729 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00132 $0.01729
Opus 5 $0.00066 $0.00864
Sonnet 5 $0.00026 $0.00346
Haiku 4.5 $0.00013 $0.00173

Measured 11d ago against content hash 3a4b37551b3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

linkfox-aigc-imagegen 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/aigc_imagegen.py, scripts/onboarding.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/linkfox-aigc-imagegen/SKILL.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI 生图

根据提示词和参考图生成图片,支持多种 AI 模型,异步创建任务后轮询获取结果。

核心特点

  • 多模型选择:7 种模型可选,各有不同特长和分辨率支持。
  • 图生图:可传入参考图+提示词生成新图。
  • 批量输出:单次最多生成 10 张图片。
  • 异步模式:创建任务立即返回 taskId,脚本自动轮询直到完成(超时 10 分钟)。

模型说明

模型(provider) 说明 特点
BANANA LFBanana(基础版) 仅支持 1K 分辨率
BANANA_2 LFBanana2 支持更高分辨率
BANANA_PRO LFBanana Pro(默认) 综合效果最好
GPT_2_IMAGE Img2 支持 quality 参数控制质量
AIDRAW_EDIT Linkfox-Image-1 适合编辑类场景
WAN2_7 Wan 2.7 万相模型
SEEDREAM5 Seedream 5.0 仅支持2K

参数概览

  • 必填字段promptimageUrlsoutputNum(默认 1)、resolution(默认 1K)、quality(默认 high,仅 GPT_2_IMAGE)

完整参数表、响应字段结构与错误码,见 references/api.md

调用方式

  • 创建任务POST /aigc/imageGenAsync → 返回 {taskId}
  • 轮询结果POST /aigc/taskQuery → 传入 {taskId} → 返回状态和结果
  • Python 脚本python scripts/aigc_imagegen.py '<JSON 参数>'(脚本内部自动完成创建+轮询)

异步流程

  1. 脚本调用 /aigc/imageGenAsync 创建任务,获得 taskId
  2. 轮询 /aigc/taskQuery,初始间隔 10 秒,每次递减 1 秒至最低 5 秒,最长等待 10 分钟
  3. 成功后自动下载图片到会话 media/ 目录

文件存储路径约定(遵循 CLAUDE.md 规范):

所有文件存储在 <cwd>/linkfox/<YYYY-MM-DD>/<session>/ 下,按类型划分目录:

内容类型 目录 路径格式 说明
生成的图片 media/ <session>/media/linkfox-aigc-imagegen-<ts_ms>.<ext> media/linkfox-aigc-imagegen-1718000000000.png
原始 API 响应 data/ <session>/data/linkfox-aigc-imagegen-<ts>.json 含完整 taskId、状态、临时 URL 等

输出策略(脚本默认行为)

  1. 成功生成图片时(无论多少张):

    • stdout 输出 Saved full response: <路径数组> 格式的行,例如:
      • 1张:Saved full response: ["/path/to/media/a.png"]
      • 多张:Saved full response: ["/path/to/media/a.png", "/path/to/media/b.png"]
    • 原始 API 响应(含临时 URL 等)静默落盘到 data/
    • 前端 UI 可解析 stdout 中所有 Saved full response: 行,把后续 JSON 数组渲染出来。
    • 每次调用脚本通常输出一行;分多次调用时会有多行。
  2. 无图片产物时(失败/无结果):

    • stdout 输出原始响应路径:Saved full response: /path/to/data/xxx.json

读数据建议禁止 Read 转存的图片文件内容(避免 base64 进入上下文)。直接把 Saved full response: 后的本地路径提供给用户即可。

Read the full file on GitHub · 122 lines

Files

What ships with it

4 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.

Changes

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.

  1. 11d ago First seen · 122 lines · 132 tokens per session scan A 3a4b37551b3c

Subscribe to this mod's changes

linkfox-aigc-imagegen is a skill published in the GitHub repository linkfox-ai/linkfox-skills (101 stars, last pushed 21d ago), licensed MIT. It adds 132 tokens to every session and 1,729 once invoked, about $0.0007 per session on Opus 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-30.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens