Ctx Search

mksglu/context-mode/skills/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 从公开仓库中收录这些内容。

举报或申请下架