skill-discovery
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAuto-Skill Discovery
自动Skill发现
When the user requests a task that might match a previously learned workflow, search for relevant skills and offer to load them.
当用户请求的任务可能与已学习的工作流匹配时,搜索相关Skill并提供加载选项。
When to Invoke This Skill
何时调用此Skill
Use this skill when the user's request:
- Involves multiple steps (search + edit, read + modify, find + fix)
- Sounds like a repeatable workflow
- Mentions patterns like "the usual way" or "like before"
- Could benefit from a structured approach
Do NOT use for:
- Simple single-step tasks
- Questions or explanations
- Tasks the user wants done a specific way
当用户的请求满足以下条件时使用此Skill:
- 涉及多步骤操作(搜索+编辑、读取+修改、查找+修复)
- 属于可重复的工作流
- 提及“常规方式”或“和之前一样”这类表述
- 可从结构化方法中获益
请勿用于:
- 简单的单步骤任务
- 咨询类或解释类问题
- 用户明确要求按特定方式执行的任务
Instructions
操作说明
Step 1: Discover matching skills
步骤1:发现匹配的Skill
Run the discovery script with the user's intent:
bash
python scripts/discover_skill.py "<2-4 word summary of user's task>"This outputs a formatted prompt showing:
- Best matching skill name and confidence
- What the skill does
- How it runs (inline vs isolated)
- A question asking if user wants to load it
根据用户意图运行发现脚本:
bash
python scripts/discover_skill.py "<用户任务的2-4词摘要>"脚本会输出格式化提示信息,包含:
- 匹配度最高的Skill名称及置信度
- 该Skill的功能
- 运行方式(内联式 vs 独立式)
- 询问用户是否要加载该Skill的问题
Step 2: Present to user
步骤2:呈现给用户
Show the discovery output to the user. Wait for their response.
将发现结果展示给用户,等待用户回应。
Step 3: If user approves, load the skill
步骤3:若用户同意,加载Skill
bash
python scripts/discover_skill.py "<same query>" --auto-loadThis outputs the full skill content with clear delimiters. Display it directly - the formatted output contains the instructions you should follow.
bash
python scripts/discover_skill.py "<相同查询词>" --auto-load脚本会输出带有清晰分隔符的完整Skill内容。直接展示该内容即可——格式化输出中包含你需要遵循的操作指令。
Step 4: Follow the loaded skill
步骤4:遵循已加载的Skill
The skill content between the delimiters contains your instructions. Follow them to complete the user's task.
======位于分隔符之间的Skill内容即为操作指令。遵循这些指令完成用户的任务。
======Step 5: If user declines or no match
步骤5:若用户拒绝或无匹配项
Proceed with the task normally using your standard approach.
使用标准方法正常执行任务。
Example Flow
示例流程
User: "Find all the TODO comments and update them"
You: [Run discover_skill.py "find update todos"]
Output:
## Skill Discovery
I found an auto-generated skill that matches your task:
**search-and-fix-workflow** (confidence: 85%)
> Search for issues in codebase and fix them systematically
Would you like me to load this skill?
User: "Yes"
You: [Run discover_skill.py "find update todos" --auto-load]
Output:
======================================
SKILL LOADED: search-and-fix-workflow
...instructions...
======================================
You: [Follow those instructions to complete the task]用户:“找到所有TODO注释并更新它们”
你:[运行discover_skill.py "find update todos"]
输出:
## Skill发现结果
我找到了一个与你的任务匹配的自动生成Skill:
**search-and-fix-workflow**(置信度:85%)
> 系统地搜索代码库中的问题并修复
是否需要我加载此Skill?
用户:“是”
你:[运行discover_skill.py "find update todos" --auto-load]
输出:
======================================
SKILL已加载:search-and-fix-workflow
...操作指令...
======================================
你:[遵循这些指令完成任务]