grounded-material-qa
Answer questions strictly from the user's imported materials — Library files, conversation attachments, space artifacts — never from memory or the web. Retrieves evidence with ask_materials / material_search, answers only from cited evidence (`path#chunk N`), and says plainly when the material set does not contain the answer. Use for "根据资料", "这个文件/文档里", "资料里有没有…", grounded Q&A on uploaded documents, and any question scoped to imported materials. Do not use for general-knowledge, time-sensitive-web, or personal-memory questions.
- License 许可
- MIT
- 所属仓库
- bonc-ai/cogseed
- 最近更新
- 2026-11-13
- Stars
- ★ 19
- Forks
- 10
01 前言 Front Matter
- name
- grounded-material-qa
- description
- Answer questions strictly from the user's imported materials — Library files, conversation attachments, space artifacts — never from memory or the web. Retrieves evidence with ask_materials / material_search, answers only from cited evidence (`path#chunk N`), and says plainly when the material set does not contain the answer. Use for "根据资料", "这个文件/文档里", "资料里有没有…", grounded Q&A on uploaded documents, and any question scoped to imported materials. Do not use for general-knowledge, time-sensitive-web, or personal-memory questions.
02 资源文件 10
- 参考文档_meta.json64 B
- 参考文档evals/evals.json238 B
- 参考文档references/eval-cases.yaml426 B
- 参考文档references/evolution.md424 B
- 参考文档references/governance-boundaries.md567 B
- 参考文档references/input-contract.md695 B
- 参考文档references/ontology-mapping.md757 B
- 参考文档references/output-contract.md809 B
- 参考文档references/skill-spec.yaml325 B
- 参考文档references/validation-contract.md660 B
03 SKILL.md 正文
Grounded Material Q&A
Answer user questions within the material set boundary: retrieve evidence from imported materials first, answer only from that evidence with citations, and explicitly say when the materials do not contain the answer — never fabricate and never silently switch to web search.
use_when
- User asks about the content of a Library file, a conversation attachment, or a space artifact: "根据这份资料…", "这个文档里讲了什么", "资料里有没有提到 X".
- User asks a factual question that is plausibly answerable from uploaded materials (course notes, PDFs, meeting transcripts, reports).
- User asks to summarize or compare material content.
- User asks whether some concept/term appears in the materials.
do_not_use_when / negative_examples
- General knowledge questions with no material scope ("什么是光合作用?") — answer directly, optionally noting it is background knowledge.
- Time-sensitive questions ("今天股价") — web search rules apply, not materials.
- Questions about the user's own memory or conversation history.
- Any question when the user explicitly asks for web/online answers.
Workflow
- Retrieve: call
ask_materialswith the user's question (it already covers Library + this conversation's attachments). Ifask_materialsis unavailable or returns weak results, fall back tomaterial_searchand read promising hits withkb_read. - Judge the evidence:
- Evidence ready → answer only from the returned hits. Cite every
material-derived claim as
path#chunk N(e.g.AST.pdf#chunk 12); do not add details the hits do not contain. no_material→ say plainly: the material set does not contain this; name the scope searched (Library / attachments). Do not fabricate, do not switch to web search unless the user explicitly asks.low_confidence→ answer with an explicit caveat, or say no relevant material exists.
- Evidence ready → answer only from the returned hits. Cite every
material-derived claim as
- Verify (when useful): for important answers, re-check that every cited anchor exists in the retrieved evidence before finalizing; drop or rewrite any claim whose citation cannot be confirmed.
Citation format
- Library hit:
path#chunk N(path is the Library-relative path). - Attachment hit:
filename#chunk 0. - Never invent a
path#chunk Nthat was not returned by retrieval — a citation that does not exist in the evidence is a hallucination, not a source.
Notes
- Read-only: this skill never writes, edits, uploads, or sends anything.
- Materials are scoped to the current conversation/space; content outside that boundary is not evidence.
04 同仓库更多 Skills
sample-supply-chain
供应链样本:安装钩子 + 拼写伪装 + 源覆盖。
sample-prose-only
纯散文安全守则样本:禁止某行为的说明不等于该行为。
sample-obfuscated
混淆载荷样本:解码与执行共现。
sample-hidden-content
隐藏内容载荷样本:用于回归「不可见字符不做上下文降权」这一不变量。
sample-evasion
反规避样本:危险内容只以「不可见字符切断」与「编码后」两种形式出现。
sample-agentic
代理运行时风险样本:配置篡改 + 隐蔽指令。