- Home
- Skills
- Research & Analysis
- Ask Your Documents: Cited Answers, No Guessing
Ask Your Documents: Cited Answers, No Guessing
Index a folder of contracts, policies or notes, then ask questions. Your agent answers only from the passages it retrieved, cites every claim by file and line, and says the documents do not cover it instead of guessing.
Free
What it does
- Answers questions using only your provided documents to prevent made-up facts
- Provides exact file names and line numbers for every claim made in the answer
- Refuses to answer if the information is missing from your files instead of guessing
- Splits complex questions into parts to ensure every detail is searched thoroughly
- Builds a private local index of your folders without needing any extra online accounts
Who it's for
Freelancers and researchers with deep folders of notes
Find exactly where you said something without the AI making up facts or mixing up your projects.
Try asking: “What did I decide about the logo colors in my client meeting notes?”
Business owners reviewing contracts and policies
Get answers to legal or policy questions that point to the exact page and line in your files.
Try asking: “What is the late payment fee in the vendor agreement?”
Teams managing large sets of internal project reports
Verify if your team has already documented a solution before you start a new task.
Try asking: “Does our safety manual cover chemical spills in the warehouse?”
Ask Your Documents: Cited Answers, No Guessing
Example session with this skill installed
Index ~/Documents/client-acme and answer: what notice do we need to give to terminate for convenience, and what does the Growth plan cost per month?
- Read your context and instructions
- Compiled the ask your documents
Answer
Either party may terminate for convenience on 60 days written notice (msa-2024.md:3-5). The Growth plan costs 49 USD per month and includes 10 seats (pricing.md:1-6).
What the documents say
- Termination for convenience: 60 days written notice; termination for material breach needs 15 days and a chance to cure (msa-2024.md:3-5).
- Monthly fee under the master agreement is 4,800 USD, invoiced on the first working day of the month (msa-2024.md:7-9).
- Growth plan: 49 USD per month, 10 seats; annual billing takes 17 percent off (pricing.md:1-6).
Not covered
Nothing: both parts of the question have a supporting passage.
Not from your documents
None.
And when the documents do not cover it, the same folder answers like this:
Not in your documents
I searched client-acme (3 files, 7 passages) for subcontracting and for EU restrictions. No passage supports an answer.
Closest material found: msa-2024.md:11-13 covers liability and fees, not subcontracting.
Next step: add the subcontracting annex, or widen the folder to the full contract set.
Connects securely to your tools. The creator never sees your data.
About this skill
An agent with file access will answer from its own memory, sound certain, and be wrong. That is the failure this skill removes.
It builds a keyword index (BM25) over a folder of your files, then answers a question by retrieving the passages that actually address it. Every claim in the answer carries a citation to the file and line range it came from. When nothing in the folder covers the question, the skill returns a refusal instead of an answer, and the agent tells you the documents do not cover it.
Nothing leaves your machine. There is no API key, no account, no server and no network call: the scripts are plain Python 3.9+ with the standard library only, and the index is a JSON file you can delete.
It is built for the questions where a confident wrong answer costs money: notice periods, fees, caps, approval rules, dates and obligations. It also ships an eval script, so you can prove retrieval works on your own documents before you rely on it.
What it does not do: it indexes plain text only. Convert anything else to text first with a tool you already use, then drop the text files in the folder.
The agent only sees a snapshot of your files. You must refresh the index after you edit or add new documents.
Python 3.9 or newer, standard library only. No dependencies to install. Files: SKILL.md, scripts/index.py, scripts/search.py, scripts/eval.py, references/grounding-rules.md, references/tuning.md, templates/answer-format.md, templates/cases.example.jsonl. Index: JSON with per-chunk term counts and document frequencies. Scoring is BM25 (k1 1.5, b 0.75). Chunking is paragraph-aware with Markdown heading boundaries, 900 characters by default. Retrieval keeps passages that contain at least 40 percent of the question's meaningful terms, top 5 per question part, and splits multi-part questions on "and". Eval reads a JSONL of cases and reports hit rate plus refusal correctness. Tested on a mixed folder of a contract, a policy and a price sheet: 3 of 3 eval cases passed, including the case that must refuse.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed today
- Free with an Agensi account
- Software
Python 3.9 or newer
Runs on plain Python 3.9 or newer. Nothing else to install, no account, no network.
Permissions
What's inside
Creator
Mohamed Ghoniem
Frequently Asked Questions
New in Research & Analysis
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Research & Analysis.