knowledge-searching

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Knowledge Searching

知识检索

Overview

概述

Retrieves implementation knowledge to inform decision-making across the software development lifecycle.
Use this skill when you need:
  • Implementation details for specific libraries/frameworks
  • Code examples for patterns or features
  • Documentation references libraries/frameworks usage
Announce at start: "I'm using the knowledge-research skill to gather implementation details."
在软件开发生命周期中检索实现知识,为决策提供依据。
当你需要以下内容时使用此技能:
  • 特定库/框架的实现细节
  • 模式或功能的代码示例
  • 库/框架使用方法的文档参考
开始时告知:“我正在使用知识研究技能收集实现细节。”

Core Functions

核心功能

Searching Specific Documentation:

搜索特定文档:

  1. Get sources
    rag_get_available_sources()
    - Returns list with id, title, url
  2. Find source ID → Match to documentation (e.g., "Supabase docs" → "src_abc123")
  3. Search
    rag_search_knowledge_base(query="vector functions", source_id="src_abc123")
  1. 获取来源
    rag_get_available_sources()
    - 返回包含id、标题、url的列表
  2. 查找来源ID → 匹配对应文档(例如:“Supabase docs” → “src_abc123”)
  3. 搜索
    rag_search_knowledge_base(query="vector functions", source_id="src_abc123")

General Research:

通用研究:

bash
undefined
bash
undefined

Search knowledge base (2-5 keywords only!)

搜索知识库(仅限2-5个关键词!)

rag_search_knowledge_base(query="authentication JWT", match_count=5)
rag_search_knowledge_base(query="authentication JWT", match_count=5)

Find code examples

查找代码示例

rag_search_code_examples(query="React hooks", match_count=3)
undefined
rag_search_code_examples(query="React hooks", match_count=3)
undefined

Query Guidelines

查询指南

✅ Good Queries (2-5 keywords)

✅ 优质查询(2-5个关键词)

  • "authentication JWT"
  • "vector functions"
  • "React hooks"
  • "Go context timeout"
  • "SQL row level security"
  • "authentication JWT"
  • "vector functions"
  • "React hooks"
  • "Go context timeout"
  • "SQL row level security"

❌ Bad Queries (too long/verbose)

❌ 不良查询(过长/冗余)

  • "How do I implement JWT authentication in Go?"
  • "What are the best practices for vector similarity search?"
  • "Show me examples of React hooks for state management"
Rule: Keep queries SHORT and keyword-focused for optimal search results.
  • "How do I implement JWT authentication in Go?"
  • "What are the best practices for vector similarity search?"
  • "Show me examples of React hooks for state management"
规则:保持查询简短且聚焦关键词,以获得最佳搜索结果。