app-store
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Generates Core Spotlight indexing infrastructure for making app content searchable via system Spotlight with rich attributes and deep link integration. Use when user wants to index content for Spotlight search, Siri suggestions, or system-wide searchability.
Claude Code
$ npx -y skills add rshankras/claude-code-apple-skills --skill spotlight-indexing --agent claude-code
Codex
$ npx skills add rshankras/claude-code-apple-skills --skill spotlight-indexing -a codex -y
Cursor
$ npx skills add rshankras/claude-code-apple-skills --skill spotlight-indexing -a cursor -y
Gemini CLI
$ npx skills add rshankras/claude-code-apple-skills --skill spotlight-indexing -a gemini-cli -y
GitHub Copilot
$ npx skills add rshankras/claude-code-apple-skills --skill spotlight-indexing -a github-copilot -y
OpenCode
$ npx skills add rshankras/claude-code-apple-skills --skill spotlight-indexing -a opencode -y
Windsurf
$ npx skills add rshankras/claude-code-apple-skills --skill spotlight-indexing -a windsurf -y
name: spotlight-indexing description: Generates Core Spotlight indexing infrastructure for making app content searchable via system Spotlight with rich attributes and deep link integration. Use when user wants to index content for Spotlight search, Siri suggestions, or system-wide searchability. allowed-tools: [Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion] last_verified: 2026-07-16 review_by: 2027-06-22 os_version: iOS 27 / macOS 27
Generate production Core Spotlight indexing infrastructure — makes app content searchable via Spotlight (and Siri suggestions). Indexes items with rich attributes, handles search continuation into your app, and manages index lifecycle.
Use this skill when the user:
Search for existing Spotlight code:
Glob: **/*Spotlight*.swift, **/*Searchable*.swift, **/*CSSearchable*.swift Grep: "CoreSpotlight" or "CSSearchableIndex" or "CSSearchableItem"
If existing Spotlight code found:
Search for existing deep link or navigation setup:
Grep: "NavigationPath" or "onOpenURL" or "NSUserActivity" or "DeepLink"
If deep linking exists:
Verify CoreSpotlight doesn't require special entitlements (it doesn't — it's a standard framework), but check if the app uses App Groups for shared index across extensions.
Ask user via AskUserQuestion:
1. **Content types to index?**
2. **Include thumbnails?**
3. **Indexing strategy?**
4. **Include Siri suggestions / shortcuts?**
Read `templates.md` for production Swift code. Read `patterns.md` for architecture guidance and best practices.
Generate these files: 1. `SpotlightIndexable.swift` — Protocol any model can conform to 2. `SpotlightIndexManager.swift` — Actor wrapping CSSearchableIndex with batching 3. `SpotlightAttributeBuilder.swift` — Fluent builder for CSSearchableItemAttributeSet
4. `SpotlightSearchHandler.swift` — Handles NSUserActivity continuation from Spotlight taps
Based on configuration:
Check project structure:
After generation, provide:
SpotlightIndexing/ ├── SpotlightIndexable.swift # Protocol for indexable models ├── SpotlightIndexManager.swift # Actor-based index management ├── SpotlightAttributeBuilder.swift # Fluent attribute builder ├── SpotlightSearchHandler.swift # Handle Spotlight tap continuation └── SpotlightSyncModifier.swift # Auto index/deindex ViewModifier (optional)
**Make a model searchable:**
// Conform your model to SpotlightIndexable
struct Article: SpotlightIndexable {
let id: UUID
let title: String
let body: String
let author: String
let tags: [String]
var spotlightID: String { id.uuidString }
var spotlightTitle: String { title }
var spotlightDescription: String { String(body.prefix(300)) }
var spotlightKeywords: [String] { tags + [author] }
var spotlightThumbnailData: Data? { nil }
var spotlightDomainIdentifier: String { "com.myapp.articles" }
}**Index on create, remove on delete:**
func createArticle(_ article: Article) async throws {
try await repository.save(article)
await SpotlightIndexManager.shared.index(items: [article])
}
func deleteArticle(_ article: Article) async throws {
try await repository.delete(article)
await SpotlightIndexManager.shared.remove(identifiers: [article.spotlightID])
}**Batch reindex (e.g., on first launch):**
func reindexAllContent() async {
let articles = await repository.fetchAll()
await SpotlightIndexManager.shared.reindexAll(items: articles, domain: "com.myapp.articles")
}**Handle Spotlight tap (App or Scene delegate):**
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.onCA collection of Claude Code skills for iOS, macOS, watchOS, visionOS, and Apple platform development. These skills help you plan and build apps, maintain code quality, ensure HIG compliance, and guide you from idea to App Store.
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution,…
Generate compelling App Store descriptions that convert browsers into users. Use when writing initial descriptions, improving…
Apple Search Ads campaign strategy for indie developers — paid acquisition, keyword bidding, budget planning, and ROAS…
Take a one-time in-app purchase from MISSING_METADATA to READY_TO_SUBMIT in App Store Connect — set its price schedule and…
Optimize app title, subtitle, and keywords for maximum App Store discoverability. Use when launching a new app, improving search…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.