Agent Skills
› mksglu/context-mode
› ctx-search
ctx-search
GitHub用于在持久化知识库中搜索已索引的项目内容、文档或会话记忆,避免重复加载上下文。支持通过MCP工具或CLI执行,可指定来源和限制结果数量。
Trigger Scenarios
需要检索历史项目信息
查询已索引的技术文档
Install
npx skills add mksglu/context-mode --skill ctx-search -g -y
SKILL.md
Frontmatter
{
"name": "ctx-search",
"description": "Search context-mode's persistent FTS5 knowledge base for previously indexed\nlocal project content, documentation, or session memory.\nTrigger: \/context-mode:ctx-search\n",
"user-invocable": true
}
Context Mode Search
Search indexed content without rereading raw sources into conversation context.
Instructions
- Prefer the
ctx_searchMCP tool when it is available. - Batch all related questions in one
queriesarray. - Scope with
sourcewhen the user names a project or indexed label. - Use short, specific queries of two to four technical terms.
ctx_search({
source: "project:<name>",
queries: ["authentication middleware", "token refresh"],
limit: 5
})
- If MCP tools are unavailable, fall back to the CLI:
context-mode search "authentication middleware" --source project:<name> --limit 5
- If the index is empty, tell the user to run
/context-mode:ctx-indexorcontext-mode index <path>first.
Version History
- 6aad62f Current 2026-07-24 17:38


