# paperkit

This skill guides PaperKit markup integration in iOS apps, from an editable canvas to saved annotations. Use it when adding drawings, shapes, or text to documents.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3000 installs · ★ 1237
- Author: dpearson2699
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/paperkit/SKILL.md
- Updated: 2026-07-31
- HTML: https://affpapa.org/en/nevibecode/skills/paperkit

## What it does

paperkit covers integration with `PaperMarkupViewController` and the `PaperMarkup` model. It shows how to combine PencilKit strokes with structured items such as text, images, and shapes, then persist the result. The guidance also addresses placing markup tools inside a document editor.

The workflow includes choosing document bounds and a `FeatureSet`, wiring up `PKToolPicker`, and loading or saving markup. It also discusses setting a page or image behind the canvas and creating content through the model. Annotation coordinates must match the background’s dimensions so content returns to the intended location.

PaperKit is available from iOS 26.0. Its API surface can change, so check current Apple documentation before shipping an app.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill paperkit -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/paperkit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/paperkit/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill paperkit -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/paperkit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill paperkit -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/paperkit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dpearson2699/swift-ios-skills paperkit
```

2. **Manually: put the files in place**
- File: `.github/skills/paperkit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill paperkit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dpearson2699/swift-ios-skills --path skills/paperkit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/paperkit/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill paperkit -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/paperkit/SKILL.md

## When to use it
- embed an editable markup canvas in a document editor
- persist PencilKit strokes alongside structured markup
- align annotation coordinates with a page image
- add controls for inserting markup elements

## Example prompts
- Show me how to add `PaperMarkupViewController` to this document editor.
- Set up saving and reloading `PaperMarkup` for a PDF page.
- Use an image as the canvas background and align the markup bounds to it.

## Similar
- [vercel-react-native-skills](https://affpapa.org/en/nevibecode/skills/vercel-react-native-skills.md) — skill · 255200 installs
- [animate-expo](https://affpapa.org/en/nevibecode/skills/animate-expo.md) — skill · 137900 installs
- [mobile-native](https://affpapa.org/en/nevibecode/skills/mobile-native.md) — skill · 86600 installs
- [aso](https://affpapa.org/en/nevibecode/skills/aso.md) — skill · 75400 installs
- [swiftui-pro](https://affpapa.org/en/nevibecode/skills/swiftui-pro.md) — skill · 35200 installs
- [orca-emulator](https://affpapa.org/en/nevibecode/skills/orca-emulator.md) — skill · 5800 installs

From the same set: [dpearson2699/swift-ios-skills](https://affpapa.org/en/nevibecode/by/dpearson2699/swift-ios-skills.md) — 86 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
