Back to Skills

axiom-core-spotlight-ref

verified

Use when indexing app content for Spotlight search, using NSUserActivity for prediction/handoff, or choosing between CSSearchableItem and IndexedEntity - covers Core Spotlight framework and NSUserActivity integration for iOS 9+

View on GitHub

Marketplace

axiom-marketplace

CharlesWiltgen/Axiom

Plugin

axiom

Repository

CharlesWiltgen/Axiom
289stars

.claude-plugin/plugins/axiom/skills/axiom-core-spotlight-ref/SKILL.md

Last Verified

January 16, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/CharlesWiltgen/Axiom/blob/main/.claude-plugin/plugins/axiom/skills/axiom-core-spotlight-ref/SKILL.md -a claude-code --skill axiom-core-spotlight-ref

Installation paths:

Claude
.claude/skills/axiom-core-spotlight-ref/
Powered by add-skill CLI

Instructions

# Core Spotlight & NSUserActivity Reference

## Overview

Comprehensive guide to Core Spotlight framework and NSUserActivity for making app content discoverable in Spotlight search, enabling Siri predictions, and supporting Handoff. Core Spotlight directly indexes app content while NSUserActivity captures user engagement for prediction.

**Key distinction** Core Spotlight = indexing all app content; NSUserActivity = marking current user activity for prediction/handoff.

---

## When to Use This Skill

Use this skill when:
- Indexing app content (documents, notes, orders, messages) for Spotlight
- Using NSUserActivity for Handoff or Siri predictions
- Choosing between CSSearchableItem, IndexedEntity, and NSUserActivity
- Implementing activity continuation from Spotlight results
- Batch indexing for performance
- Deleting indexed content
- Debugging Spotlight search not finding app content
- Integrating NSUserActivity with App Intents (appEntityIdentifier)

Do NOT use this skill for:
- App Shortcuts implementation (use app-shortcuts-ref)
- App Intents basics (use app-intents-ref)
- Overall discoverability strategy (use app-discoverability)

---

## Related Skills

- **app-intents-ref** — App Intents framework including IndexedEntity
- **app-discoverability** — Strategic guide for making apps discoverable
- **app-shortcuts-ref** — App Shortcuts for instant availability

---

## When to Use Each API

| Use Case | Approach | Example |
|----------|----------|---------|
| User viewing specific screen | `NSUserActivity` | User opened order details |
| Index all app content | `CSSearchableItem` | All 500 orders searchable |
| App Intents entity search | `IndexedEntity` | "Find orders where..." |
| Handoff between devices | `NSUserActivity` | Continue editing note on Mac |
| Background content indexing | `CSSearchableItem` batch | Index documents on launch |

**Apple guidance** Use NSUserActivity for user-initiated activities (screens currently visible), not as a general inde

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
22473 chars