# Docs Q&A with Citations, No Guessing

> Ask questions about your own Markdown or MDX docs and get answers that cite the exact file, section and lines, or a plain "not in the docs" instead of a guess.

Docs Q&A with Citations, No Guessing is a free AI agent skill on Agensi by Sherwin Rhey Condez. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Sherwin Rhey Condez](https://www.agensi.io/creators/sherwin-rhey-condez)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/docs-q-a-with-citations-no-guessing
- Tags: technical-documentation, research-analysis

## What it does

- Answers questions from your own docs folder, using only what the docs say
- Cites the file, section and line range for every claim it makes
- Says which part the docs don't cover instead of filling the gap
- Declines plainly when the docs don't answer, and shows where it looked
- Checks each answer for broken citations and unsupported claims before you see it

## Who it's for

- **Developers with project or API docs:** Get answers from your repo's docs with the exact file and lines, so you can check them in seconds. Try: "What do our docs say about API rate limits? Cite the sections."
- **Support teams answering from a help center:** Draft customer replies backed by your own help articles, and see clearly when a topic isn't documented. Try: "Using our help docs, how does a customer reset 2FA after losing their phone?"
- **Teams with an internal handbook or runbooks:** Ask your handbook or runbooks a question and get a sourced answer instead of a confident guess. Try: "Check our runbooks: what's the rollback process for a failed deploy?"
- **Technical writers finding doc gaps:** See which common questions your docs can't answer, with the closest sections listed. Try: "Is downgrading a plan documented? Tell me what's missing."

## About this skill

Most AI answers about your product mix what your docs say with what the model assumes. This skill answers **only** from the docs folder you point it at, and shows you where every fact came from.

**How it works**
1. Searches your Markdown, MDX or text docs section by section (headings kept, code blocks never split).
2. Your agent grades each passage: answers it, part of it, same topic, or unrelated.
3. If nothing answers the question, it says so instead of guessing, and lists the closest sections it checked.
4. Otherwise it writes a short answer with a numbered citation on every factual sentence.
5. A checker removes citations to passages that don't exist, flags any sentence without a source, and adds a Sources list with file, section and line range.

If the docs answer only part of a question, you get that part plus a clear note of what's missing.

The method comes from a production docs assistant that declined 10 of 10 out-of-scope questions in its own evaluation. This version runs locally, needs no API key and sends nothing anywhere. A small sample docs folder is included so you can try it right away.

## Requires

- Python 3.8+

## Known limitations

Search is keyword-based, so it finds exact terms well and paraphrases less well; the agent rephrases once before declining. It reads local files only (Markdown, MDX, .markdown, .txt), not PDFs, websites or wikis that haven't been exported. Answers are only as current as the files.

## Technical details

Built for Claude Code and any agent that can run Python and read files. scripts/search_docs.py does heading-aware chunking (h2/h3 sections, long sections split at paragraph breaks, never inside code fences, MDX imports, comments and component tags stripped) and BM25 ranking with the heading counted twice. Results carry file, anchor and line range. scripts/check_answer.py validates [n] citations against the search results, renumbers them in order of use, flags uncited sentences and builds the Sources list. Python standard library only, no embeddings, no network. Tested on 305 Next.js docs pages (2,806 sections, about 5 ms per search).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Docs Q&A with Citations, No Guessing skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Docs Q&A with Citations, No Guessing do?

Ask questions about your own Markdown or MDX docs and get answers that cite the exact file, section and lines, or a plain "not in the docs" instead of a guess.

### Which AI agents support Docs Q&A with Citations, No Guessing?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Docs Q&A with Citations, No Guessing?

Connect your AI agent to Agensi through MCP, then ask it to use Docs Q&A with Citations, No Guessing on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
