audit-pdf-generator

Audits fallback PDF generation from XML for fiscal fields, line items, amounts, reindexability, and error handling.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/ElPoot/contabilidad --skill audit-pdf-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-pdf-generator
Source: https://github.com/ElPoot/contabilidad/tree/main/.agents/skills/audit-pdf-generator
Command: npx skills add https://github.com/ElPoot/contabilidad --skill audit-pdf-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you confirm that when a company invoice has XML but no associated PDF, the system’s fallback PDF generation is complete, readable, and suitable for downstream reindexing and audits.

Core Features & Use Cases

  • Validate generated PDF content: Checks whether the fallback PDF includes the fiscal key, taxpayer identity fields, line-item detail, and totals (to detect incomplete layouts or silent extraction failures).
  • Confirm reindexability: Verifies whether the generated PDF can be reindexed by checking who calls the generator, whether reindexing is supported, and whether text extraction from the generated PDF works.
  • Inspect error handling: Looks for try/except coverage, logging, and how optional dependencies (like fitz) are used to detect silent failures.

Quick Start

Ask the skill to audit the current codebase for the XML-to-PDF generator behavior and produce an “AUDITORIA: GENERACION DE PDF DESDE XML” report with a clear verdict.

Frequently Asked Questions about audit-pdf-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify XML-to-PDF fallback generation includes required fiscal fields?

Verifying XML-to-PDF fallback generation involves auditing the produced document to confirm it contains required fiscal keys, taxpayer identity fields, line-item detail, and totals, which detects incomplete layouts or silent extraction failures.

What is XML-to-PDF fallback generation used for in fiscal documents?

XML-to-PDF fallback generation creates a readable PDF invoice from XML data when the original document is missing, ensuring the generated file is complete, readable, and suitable for downstream reindexing and audits.

How do I check if a generated PDF is reindexable after XML conversion?

Checking if a generated PDF is reindexable involves verifying who calls the generator, confirming reindexing is supported, and testing text extraction from the produced PDF to ensure successful downstream processing.

How do I audit error handling in a PDF generator module?

Auditing error handling in a PDF generator requires checking for try/except coverage, proper logging, and how optional dependencies like fitz are used, which detects silent failures during PDF generation and text extraction.

Does the PDF generator support text extraction with fitz for audits?

The PDF generator supports optional fitz usage for text extraction during audits, checking how this dependency is used to detect silent failures and verify that generated PDF content can be successfully extracted.

What are common limitations when generating PDFs from XML data?

Common limitations when generating PDFs from XML include silent extraction failures, incomplete layouts missing fiscal fields, and non-reindexable output, which auditing try/except coverage and logging helps detect.