query

仓库创建 2026年7月3日最近提交 21 天前SkillHot 收录 20 天前
▸ 精选理由

对个人知识进行来源区分的问答,适合检索自我知识背景的场景。

这个 Skill 做什么

基于个人二脑做检索增强回答,区分用户已知信息与新增建议。

结合你的 second‑brain(个人笔记/知识库)做检索增强回答,把你已经知道的内容和我给出的新建议分开列明,适合问学习、项目或“我关于 X 已知什么”的场景。遇到索引过期或缺失时,会先尝试跑一次索引同步(brain ingest)再回答并说明已同步。特点是用 RAG 风格一边引用笔记一边给出可操作的新建议。

▸ 展开 SKILL.md 英文原文

Answer a question using the user's second-brain knowledge base, separating what he already knows (his notes, cited) from new advice. Use for questions about his studies, skills, projects, or when he asks "what do I know about X".

数据与抓取RAG 查询知识检索已知/新知区分通用
0
Stars
0
Forks
11
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Westontrefry/second-brain-template/main/.claude/skills/query/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Westontrefry/second-brain-template/main/.claude/skills/query/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# /query — RAG answer over the knowledge base

**Fail soft (ux.md #8):** if search errors, returns nothing on a topic that
clearly has notes, or `brain status` would show pending changes, run
`.venv/bin/python -m brain ingest` yourself and retry once — then mention it
in one line ("synced the index first"). A deleted/stale index is a known
mode with a deterministic fix, never an error to show the user.

1. Search, more than once if the phrasing allows: run
   `.venv/bin/python -m brain search "<query>" -k 5` and, when useful, a second
   reformulation or `--domain`/`--goal` filtered pass.
2. Read the full top notes (not just snippets) — frontmatter matters: confidence,
   goals, dates tell y
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有