Agent skill

Linkfox Aigc Imagegen

by linkfox-ai in linkfox-ai/linkfox-skills

AI生图工具,根据提示词和参考图生成图片。支持多种模型(BANANA/BANANA2/BANANAPRO/GPT2IMAGE/AIDRAWEDIT/WAN27/SEEDREAM5),可控制分辨率、宽高比、输出数量。用户说"生成图片"、"AI画图"、"AI生图"、"帮我画"、"图片生成"、"image generation"、"generate…

MITAuto-check passedMedia & Creative

Install Linkfox Aigc Imagegen

skills CLI
$ npx skills add linkfox-ai/linkfox-skills --skill linkfox-aigc-imagegen -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install linkfox-ai/linkfox-skills linkfox-aigc-imagegen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/linkfox-ai/linkfox-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/linkfox-aigc-imagegen .claude/skills/linkfox-aigc-imagegen && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
linkfox-aigc-imagegen
GitHub stars
107
Token cost
~944 tokens
SKILL.md length
237 words
Files
5 (incl. scripts, references)
Skills in repo
177
Repo updated
First seen
Licence
MIT

At a glance

AI生图工具,根据提示词和参考图生成图片。支持多种模型(BANANA/BANANA2/BANANAPRO/GPT2IMAGE/AIDRAWEDIT/WAN27/SEEDREAM5),可控制分辨率、宽高比、输出数量。用户说"生成图片"、"AI画图"、"AI生图"、"帮我画"、"图片生成"、"image generation"、"generate…

  • Works in 3 steps: 脚本调用 /aigc/imageGenAsync 创建任务,获得 taskId → 轮询 /aigc/taskQuery,初始间隔 10 秒,每次递减 1 秒至最低… → 成功后自动下载图片到会话 media/ 目录
  • Tasks that involve Image generation
  • SKILL.md covers 核心特点, 模型说明, 参数概览 and 调用方式, plus 6 more sections
  • Runs Python scripts from its folder; calls python; needs LINKFOX_AGENT_API_KEY and LINKFOXAGENT_API_KEY

What it does

Linkfox Aigc Imagegen is an agent skill from linkfox-ai/linkfox-skills. AI生图工具,根据提示词和参考图生成图片。支持多种模型(BANANA/BANANA2/BANANAPRO/GPT2IMAGE/AIDRAWEDIT/WAN27/SEEDREAM5),可控制分辨率、宽高比、输出数量。用户说"生成图片"、"AI画图"、"AI生图"、"帮我画"、"图片生成"、"image generation"、"generate image"、"画一张图"、"做张图"、"图生图"时触发。

Its SKILL.md is about 940 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `references/api.md`, `references/onboarding.md` and `scripts/aigc_imagegen.py`).

It sits in Media & Creative, covering Image generation. The licence is MIT.

When your agent uses it

  • Tasks that involve Image generation

Example prompts

  • “image generation”
  • “generate image”
  • “/linkfox-aigc-imagegen”

Requirements

  • Python 3
  • A credential in LINKFOX_AGENT_API_KEY
  • A credential in LINKFOXAGENT_API_KEY

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

Read from SKILL.md and the folder at commit 38fef04. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • LINKFOX_AGENT_API_KEY
    • LINKFOXAGENT_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Linkfox Aigc Imagegen loads about 944 tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 58 tokens; SKILL.md has 237 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~944
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from linkfox-ai/linkfox-skills at commit 38fef04, republished under its MIT licence (© linkfox-ai). 237 words, ~944 tokens.

Download SKILL.mdSave it as .claude/skills/linkfox-aigc-imagegen/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
linkfox-aigc-imagegen
description
AI生图工具,根据提示词和参考图生成图片。支持多种模型(BANANA/BANANA_2/BANANA_PRO/GPT_2_IMAGE/AIDRAW_EDIT/WAN2_7/SEEDREAM5),可控制分辨率、宽高比、输出数量。用户说"生成图片"、"AI画图"、"AI生图"、"帮我画"、"图片生成"、"image generation"、"generate image"、"画一张图"、"做张图"、"图生图"时触发。

