plugins/tools/cortex/skills/cortex-search/SKILL.md
在 vault 搜索并综合答复 — MCP first 四级 (mcp simple/complex → search.sh → rg), 附引用; 含记忆召回子流程。Triggers on "查知识库", "搜知识库", "search vault", "recall", "想想", "记得".
npx skillsauth add lazygophers/ccplugin cortex-searchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
向 Obsidian vault 提问, 综合答复并附引用 (file:line + obsidian:// URI)。
/cortex:searchrecall / 想想 / 记得 / /cortex:recall) — 走 memory-recall.md 子流程遇到任何问题 (代码改/排查/找文档/选型/答用户/决策) 前, 第一个工具调用必须按 L1 → L4 顺序尝试, MCP first 不可跳过 (唯一豁免: 纯问候/纯对话/纯工具结果解释):
L1 mcp__obsidian__obsidian_simple_search ← 默认首选
↓ 失败 (MCP 不可达 / 27123 不通)
L2 mcp__obsidian__obsidian_complex_search ← JsonLogic 复杂过滤
↓ 失败
L3 bash ~/.cortex/scripts/search.sh ← CLI 回退
↓ 失败
L4 rg --type md ... ← 最后兜底
判定 deep mode (用户含 "深度搜索" / --deep / depth=deep) → 改走 deep_search.sh --mode hybrid。详见 references/multi-tier-search.md §Deep Mode。
判定 recall (含 recall / 想想 / 记得 / /cortex:recall) → 改走 memory-recall.md L0-L3 渐进披露子流程。
禁忌: 不用 qmd MCP 替代 obsidian MCP (qmd 索引不全 cortex vault, 与 hook / AGENT 契约一致); 不用 Bash rg / Grep 替代 MCP search (L4 仅最后兜底)。
auto 后缀触发)top_k=10, scope=all, 不加 --full, 仅返摘要| 文件 | 用途 |
|---|---|
| references/multi-tier-search.md | L1-L4 fallback 详细行为 + deep mode + tag filter + 解析 vault |
| references/output-format.md | 综合答复格式 + confidence 标记 + obsidian URI 渲染 + 稀疏命中提示 |
| references/memory-recall.md | L0-L3 记忆渐进披露召回 (原 cortex-recall skill 合入) |
tools
--- name: trellisx-workspace description: 维护 `.trellis/task.md` 任务看板 —— trellis 缺的跨任务总览。**一个表格, 一行一个任务**, 列为 id/名称/描述/状态/阶段/进度/worktree (状态/阶段中文显示)。在 task create/start/阶段切换/archive 后**及时更新**对应行; 并**自动清理超 7 天的已完成行**防膨胀。保持看板与 task.json 实时一致。 when_to_use: 维护 / 创建 / 更新 `.trellis/task.md` 任务看板时; task 生命周期任一节点 (create/start/阶段推进/archive) 之后同步看板时; 用户问"当前有哪些任务 / 任务进度 / 任务看板"时。被 trellisx-flow 与 trellisx-apply 注入的流程引用。 user-invocable: true argument-hint: [show|update|sync|cleanup ...] [task id] arguments:
testing
强制以 Trellis task 闭环处理用户指定的请求 (自判新建/并入 → plan→exec→check→finish 全程不跳步)。**仅用户显式主动调用** (/trellisx-flow 或明确要求"强制走 task 处理这个"); **禁止自动 / 被动 / 推断式调用** —— 不要因为某个请求"看起来该建 task"就自动触发本 skill, 那是 apply 注入的 no_task 倾向的职责。
testing
把 强推task + subtask拆分 + worktree隔离 + 闭环收尾 四维度增量注入当前项目 .trellis/ (workflow.md 的 no_task/planning/in_progress 块 + spec 背书文档 + trellis 生命周期 hook worktree 自动化)。强推 task 与闭环为纯 prompt 软约束 (非平台 hook 硬拦截)。**纯增量追加, 绝不替换 trellis 原生文本** (no_task 分类+征同意/check/finish/前缀全保留)。幂等 (marker 包裹)。
development
Claude Code 会话历史整理 — 扫 ~/.claude/projects/**/*.jsonl 全部 session transcripts, 提取学习增量 (用户校正/决策/踩坑/L0 规则) → 全局记忆库 ~/.cortex/.wiki/memory/. 默认 --apply 落盘 (--dry-run opt-in 仅出 JSON plan 预览). 与 cortex-extract (L4-inbox 内部) 互补.