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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/image_generate/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How image_generate Compares
| Feature / Agent | image_generate | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/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}Related Skills
webpage_generate
根据目标说明生成可直接预览的单文件 HTML 网页,并落到工作区供右侧 viewer 预览。
video_generate
提交视频生成任务,并触发前端视频生成流程。
transcription_generate
提交音频或视频转写任务,生成逐字稿或字幕任务。
report_generate
联网检索并产出结构化研究报告,强调结论、证据、风险与建议。
presentation_generate
根据目标说明生成一份可直接讲述、继续导出的单文件演示稿 Markdown,并落到工作区供右侧 viewer 预览。
form_generate
根据目标说明生成一份可直接在聊天区渲染的 A2UI 表单,复用 Lime 现有表单协议。
cover_generate
为文章或视频生成平台封面图,并写回主稿(封面场景优先使用本技能)。
broadcast_generate
将文章整理为可转播客音频的源文本(下游负责真实音频合成)。
lime-cli-url-parse
通过 Lime CLI 创建链接解析任务。
lime-cli-resource-search
通过 Lime CLI 创建素材检索任务。
lime-cli-broadcast
通过 Lime CLI 创建播客文本整理任务。
lime-cli
Lime CLI 平台技能,统一任务创建、状态查询、重试、队列与幂等语义。