cover_generate

为文章或视频生成平台封面图,并写回主稿(封面场景优先使用本技能)。

1,383 stars

Best use case

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

为文章或视频生成平台封面图,并写回主稿(封面场景优先使用本技能)。

Teams using cover_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/cover_generate/SKILL.md --create-dirs "https://raw.githubusercontent.com/limecloud/lime/main/src-tauri/resources/default-skills/cover_generate/SKILL.md"

Manual Installation

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

How cover_generate Compares

Feature / Agentcover_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_task`,必须优先复用其中的 `prompt`、`raw_text`、`title`、`platform`、`size`、`style`、`session_id`、`project_id`、`content_id`、`entry_source` 等字段。
- 根据平台特性控制视觉:主体清晰、构图简洁、避免密集小字。
- 默认尺寸 `1024x1024`,用户指定时优先按用户要求。
- 使用 `social_generate_cover_image` 生成封面。
- 生成成功后,优先调用 `Bash` 执行 `lime task create cover --json` 创建任务,并把 `social_generate_cover_image` 返回的 `image_url` 作为 `--image-url` 传入;如当前环境只暴露 `lime media cover generate --json`,也可以使用。
- 创建任务时尽量透传 `--raw-text`、`--title`、`--platform`、`--style`、`--size`、`--session-id`、`--project-id`、`--content-id`、`--entry-source` 等字段,不要丢掉工作台上下文。
- 若当前环境暂时无法执行 `lime` CLI,再回退到 `lime_create_cover_generation_task`。
- 任务结果必须兼容 `lime task create cover --json` 的任务文件契约。
- 封面生成失败时不能中断:保留占位、给出重试建议,并使用 `lime_create_cover_generation_task` 提交失败任务记录。

## 输出格式(固定)

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

- 任务类型:cover_generate
- 任务 ID:{task_id}
- 任务文件:{path}
- 状态:{pending_submit}