audit-pdf-viewer
CommunityPrevent stuck PDFs and rendering issues
Software Engineering#text extraction#pymupdf#zoom#pdf viewer#file handles#onedrive placeholder#rendering audit
AuthorElPoot
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps detect issues in the PDF viewer lifecycle where PyMuPDF/fitz may keep file handles open, mishandle OneDrive placeholders, or cause rendering/text-selection failures that can later block file classification workflows.
Core Features & Use Cases
- File-handle lifecycle auditing: Verifies that
fitz.open()is paired with explicit/guaranteedclose()(including try/finally or context-managed patterns) and that handles are released before downstream classification. - Placeholder detection for OneDrive paths: Checks whether placeholder files (e.g., zero-byte stubs) are detected and safely handled to avoid crashes or incorrect processing.
- Rendering and text extraction checks: Reviews zoom/pixmap rendering and text/word extraction code paths that support selection in the viewer.
- Use case: When PDFs are heavy or sometimes “don’t load,” run this audit to pinpoint where rendering or handle release breaks, especially around transitions that lead to
PermissionError/locked-file behavior.
Quick Start
Ask the auditor to review the current code for gestor_contable/gui/pdf_viewer.py and gestor_contable/config.py and produce the “AUDITORIA: VISOR PDF” report with any real findings only.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: audit-pdf-viewer Download link: https://github.com/ElPoot/contabilidad/archive/main.zip#audit-pdf-viewer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.