# core-nfc

Configures Apple CoreNFC in iOS projects for scanning, writing NDEF payloads, and managing native ISO or MIFARE tag sessions.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3600 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/core-nfc/SKILL.md
- Updated: 2026-07-31
- HTML: https://affpapa.org/en/nevibecode/skills/core-nfc

## What it does

This skill equips your coding agent with setup steps and code patterns for Apple CoreNFC framework. It guides the creation of `NFCNDEFReaderSession` instances to extract text or URI payloads from tags, as well as handling session delegate callbacks. When lower-level communication is required, it provides patterns for `NFCTagReaderSession` targeting ISO 7816, ISO 15693, FeliCa, and MIFARE technologies.

Xcode configuration rules are bundled directly into the instructions. The skill insists on setting `NFCReaderUsageDescription` in `Info.plist`, selecting the modern `TAG` value in reader session format entitlements, and configuring specific application identifiers for ISO 7816. Real devices require an iPhone 7 or newer. Keep in mind that native tag sessions in this setup cannot be used for payment-related AIDs.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill core-nfc -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/core-nfc/SKILL.md

## When to use it
- read NDEF payloads using NFCNDEFReaderSession
- write URI and text records to writable NFC tags
- configure NFC entitlements and Info.plist entries in Xcode
- establish low-level tag sessions for ISO 15693, FeliCa, or MIFARE

## Example prompts
- Set up an NFCNDEFReaderSession to read URLs from tags
- Write an NDEF text payload to a tag after verifying its readWrite status
- Add the required Info.plist strings and entitlements for ISO 7816 tags

## Similar
- [xcode-project-setup](https://affpapa.org/en/nevibecode/skills/xcode-project-setup.md) — skill · 130700 installs
- [core-data-expert](https://affpapa.org/en/nevibecode/skills/core-data-expert.md) — skill · 2500 installs
- [xcode-build-orchestrator](https://affpapa.org/en/nevibecode/skills/xcode-build-orchestrator.md) — skill · 3600 installs
- [ios-simulator-skill](https://affpapa.org/en/nevibecode/skills/ios-simulator-skill.md) — skill · 2400 installs
- [developing-ios-apps](https://affpapa.org/en/nevibecode/skills/developing-ios-apps.md) — skill · 1500 installs
- [performance-profiling](https://affpapa.org/en/nevibecode/skills/mengto-performance-profiling.md) — skill · 1400 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
