What problem does it solve?
Many apps need their content discoverable system-wide but lack a robust, production-ready integration with Core Spotlight and Siri suggestions; this Skill provides a complete indexing workflow so user-visible items appear in Spotlight results, handle deep-link continuation, and stay consistent across updates and deletions.
Core Features & Use Cases
- Protocol-driven indexing: A SpotlightIndexable protocol to convert models into CSSearchableItem objects.
- Safe concurrency and batching: An actor-wrapped SpotlightIndexManager that batches indexing, supports reindexing, and performs domain-based removals.
- Rich attributes and thumbnails: A SpotlightAttributeBuilder for fine-grained attribute sets and optional thumbnail support.
- Deep-link continuation & Siri: SpotlightSearchHandler and NSUserActivity wiring for handling taps and enabling Siri suggestions.
- View-level sync: Optional ViewModifier to auto-index on appear and remove on disappear for SwiftUI views.
- Use cases: Indexing articles, products, contacts, tasks, or any custom models to appear in Spotlight and be eligible for Siri predictions.
Quick Start
Generate Core Spotlight indexing infrastructure for my app's Article model with batch initial indexing, thumbnails enabled, and Siri suggestions.