document-qa

document-qa is a skill for Claude Code, Codex from xyva-yuangui/XyvaClaw. It costs 53 tokens per session (348 once invoked), scanned A, original, MIT.

A document question-and-answer tool for PDFs, Word files, text, Markdown, CSV, and Excel files. It finds relevant passages in one file or a whole folder and uses a language model to answer questions.

In plain words
What is it for?
Use it to find answers in contracts, reports, policies, and other document collections, such as asking about a penalty clause or a sales target.
Why use it?
It removes the need to search through long documents manually when you need a specific fact, clause, or figure.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to find answers in contracts, reports, policies, and other document collections, such as asking about a penalty clause or a sales target.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xyva-yuangui/xyvaclaw/document-qa
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xyva-yuangui/XyvaClaw --skill document-qa
Clone the repo
git clone --depth 1 https://github.com/xyva-yuangui/XyvaClaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for document-qa

README.md
[![agentmods](https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/document-qa/github.svg)](https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/document-qa)
Your own site
<a href="https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/document-qa"><img src="https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/document-qa/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for document-qa

Your own site · 80×15
<a href="https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/document-qa"><img src="https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/document-qa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 348 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00348
Opus 5 $0.00026 $0.00174
Sonnet 5 $0.00011 $0.00070
Haiku 4.5 $0.00005 $0.00035

Measured 11d ago against content hash 9a12672c8aa3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

document-qa scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/doc_qa.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

config-base/workspace/skills/document-qa/SKILL.md · 38 lines

What it actually says

Document QA — 文档问答

触发场景: 快速从合同/报告/文档中找答案,问"这份合同违约金多少"、"Q3销售目标是什么"。

用法

# 问单个文件
python3 {baseDir}/scripts/doc_qa.py ask --file contract.pdf "违约金条款是什么?"

# 问整个目录(会搜索所有文档)
python3 {baseDir}/scripts/doc_qa.py ask --dir ./docs "公司的退货政策是什么?"

# 扩大检索块数
python3 {baseDir}/scripts/doc_qa.py ask --file report.pdf --top-k 8 "Q3 销售目标完成情况"

# 健康检查
python3 {baseDir}/scripts/doc_qa.py --check

支持格式

.pdf .docx .doc .txt .md .csv .xlsx

注意

  • 首次使用大文档(>50页)需要约 10-60 秒提取时间
  • 问答历史自动保存至 ~/.openclaw/output/doc_qa/qa_history.jsonl
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 38 lines · 53 tokens per session scan A 9a12672c8aa3

Subscribe to this mod's changes

document-qa is a skill published in the GitHub repository xyva-yuangui/XyvaClaw (21 stars, last pushed 1mo ago), licensed MIT. It adds 53 tokens to every session and 348 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

youdaonote

A command-line skill for managing Youdao Cloud Notes, a Chinese note-taking service. It supports notes, to-do items, saved web pages, searches, and folders.

netease-youdao/LobsterAI · 70 tokens

library-rag

Semantic search over a personal library using Nemotron-3-Embed-1B embeddings + sqlite-vec. Index books, documents, any text corpus; query by meaning. Includes EPUB→Markdown conversion and MCP server for auto-available search tools.

moonlight-lupin/agent-skills · 54 tokens

world-model-diagnostic

Twenty-minute diagnostic mapping a team to a world-model paradigm (vector DB, structured ontology, signal-fidelity). Use when you say "run the world model diagnostic", "audit our world model", "which world model architecture fits us", or "audit where we automate judgment". Use for AI readiness assessments and…

rjmurillo/ai-agents · 94 tokens

xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify…

netease-youdao/LobsterAI · 96 tokens

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

netease-youdao/LobsterAI · 50 tokens

rag-assistant

A local knowledge-base assistant for answering questions from indexed private documents. It searches the stored documents, checks whether the results are relevant, and cites the source files in its answers.

MerkyorLynn/Lynn · 41 tokens