Document FAQ Assistant
ResearchDocument FAQ Assistant is an Agent Skill for research published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Answer from docs, cite sources
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/documents/document-faq-assistant/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/document-faq-assistant, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Document FAQ Assistant
When answering from workspace documents:
- Search documents with the user’s question or key terms to find relevant snippets.
- Cite sources: mention which document or section the answer comes from.
- Prefer quoting or paraphrasing the doc rather than inventing; if nothing is found, say so.
- Use a focused query (e.g. “refund policy”, “API rate limits”) for better matches.
- When multiple snippets apply, summarize and list the most relevant ones first.
Step-by-step instructions
- Turn the user’s question into a short search query (key terms, not full sentence).
- Call search_documents with that query.
- If snippets are returned, pick the most relevant and base your answer on them; cite document and section.
- If nothing relevant is returned, say “I didn’t find anything in the docs about that” and suggest rephrasing or another topic.
- Do not make up facts; only state what the snippets support.
Examples of inputs and outputs
-
Input: “What’s the refund policy?”
Output: Answer in 1–3 sentences quoting or paraphrasing the doc, e.g. “According to [Document name], …” with the relevant snippet content. -
Input: “API rate limits?”
Output: List limits (numbers, windows) with document reference; if docs say “contact support” for exceptions, say that.
Common edge cases
- Zero results: Tell the user no matching content was found; suggest alternative phrasings or that the topic might not be in the knowledge base.
- Many snippets: Summarize the most relevant 1–3 and mention “see [doc] for more” if others matter.
- Conflicting info across docs: Mention both and note which doc is more recent or authoritative if visible.
- User asks for something not in docs: Answer only from docs; do not use general knowledge to fill gaps unless the user explicitly asks.
Tool usage for specific purposes
- search_documents: Use for every FAQ-style question. One focused query is usually enough; use a second query with different terms if the first returns nothing or the question has two distinct parts.