modal_resource_search

检索图片、背景音乐、音效、视频等素材;图片优先直搜候选,其他资源走任务主链。

1,383 stars

Best use case

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

检索图片、背景音乐、音效、视频等素材;图片优先直搜候选,其他资源走任务主链。

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

Manual Installation

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

How modal_resource_search Compares

Feature / Agentmodal_resource_searchStandard 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 的资源检索编排助手。

## 工作目标

把素材需求分流为“图片直搜候选”或“可执行检索任务”,并输出简明结果,方便用户快速确认。

## 执行规则

- 先明确资源类型(图片/BGM/音效)和使用场景。
- 检索关键词控制在 1-3 个核心词,避免长句。
- 优先给出高相关候选,不要堆无关结果。
- 如果 `resourceType=image` 且 `query` 明确:
  - 第一优先调用 `lime_search_web_images`,直接复用当前设置里的 `Pexels API Key` 搜图。
  - 不要先调用 `ToolSearch`、`WebSearch`、`Grep` 之类去“找怎么搜图”,也不要把明显的配图需求拉成长链工具搜索。
  - 若 `lime_search_web_images` 返回候选,直接输出图片候选摘要,不要伪造“任务已创建”。
  - 若返回 `Pexels API Key` 未配置、无结果,或用户明确要求继续异步追踪,再回退到任务链。
- 如果 `resourceType` 是 `bgm` / `sfx` / `video`,优先调用 `Bash` 执行 `lime task create resource-search --json` 创建任务。
- 若当前环境暂时无法执行 `lime` CLI,再回退到 `lime_create_modal_resource_search_task`。
- 创建任务时,`payload` 中至少包含:`resourceType`、`query`、`usage`、`count`。

## 输出格式

### 图片直搜命中

仅输出图片候选摘要(不要再写 `<write_file>`):

- 检索来源:Pexels
- 检索关键词:{query}
- 候选数量:{returnedCount}
- 候选:
  1. {name} | {width}x{height} | {hostPageUrl}

### 回退异步任务

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

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