Skip to main content
skill CX Codex

pdfkit — Claude Code skill: what it does, how to install

This skill guides PDFKit work in Swift apps, from displaying documents to searching text and adding annotations. Use it when building PDF features into an app.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill pdfkit -a claude-code
Open on GitHub

What pdfkit does

The skill covers displaying and loading PDFs, moving between pages, searching document text, and extracting page content. It also describes annotations, thumbnails, PDF form filling, and wrapping PDFView for SwiftUI.

Its examples use PDFView, PDFDocument, PDFPage, PDFAnnotation, and PDFSelection. Documents can be loaded from a URL or Data, then edited and saved. Page indices start at zero; an invalid index can raise an exception, so validate it before accessing a page.

To use the framework, import PDFKit; the guide says no entitlements or Info.plist entries are needed. The system find interaction requires iOS/iPadOS 16 or later, so check the target version before relying on it.

What it helps with

  • embed a PDF viewer in a Swift app
  • search a document and jump to a match
  • attach a highlight or text note to a page
  • extract text from a PDF page
  • reorder pages and save the document

Example prompts for the agent

  • Show me how to display a PDF in my Swift app with PDFKit.
  • Add text search to this PDF viewer and navigate to a match.
  • Explain how to attach a note to a PDF page and save the document.

How to install pdfkit

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill pdfkit -a claude-code

2Manually: put the files in place

~/.claude/skills/pdfkit/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/pdfkit/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about pdfkit

How do I install pdfkit in Claude Code?

Run npx skills add dpearson2699/swift-ios-skills --skill pdfkit -a claude-code. The skill file is located at ~/.claude/skills/pdfkit/SKILL.md.

What does the pdfkit skill do?

It guides PDFKit use in Swift apps, including document display, text search and extraction, annotations, and page operations.

What should I check when navigating to a PDF page?

Page indices are zero-based. Check that an index is within the document’s page count, since an out-of-range access can raise an exception.

Similar skills

Everything for Mobile →

From the same set86

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor