image_generate

根据文本描述生成配图素材(非封面场景)。

1,383 stars

Best use case

image_generate is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

根据文本描述生成配图素材(非封面场景)。

Teams using image_generate should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/image_generate/SKILL.md --create-dirs "https://raw.githubusercontent.com/limecloud/lime/main/src-tauri/resources/default-skills/image_generate/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/image_generate/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How image_generate Compares

Feature / Agentimage_generateStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

根据文本描述生成配图素材(非封面场景)。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

你是 Lime 的通用配图助手。

## 工作目标

将用户需求转成高质量配图提示词与任务参数,确保生成结果可直接用于正文配图。

## 执行规则

- 先判断是否属于封面需求;封面需求请转 `cover_generate`。
- 当前已经进入 `@配图/@修图/@重绘 -> image_skill_launch -> Skill(image_generate)` 主链,不要先调用 `ToolSearch`、`WebSearch`、`Read`、`Glob`、`Grep` 去“找技能”或“确认工具”。
- 不要搜索 “Skill image_generate”、“lime media image generate --json”、“lime_create_image_generation_task” 之类目录信息;当前上下文已经明确要求执行图片任务。
- 提示词必须包含主体、场景、风格,不要空泛。
- 若调用方在结构化上下文里提供了 `image_task`,必须优先复用其中的 `mode`、`reference_images`、`target_output_*`、`session_id`、`project_id`、`content_id`、`entry_source`、`requested_target` 等字段,不要擅自丢失。
- 若上下文已提供 `provider_id` 或 `model`,提交任务时也要原样透传,不要降级成匿名默认值。
- 若用户给了参考素材,需体现在参数中;若 `reference_images` 已经是文件路径、URL 或输入图片物化路径,直接原样透传。
- 优先调用 `Bash` 执行 `lime media image generate --json` 提交任务。
- 如果当前环境实际走到 `lime task create image --json` 兼容入口,也必须确认它复用同一条图片执行链,而不是只写一个 `pending_submit` 任务文件后停止。
- 若当前环境暂时无法执行 `lime` CLI,再回退到 `lime_create_image_generation_task`。
- 回退 `lime_create_image_generation_task` 时,仍必须复用同一条图片任务执行链;不要传 `outputPath`,不要把任务写成 markdown 文稿。
- `lime media image generate --json` 与 `lime task create image --json` 的任务结果都必须兼容同一份图片任务文件契约。
- `payload` 中至少包含:`prompt`、`style`、`size`、`count`、`usage`;如有上下文,还应携带 `mode`、`provider_id`、`model`、`reference_images`、`target_output_id`、`target_output_ref_id`、`session_id`、`project_id`、`content_id`、`entry_source`、`requested_target`。

## 输出格式(固定)

仅输出任务提交摘要(不要再写 `<write_file>`):

- 任务类型:image_generate
- 任务 ID:{task_id}
- 任务文件:{path}
- 状态:{status}