You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable Claude to write correct, version-aware PDF.js code for rendering and interacting with PDF documents in the browser — without hallucinating APIs.
What Claude Should Do After Loading Skills
Recognize PDF.js context from user requests (PDF viewing, rendering, text extraction)
Select the correct skill(s) automatically based on the request
Write correct TypeScript/JavaScript code using pdfjs-dist 5.x APIs
Avoid known anti-patterns and common AI mistakes
Follow best practices documented in the skill references
Quality Guarantees
Guarantee
Description
Version-correct
Code MUST target pdfjs-dist 5.x
API-accurate
All method signatures verified against official docs
Worker-aware
Skills MUST address worker setup correctly
Anti-pattern-free
Known mistakes are explicitly documented and avoided
Deterministic
Skills use ALWAYS/NEVER language, not suggestions
Self-contained
Each skill works independently without requiring other skills
Per-Area Requirements
1. Viewer API
Requirement
Detail
Document loading
getDocument() with various source types (URL, ArrayBuffer, typed array)