Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pdf-diagnostics

Skill by zotero-rag

Diagnoses and fixes PDF parsing and text extraction bugs in the zqa-pdftools Rust crate. It follows a step-by-step runbook covering content streams, font encodings and CMaps. Intended for developers working on the Zotero RAG project.

  • Score 58
  • 23 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pdf-diagnostics

Built from the published package, never by AI.

git clone --depth 1 https://github.com/zotero-rag/zotero-rag /tmp/zotero-rag && mkdir -p ~/.claude/skills && cp -r /tmp/zotero-rag/.agents/skills/pdf-diagnostics ~/.claude/skills/pdf-diagnostics

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pdf-diagnostics in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The pdf-diagnostics skill guides an AI assistant through debugging PDF parsing and text extraction problems in the zqa-pdftools Rust crate, which is part of the Zotero RAG project. It covers cases such as garbled text, missing spaces and bad font extraction. The skill sets out a fixed runbook: dump the raw content stream, check font dictionaries and ToUnicode CMaps, inspect the bytes around a failing object, then implement and verify a fix.

The skill also sets coding rules for the crate. It asks the assistant to avoid heap allocations where possible, to use thiserror instead of anyhow, and to avoid println! because zqa-pdftools is a library. Its checklist runs cargo fmt, clippy and the workspace tests. It is aimed at developers working on PDF handling in that crate.

Written from the project's SKILL.md and checked against it.

What it can do

  • Raw content stream inspectionDumps PDF operators such as BT, Tf and Td to see what the page is doing.
  • Font and encoding diagnosticsInspects font dictionaries and the ToUnicode CMap, with fallback to MacRoman or WinAnsi.
  • Localized object debuggingExtracts the byte context around a known string near a parsing failure.
  • Fix verificationRuns cargo clippy and the zqa-pdftools workspace tests after a change.
  • Coding rule enforcementGuides zero-copy slicing, thiserror error enums and doc comment format.

What you need

  • Rust toolchain with cargo
  • The zqa-pdftools crate from the Zotero RAG project

Try asking

  • Debug why this PDF page extracts gibberish text and check its font CMap
  • Dump the content stream operators for page 3 of this PDF file
  • Fix the missing spaces in the TJ kerning handling and run the crate tests

Good to know

  • Targets only the zqa-pdftools crate in the Zotero RAG project.
  • Some diagnostic tests are marked ignored and need the test code edited to point at the problem PDF.
  • Forbids the anyhow crate and println! output in the library.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/pdf-diagnostics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Write Edit Grep Glob Bash(cargo fmt --all:*) Bash(cargo clippy --all-targets --all-features:*) Bash(cargo test -p zqa-pdftools:*)

Alternatives to pdf-diagnostics

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

pdf-diagnostics: common questions

What kinds of PDF problems does pdf-diagnostics handle?

The source names garbled text, missing spaces, bad font extraction, and text extraction bugs involving byte streams, font dictionaries and CMaps.

Which crate does this skill work on?

It is written for the zqa-pdftools Rust crate within the Zotero RAG project.

How does the skill verify a fix?

It runs cargo clippy with warnings treated as errors, then the zqa-pdftools workspace tests to check for regressions.

How do I install pdf-diagnostics?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is pdf-diagnostics free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is pdf-diagnostics safe to use?

It scores 58 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pdf-diagnostics?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

pdf-diagnostics Install

Add to stack

Loading.