Ctx Search

作者 mksglua6c43765d26b無授權條款25K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Search context-mode's persistent FTS5 knowledge base for previously indexed local project content, documentation, or session memory. Trigger: /context-mode:ctx-search

僅含說明AI & Agents
AI 產生的概覽

在 context-mode 的持久化 FTS5 知識庫中搜尋已索引的本機專案內容、文件或工作階段記憶。

功能
此技能引導代理查詢 context-mode 的持久化 FTS5 知識庫,以取回先前已索引的本機專案內容、文件或工作階段記憶。它要求優先使用 ctx_search MCP 工具,將相關問題合併到單一 queries 陣列批次查詢,以 source 限定範圍,並使用由兩到四個技術詞組成的簡短查詢。若 MCP 工具無法使用,則改用 context-mode search 命令列;若索引為空,則提示使用者先建立索引。
適用情境
當需要取回先前已索引的本機專案內容、文件或工作階段記憶,又不希望把原始來源重新讀入對話上下文時使用。適合依指定專案或索引標籤限定範圍的查詢,以及批次多問題檢索。
執行需求
需要 ctx_search MCP 工具或 context-mode 命令列,且已有可用索引;不附帶指令碼,僅包含指示。

Context Mode Search

Search indexed content without rereading raw sources into conversation context.

Instructions

  1. Prefer the ctx_search MCP tool when it is available.
  2. Batch all related questions in one queries array.
  3. Scope with source when the user names a project or indexed label.
  4. Use short, specific queries of two to four technical terms.
javascript
ctx_search({  source: "project:<name>",  queries: ["authentication middleware", "token refresh"],  limit: 5})
  1. If MCP tools are unavailable, fall back to the CLI:
bash
context-mode search "authentication middleware" --source project:<name> --limit 5
  1. If the index is empty, tell the user to run /context-mode:ctx-index or context-mode index <path> first.

來源與署名

來源:mksglu/context-mode位於skills/ctx-search提交a6c4376

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架