local-skills-search

Local skills search and recommendation tool: uses natural language to find matches among locally installed WorkBuddy skills and, if none are found locally, prioritizes real-time recommendations from the skills marketplace; only performs search and recommendation, will not auto-install or trigger other skills, and provides marketplace search keyword suggestions if lookup fails.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "local-skills-search" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-da956d2702699c5fc7ac85d717da299de9237cd2ff69f423c8cf37671558f08a. Verify the upstream source and version against https://skillhub.cn/skills/user_70775cd1/local-skills-search before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Local skills search and recommendation tool: uses natural language to find matches among locally installed WorkBuddy skills and, if none are found locally, prioritizes real-time recommendations from the skills marketplace; only performs search and recommendation, will not auto-install or trigger other skills, and provides marketplace search keyword suggestions if lookup fails.

0 Downloads

Introduction source: third_party · user_70775cd1 · 1.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: skill-search
description: 用自然语言帮用户查找本地已安装的 WorkBuddy skill,并可在本地无匹配时推荐技能市场中相关的 skill。当用户说"我之前装过一个能...的 skill 叫什么""有没有装过...的 skill""帮我找找跟...有关的工具""哪个 skill 能做...""忘了这个 skill 叫什么""skill 推荐""推荐个处理...的 skill""本地有没有...相关的 skill"等时使用。本技能只做查找与推荐,绝不自动安装或自动触发其他 skill;无本地匹配时优先尝试实时搜索技能市场,失败则给出市场搜索关键词建议。
agent_created: true

Skill Search — 用自然语言找 skill

解决"装了但忘了叫什么"的痛点:用户描述想做的事,本技能扫描本地已安装的 skill,按相关性分级返回;本地没有时再推荐市场里的同类 skill。

触发条件

  • 用户想查找已安装的 skill(按功能 / 自然语言描述定位)。
  • 用户想知道"有没有装过能 XX 的 skill"。
  • 用户想找某个 skill 但记不清名字。
  • 用户想要 skill 推荐(本地优先,市场兜底)。

输入(从用户话语中解析,无需表单)

  • query(必填):用户的自然语言描述。若 < 2 字,反问补充。
  • max_results(默认 5):最大返回条数。
  • search_scope(默认 "all"):global=仅用户级;project=仅当前项目;all=两者都扫。
  • include_disabled(默认 false):是否包含已禁用 skill(尽力而为,见"已知限制")。

执行流程

Step 1:确定扫描目标目录

  • 用户级(global):%USERPROFILE%/.workbuddy/skills/(Windows)或 ~/.workbuddy/skills/(Linux / macOS)。
  • 项目级(project):当前工作区根目录下的 .workbuddy/skills/,仅当该目录存在时纳入。
  • 内置 skill(best-effort 增强):D:\WorkBuddy\resources\app.asar.unpacked\resources\builtin-skills\,仅当该目录存在时纳入;路径随版本可能变化,读取失败就跳过,不报错。

根据 search_scope 选取上述子集(all = global + project + builtin 增强)。

Step 2:枚举并读取 frontmatter(L1 浅层)

  • 对每个目标目录,用 Glob 匹配 **/SKILL.md,收集每个 skill 的 name 与 description(仅 frontmatter,不读正文)。
  • 若一个目录不可读 / 不存在,跳过并在最终输出标注"跳过:<路径>"。
  • 记录 total_installed = 成功读取的 skill 总数。

Step 3:L1 匹配(基于 name + description 的 LLM 判断)

逐一对每个 skill 判断与 query 的相关性,仅依据 Step 2 读到的真实内容:

  • 🟢 strong:名称或描述直接命中用户需求,明显就是它在找的工具。
  • 🟡 medium:同类或相关能力,可能有帮助但非精确匹配。
  • 🔴 weak:边缘相关,仅在其他结果很少时才展示。
  • ⚪ none:不相关,不展示。

关键约束:只能基于真实扫描到的 skill 与内容判断,严禁编造 skill 名称或能力。

Step 4:渐进式深化(按需)

  • 若 strong 数量 ≥ 3,跳过深化,直接进入 Step 5。
  • 若相关结果(strong + medium)合计 < 3,取相关性最高的前 10 个候选,读取其 SKILL.md 正文(L2),重新判断。
  • 若 L2 后仍不足,对前 10 候选扫描其 scripts/、references/、templates/ 等文件做关键词命中(L3),再次判断。
  • 深化仅在"结果太少"时触发,避免无谓读取,节省上下文。

