spotlight-indexing

Generate Core Spotlight indexing infrastructure for iOS and macOS apps.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/ano4l/SiteRent --skill spotlight-indexing-ano4l
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spotlight-indexing
Source: https://github.com/ano4l/SiteRent/tree/main/skills/generators/spotlight-indexing
Command: npx skills add https://github.com/ano4l/SiteRent --skill spotlight-indexing-ano4l

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill generates production Core Spotlight indexing infrastructure to make app content searchable via Spotlight and Siri suggestions, enabling seamless discovery and handoff.

Core Features & Use Cases

  • Generate a complete Spotlight indexing subsystem including indexable models, item attributes, and an index manager with batched processing.
  • Wire NSUserActivity and Siri suggestions for deep linking and proactive discovery.
  • Support domain-based bulk removal, reindexing after data migrations, and incremental indexing strategies for large datasets.

Quick Start

Define your data models to conform to SpotlightIndexable and call SpotlightIndexManager.shared.index(items: ...) to start indexing.

Frequently Asked Questions about spotlight-indexing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make my iOS app content searchable via Spotlight?

To make iOS app content searchable via Spotlight, you generate CoreSpotlight indexing infrastructure by defining conforming models, building attribute sets, and using an index manager for batched processing. This enables seamless content discovery directly from Spotlight search.

How does CoreSpotlight indexing work with SwiftUI?

CoreSpotlight indexing works with SwiftUI by applying optional SwiftUI modifiers to wire user-activity handoff for Spotlight results. Your data models must conform to a specific indexing protocol, allowing the index manager to process and surface items within Spotlight.

Can I bulk remove indexed items from Spotlight by domain?

Yes, you can bulk remove indexed items from Spotlight by domain. The generated index manager supports domain-based removal, allowing you to efficiently clear searchable Spotlight entries during data migrations or when deleting large datasets.

Does Spotlight indexing support incremental strategies for large datasets?

Spotlight indexing supports incremental strategies for large datasets. The generated infrastructure includes a SpotlightIndexManager that handles batch indexing and reindexing after data migrations, ensuring efficient updates without overwhelming the system.

How do I wire NSUserActivity for Siri suggestions and deep linking?

You wire NSUserActivity for Siri suggestions and deep linking by integrating it with your CoreSpotlight indexing infrastructure. This combination enables proactive discovery and seamless handoff when users interact with your app content via Spotlight results.