pdflib-agents-review

Validate pdf-lib 1.x code against a seven-point error checklist.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/OpenAEC-Foundation/pdf-lib-Claude-Skill-Package --skill pdflib-agents-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdflib-agents-review
Source: https://github.com/OpenAEC-Foundation/pdf-lib-Claude-Skill-Package/tree/main/skills/source/pdflib-agents/pdflib-agents-review
Command: npx skills add https://github.com/OpenAEC-Foundation/pdf-lib-Claude-Skill-Package --skill pdflib-agents-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents shipping broken or visually incorrect PDFs by guiding reviewers through a deterministic, ordered validation of pdf-lib code. It identifies runtime-critical errors and common anti-patterns such as missing await, incorrect imports, improper font handling, unsupported image formats, unsafe cross-document page use, form mishandling, and color/positioning mistakes.

Core Features & Use Cases

  • Seven‑point checklist that prioritizes CRITICAL checks (async/imports/fonts/images/pages) then WARNING/INFO checks (coordinates, forms, colors, save options) to systematically triage issues.
  • Actionable fixes with severity, line references, concise issue descriptions, and clear remediation steps suitable for code review comments or CI gating.
  • Use Cases: manual code review, automated pre-merge audits, CI pipeline quality gates, and developer onboarding to pdf-lib best practices.

Quick Start

Review this pdf-lib code and produce a checklist-style report listing each CHECK violation with severity, line numbers, issue description, and a recommended fix.

Frequently Asked Questions about pdflib-agents-review

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

FAQPage Schema
How do I validate pdf-lib code for common runtime errors before release?

Review pdf-lib code using a 7-point checklist that checks async/await usage, import completeness, fontkit registration, image formats, cross-document page copying, form handling, and color ranges to prevent runtime failures and visual corruption.

What causes missing fonts or broken text when generating PDFs with pdf-lib?

Broken text in pdf-lib usually stems from improper font handling or missing fontkit registration. Validate font embedding logic against a checklist verifying font registration and import completeness to flag and fix these visual corruption issues.

Does this pdf-lib review process work for both JavaScript and TypeScript projects?

Yes, the pdf-lib validation process applies to JavaScript and TypeScript projects using pdf-lib 1.x. It checks async usage, imports, images, pages, forms, and save options to ensure code stability across both environments.

How do I automate pdf-lib pre-merge audits in a CI pipeline?

Automate pdf-lib pre-merge audits by running the validation checklist as a CI quality gate. It produces actionable fixes with severity levels and line references suitable for automated gating or code review comments.

Why does my pdf-lib code fail when copying pages between documents?

Cross-document page copying in pdf-lib causes failures if executed unsafely. The validation checklist identifies unsafe cross-document page use and provides clear remediation steps to prevent runtime errors.

What are the limitations of validating pdf-lib code with a static checklist?

The validation checklist requires access to pdf-lib source snippets and focuses on a deterministic 7-point check covering async, imports, fonts, images, pages, forms, and colors. It does not execute code, so dynamic runtime behaviors outside these checks are not covered.