Step 5:排序与截断

  • 排序:strong → medium → weak;同级内按与 query 的语义贴合度排。
  • 截断到 max_results。

Step 6:生成使用示例

为每个结果写一句话调用示例,例如:"用 skill-compare 对比 skill-audit 与 skill-scanner"。

Step 7:无 / 弱匹配时的建议(suggestions)

当 matched 结果为空或全为 weak 时,输出建议区块:

  1. 相似已安装 skill:列出功能相近的已安装 skill(即使不完全匹配),扩展选择面。
  2. 市场推荐(两者结合):
    • 先尝试实时搜索技能市场:使用可用的技能市场搜索工具做只读检索(绝不安装)。
    • 多关键词重试(关键):市场匹配很严格,整句意图常搜不到真实存在的 skill。因此从 query 中拆出 1–3 个候选核心词(名词 / 动作词,必要时中英各一),逐个搜索;取任一非空结果的并集,优先采用命中更多、最贴合意图的那个关键词的结果。
    • 只要任一关键词命中,即展示真实市场匹配项(标注 installed:false 与来源),不再退化为纯关键词建议。
    • 仅当所有关键词搜索均无结果(工具不可用或全空),才退化为给出 2–3 个市场搜索关键词(中英文各一更佳),引导用户自行去市场安装。
    • 始终标注:"以下仅为建议,不会自动安装。"
  3. 查询改写建议:给出 2–3 个更精确的问法,帮助用户自我修正。

Step 8:下游意图检测 → next_steps

分析 query 是否隐含后续动作(如"对比""用这个做...""审计一下"),以纯文本列出推荐下一步(只建议,不自动执行)。

Step 9:输出

  • 有匹配:结果表格(序号 / 🟢🟡🔴 等级 / Skill 名称 / 类型[global|project|builtin] / 匹配原因 / 路径)+ 使用示例 + next_steps。
  • 无匹配:suggestions 区块 + next_steps。

输出格式(节选)

有匹配:

## 🔍 Skill 搜索结果
共扫描 N 个已安装 skill,找到 M 个匹配:

| # | 等级 | Skill | 类型 | 匹配原因 | 路径 |
|---|------|-------|------|----------|------|
| 1 | 🟢 | skill-compare | global | description 明确"横向对比多个 skill" | ~/.workbuddy/skills/skill-compare |

### 📌 使用示例
用 skill-compare 对比 skill-audit 与 skill-scanner

无匹配:

## 🔍 Skill 搜索结果
共扫描 N 个已安装 skill,未找到匹配项。

### 💡 建议
1. 相似已安装 skill:skill-audit(审计清理)、skill-scanner(安全扫描)
2. 市场推荐:(实时搜索结果 或)搜索词:"unit test generator" / "测试用例生成"
3. 查询改写:是否想找"代码生成"类 skill?

> 💡 仅为建议,不会自动安装。

安全边界(必须守住)

  • ❌ 不自动安装任何 skill。
  • ❌ 不自动触发 / 调用其他 skill(市场搜索仅做只读检索)。
  • ✅ 仅以文字形式给出建议与命令示例。
  • ✅ 明确标注"仅为建议,不会自动执行"。

失败处理

场景 处理方式
无已安装 skill 提示并引导去技能市场
目录读取失败 跳过该目录,输出标注,继续
query 为空或 < 2 字 反问补充描述
全部不相关 进入 suggestions 模式
权限不足 跳过该 skill 并记录提示
市场搜索网络错误 跳过,退化为关键词建议

已知限制

  • include_disabled 为尽力而为:WorkBuddy 未必暴露简单的禁用配置文件,若读不到禁用列表则扫描全部;不保证 100% 排除禁用项。
  • builtin skills 目录路径随 WorkBuddy 版本变化,读取失败自动跳过。
  • 相关性等级由 LLM 基于真实内容判断,是定性结论,非精确量化分数。

Current listing version

1.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 解决用户'装了但忘了叫什么'的核心痛点,直接提升日常高频场景效率
  • 本地优先+市场兜底的完整闭环,实用价值极高
Trigger Precision90/100

Highlights

  • 触发词覆盖多种变体,边界清晰,用户表达方式多样时仍能精准触发
Structure and Standards90/100

Highlights

  • Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.