AgentSkillsCN

context-finder

自动启动上下文查找代理进行搜索任务。当用户说“查找”、“搜索”、“在哪里”、“寻找”、“追踪”、“哪个文件”、“哪个提交”、“grep”、“locate”时使用。触发git历史、文件、问题、回顾中的搜索。

SKILL.md
--- frontmatter
name: context-finder
description: Auto-spawn context-finder agent for search tasks. Use when user says "find", "search", "where is", "look for", "trace", "what file", "which commit", "grep", "locate". Triggers search in git history, files, issues, retrospectives.

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:

code
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

SourceCommandFinds
Git historygit log --grepCommits mentioning topic
Filesfind, grepCurrent files
Issuesgh issue listPlanning, discussions
Retrospectivesgrep ψ/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 SaysAction
"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