AI 生图

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

核心特点

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

模型说明

模型(provider)说明特点
BANANALFBanana(基础版)仅支持 1K 分辨率
BANANA_2LFBanana2支持更高分辨率
BANANA_PROLFBanana Pro(默认)综合效果最好
GPT_2_IMAGEImg2支持 quality 参数控制质量
AIDRAW_EDITLinkfox-Image-1适合编辑类场景
WAN2_7Wan 2.7万相模型
SEEDREAM5Seedream 5.0仅支持2K

参数概览

  • 必填字段:prompt、imageUrls、outputNum(默认 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: 后的本地路径提供给用户即可。

解决认证和算力问题

发生以下异常情况时,采用 references/onboarding.md 引导解决问题:

异常情况
  • 未配置API Key:环境变量未配置 LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY。
  • 响应401或402状态码
  • 响应提示算力或余额不足:消息含"算力余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。

使用指引

  1. 模型选择:一般场景用 BANANA_PRO(默认);需要高质量画质控制用 GPT_2_IMAGE;编辑现有图片用 AIDRAW_EDIT。
  2. 提示词:描述越具体效果越好,建议用英文提示词获得更好效果。
  3. 参考图:必须提供至少一张参考图 URL。
  4. 分辨率:支持 1K/2K/4K,默认 1K。
示例

1. 用默认模型生成商品场景图

json
{"imageUrls": ["https://example.com/product.jpg"], "prompt": "product photography on white background, studio lighting", "provider": "BANANA_PRO", "outputNum": 1, "resolution": "1K", "aspectRatio": "1:1", "quality": "high"}

2. 用 GPT_2_IMAGE 高质量生图

json
{"imageUrls": ["https://example.com/ref.jpg"], "prompt": "modern minimalist product showcase", "provider": "GPT_2_IMAGE", "outputNum": 1, "resolution": "1K", "aspectRatio": "16:9", "quality": "high"}

3. 批量生成多张

json
{"imageUrls": ["https://example.com/ref.jpg"], "prompt": "creative product ad design", "provider": "BANANA_PRO", "outputNum": 4, "resolution": "2K", "aspectRatio": "1:1", "quality": "high"}

限制

  • 必须提供至少一张参考图 URL。
  • 单次最多生成 10 张。
  • 生成时间视模型和分辨率不同,通常 10-120 秒。脚本自动轮询,超时 10 分钟。
  • 失败时不重试(仅尝试 1 次)。

不适用

不适用:

  • 纯文字生成 → linkfox-aigc-textgen
  • 视频生成 → linkfox-aigc-videogen

反馈

参见 references/api.md。

执行指令

重要:收到本文档末尾的 ARGUMENTS: 字段后,必须立即调用 python scripts/aigc_imagegen.py '<JSON>' 执行,禁止等待用户确认或额外输入。

© linkfox-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in skills/linkfox-aigc-imagegen of linkfox-ai/linkfox-skills.

  • SKILL.md
  • references/api.md
  • references/onboarding.md
  • scripts/aigc_imagegen.py
  • scripts/onboarding.py

Open the folder on GitHubat commit 38fef04

Compare with similar skills

Linkfox Aigc Imagegen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Linkfox Aigc Imagegen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Linkfox Aigc Imagegen this skilllinkfox-ai/linkfox-skills107—~944Automated safety check: PassMIT
AI Image Generation and Editingzhayujie/CowAgent47k—~1.3kAutomated safety check: PassMIT
Structured Image Generationbytedance/deer-flow84k4 repos~2.9kAutomated safety check: PassMIT
Canghe Comicfreestylefly/canghe-skills4618 repos~3.2kAutomated safety check: PassNone
Generate Imageynulihao/AgentSkillOS61810 repos~1.7kAutomated safety check: NotesNone
GPT Image Generation CLIwuyoscar/GPT-Image2-Skill5.7k—~2.5kAutomated safety check: NotesMIT

Similar skills

  • Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.

    47k GitHub stars~1.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • Structured Image Generation

    bytedance/deer-flow

    Turns an image request into a structured JSON prompt and runs a bundled Python script to generate the picture, optionally guided by reference images.

    84k GitHub starsUsed in 4 repos~2.9k tokens
    Media & CreativeAuto-check passed
  • Canghe Comic

    freestylefly/canghe-skills

    Knowledge comic creator supporting multiple art styles and tones.

    461 GitHub starsUsed in 8 repos~3.2k tokens
    Media & CreativeAuto-check passed
  • Generate Image

    ynulihao/AgentSkillOS

    Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS.

    618 GitHub starsUsed in 10 repos~1.7k tokens
    Media & CreativeAuto-check: notes
  • GPT Image Generation CLI

    wuyoscar/GPT-Image2-Skill

    Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.

    5.7k GitHub stars~2.5k tokensUpdated 10 days ago
    Media & CreativeAuto-check: notes
  • Minimal Zine Poster Generator

    LiamGvchi/gc-minimal-zine-poster

    Creates or analyzes quiet, paper-texture zine posters with big negative space, one color accent and experimental type, returning an image prompt and the generated poster.

    7.3k GitHub stars~2.9k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed

More from linkfox-ai/linkfox-skills

All 177 skills in this repo
  • Linkfox 1688 Search By Image

    linkfox-ai/linkfox-skills

    1688平台以图搜图,通过商品图片精准检索外观相似或同款的1688货源,返回标题、价格、起批量、月销量、复购率、交易评分等核心数据。当用户提到1688以图搜图、1688找货源、以图找同款、跨境找工厂、1688识图、图片找货源、找相似货源、image search 1688、find supplier by…

    107 GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check passed
  • Linkfox Aba Intelligent Query

    linkfox-ai/linkfox-skills

    亚马逊ABA(品牌分析)搜索词数据的查询与分析,涵盖15个站点近3年的周维度数据。当用户提到ABA数据、亚马逊搜索词分析、关键词挖掘、搜索排名趋势、市场机会分析、季节性关键词、高点击低转化分析、蓝海词发现、竞品关键词分析、ABA data, search term report, keyword mining, search ranking trends, blue ocean…

    107 GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Linkfox Amazon Alexa Search

    linkfox-ai/linkfox-skills

    通过亚马逊前台的 Alexa 购物助手发起自然语言问答,获取与问题相关的导购回答、推荐商品分组、ASIN 列表,以及可继续追问的问题。每次调用仅支持 1 条 prompt,如需追问须由 agent 总结上下文后拼接新问题发起新请求。可用 url 补充亚马逊页面上下文。当用户提到亚马逊 Alexa、Alexa 购物助手、亚马逊智能助手、AI…

    107 GitHub starsUsed in 1 repo~3k tokens
    Auto-check passed
  • 亚马逊反向选品:基于历史商业洞察报告沉淀的指标数据池,按 30+ 项商业维度(市场规模与增长、价格区间与档位份额、竞争密度与头部集中度、人群画像如年龄/性别/收入、评论卖点与痛点等)反向筛选亚马逊赛道与关键词。当用户提到反向选品、指标筛选、细分市场反查、蓝海赛道挖掘、低竞争赛道、新人友好赛道、品牌分散市场、痛点切入、卖点反查、定价档位机会、人群画像选品、Amazon niche reverse…

    107 GitHub starsUsed in 1 repo~3k tokens
    Auto-check passed
  • Linkfox Amazon Product Detail

    linkfox-ai/linkfox-skills

    通过ASIN获取亚马逊商品详细信息,包括标题、图片、五点描述、规格参数、A+页面、价格、评分评论、变体等;可在取得原始HTML时尝试提取Item Highlights(商品亮点)。当用户提到亚马逊商品详情、ASIN查询、商品页面数据、Listing分析、五点描述提取、Item…

    107 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Linkfox Amazon Reviews List

    linkfox-ai/linkfox-skills

    按ASIN获取并分析亚马逊商品评论,支持15个站点(含美国站),按星级筛选评论。当用户提到亚马逊评论、美国站评论、商品评价、买家投诉、差评、好评、星级评分、评论分析、评论情感、产品改良建议、Vine评论、已验证购买评论、竞品评论研究、Amazon reviews, US reviews, Amazon.com reviews, product feedback, negative review…

    107 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed

Questions about Linkfox Aigc Imagegen

What does Linkfox Aigc Imagegen do?

AI生图工具,根据提示词和参考图生成图片。支持多种模型(BANANA/BANANA2/BANANAPRO/GPT2IMAGE/AIDRAWEDIT/WAN27/SEEDREAM5),可控制分辨率、宽高比、输出数量。用户说"生成图片"、"AI画图"、"AI生图"、"帮我画"、"图片生成"、"image generation"、"generate…. Linkfox Aigc Imagegen is an agent skill from linkfox-ai/linkfox-skills.

When should I use Linkfox Aigc Imagegen?

Linkfox Aigc Imagegen fits situations like: tasks that involve Image generation.

How do I install Linkfox Aigc Imagegen in Claude Code?

Run `npx skills add linkfox-ai/linkfox-skills --skill linkfox-aigc-imagegen -a claude-code`. Or copy the skill folder (skills/linkfox-aigc-imagegen in linkfox-ai/linkfox-skills) into .claude/skills/linkfox-aigc-imagegen in your project. Claude Code loads it when a task matches its description.

How do I install Linkfox Aigc Imagegen in Codex?

Run `npx skills add linkfox-ai/linkfox-skills --skill linkfox-aigc-imagegen -a codex`. Or copy the skill folder (skills/linkfox-aigc-imagegen in linkfox-ai/linkfox-skills) into .agents/skills/linkfox-aigc-imagegen in your project. Codex loads it when a task matches its description.

Can I use Linkfox Aigc Imagegen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add linkfox-ai/linkfox-skills --skill linkfox-aigc-imagegen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/linkfox-aigc-imagegen, .gemini/skills/linkfox-aigc-imagegen, .github/skills/linkfox-aigc-imagegen and .opencode/skills/linkfox-aigc-imagegen in your project.

What does Linkfox Aigc Imagegen need to run?

Going by SKILL.md and its folder, Linkfox Aigc Imagegen needs Python for the scripts in its folder, the command-line tools its instructions call (python) and credentials named LINKFOX_AGENT_API_KEY and LINKFOXAGENT_API_KEY. Our summary lists: Python 3; A credential in LINKFOX_AGENT_API_KEY; A credential in LINKFOXAGENT_API_KEY.

Does Linkfox Aigc Imagegen access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Linkfox Aigc Imagegen safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Linkfox Aigc Imagegen use?

Linkfox Aigc Imagegen is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Linkfox Aigc Imagegen use?

About 944 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.9k tokens, read only when the agent opens those files.

What are the alternatives to Linkfox Aigc Imagegen?

Skills that share tags, products or a category with Linkfox Aigc Imagegen: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), Structured Image Generation (bytedance/deer-flow, 84k stars), Canghe Comic (freestylefly/canghe-skills, 461 stars) and Generate Image (ynulihao/AgentSkillOS, 618 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Linkfox Aigc Imagegen?

linkfox-ai (a GitHub user) maintains it in linkfox-ai/linkfox-skills, which has 107 GitHub stars. The repository holds 177 skills in this directory. The repository was last updated on September 14, 2026.

Source: linkfox-ai/linkfox-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.