返回 Skill 列表
extension
分类: 开发与工程无需 API Key

context-finder

自动生成上下文查找代理以执行搜索任务。当用户说“find”、“search”、“where is”、“look for”、“trace”、“what file”、“which commit”、“grep”、“locate”时使用。触发在git历史、文件、问题、回顾中的搜索。

person作者: jakexiaohubgithub

Context Finder Skill

Auto-trigger search when user needs to find something

Proactive Triggers

MUST Spawn context-finder Agent When:

  • User says: "find", "search", "where is", "look for"
  • User says: "what file", "which commit", "locate"
  • User asks: "did we work on X", "when did we", "where did"
  • User needs to trace: code, history, issues, docs

How to Invoke

Spawn the context-finder agent:

Task tool:
  subagent_type: context-finder
  model: haiku
  prompt: |
    Search for [USER'S QUERY] in:
    1. Git history: git log --all --oneline --grep="[QUERY]"
    2. Files: find/grep for [QUERY]
    3. GitHub issues: gh issue list --search "[QUERY]"
    4. Retrospectives: grep in ψ/memory/retrospectives/

    Return: compact list of matches with paths/commits

What context-finder Searches

| Source | Command | Finds | |--------|---------|-------| | Git history | git log --grep | Commits mentioning topic | | Files | find, grep | Current files | | Issues | gh issue list | Planning, discussions | | Retrospectives | grep ψ/memory/ | Past session context |

When NOT to Use

  • User already knows the exact file path
  • Simple questions about current code (just read it)
  • User explicitly says "don't search"

Quick Patterns

| User Says | Action | |-----------|--------| | "find the auth code" | Spawn agent → search "auth" | | "where did we put X" | Spawn agent → search files + git | | "when did we work on Y" | Spawn agent → search retrospectives | | "trace Z" | Spawn agent → comprehensive search |