Read, extract or compare PDFs, Office files, URLs and large text; OCR when vision fails.
78%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./plugins/_document_query/skills/document-query/SKILL.mdUse the document_query tool to read, extract, summarize, compare, or answer questions over documents and document-like files.
Use document_query for:
Use vision tools first for image files, screenshots, scans, charts, photos, diagrams, and other visual inputs when available. Do not route images to document_query as a first-pass reader.
Do not use document_query for purely visual questions, first-pass screenshot inspection, or tasks that require spatial/visual reasoning beyond document text; use vision tools when available for those cases.
document_query accepts:
document: required. A single local path/URL or a list of local paths/URLs.queries: optional. A list of questions. When omitted, the tool returns extracted document content.query: optional compatibility shortcut for a single question.Local paths must be full paths. file:// is optional for local files. URLs should use http:// or https://.
For directories or codebases, first identify the relevant files with file/search tools, then pass the files themselves to document_query. Do not pass a directory path as the document.
document_query directly after this skill is loaded.queries.queries.document and ask comparison or extraction questions in queries.{
"thoughts": [
"The user wants the document text, so I should extract the content."
],
"headline": "Extracting document content",
"tool_name": "document_query",
"tool_args": {
"document": "/a0/usr/workdir/report.pdf"
}
}{
"thoughts": [
"The user asks questions whose answers should come from the PDF."
],
"headline": "Answering questions from the document",
"tool_name": "document_query",
"tool_args": {
"document": "/a0/usr/workdir/report.pdf",
"queries": [
"What is the report's main conclusion?",
"What dates or deadlines does it mention?"
]
}
}{
"thoughts": [
"The user wants a comparison across two source documents."
],
"headline": "Comparing documents",
"tool_name": "document_query",
"tool_args": {
"document": [
"https://example.com/policy-2025.pdf",
"/a0/usr/workdir/policy-2026.pdf"
],
"queries": [
"Compare the main changes between the two documents.",
"Which requirements appear only in the second document?"
]
}
}{
"thoughts": [
"Vision tools are unavailable or could not read the scanned document text, so document_query is the fallback OCR path."
],
"headline": "Reading document text with fallback OCR",
"tool_name": "document_query",
"tool_args": {
"document": "/a0/usr/workdir/scan.png",
"queries": [
"What text is visible in the document?",
"What is the document title?"
]
}
}{
"thoughts": [
"The user asks about specific code files, so I can query those files as documents."
],
"headline": "Answering from code files",
"tool_name": "document_query",
"tool_args": {
"document": [
"/a0/usr/workdir/src/app.py",
"/a0/usr/workdir/src/config.py"
],
"queries": [
"Where is the database connection configured?",
"Which environment variables are required?"
]
}
}agent0ai/agent-zero
ff2a5b9
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.