document-brief
Index a document or folder and answer questions about it with quotes from the source. Use when the user points at a PDF, contract, spec, report, or folder of files and asks what it says, what changed, or what they should worry about.
- Star
- 1,580
- 分类
- 文档与办公
- 许可证
- MIT
- 最近提交
- 2026年10月13日
hub/skills/document-brief/SKILL.md
在 GitHub 上查看Document Brief
Reading a long document for someone is not summarization — it is answering the question they actually have, with the sentence that proves it.
Procedure
- Check what is already indexed with
list_indexed_documents(). If the file the user named is already there, skip straight to step 3 — re-indexing is slow and buys nothing. - Index it.
index_document(file_path)for one file, orindex_directory(directory_path, recursive=True)for a folder. If indexing fails, runrag_status()and report what it says — do not answer from the filename. - Answer with
query_documents(query). Ask one focused question at a time; a compound question retrieves worse than two simple ones. - Quote the source. Every claim in your answer carries the sentence or figure it came from. If retrieval returns nothing relevant, say "the document does not appear to cover that" — never fill the gap from general knowledge.
- Offer the brief. For a document the user has not read at all, lead with
summarize_document(file_path)and then invite specific questions.
Standing brief format
When the user asks for "a brief" rather than a specific question:
- What it is — one line.
- What matters — the 3–5 points that would change a decision.
- What to watch — obligations, deadlines, numbers that move.
- Open questions — what the document leaves unresolved.
Fork this
Replace the brief format with your domain's checklist and it becomes a reviewer: for a contract, ask for termination, liability, auto-renewal, and payment terms by name in step 3 so they are never skipped.
相似的 Skill
精选
精选
精选
精选
精选
精选