From xcindex
Compute the dependency blast radius of a Swift or Objective-C file — direct dependents, one hop of transitive callers, and covering tests — from Xcode's pre-built index. Use this when planning a refactor, scoping a structural change, or sizing the impact of editing a shared file, before reading anything.
How this skill is triggered — by the user, by Claude, or both
Slash command
/xcindex:swift-blast-radiusWhen to use
Trigger on phrasing like "what does this file affect", "what depends on AuthService.swift", "what will break if I change this", "what tests cover this code", "blast radius of NetworkClient.swift", "scope this refactor", "how big a change is this", "is it safe to edit X". Reach for this skill BEFORE editing any shared utility, service, manager, or model file, and BEFORE starting any non-trivial refactor — the result tells you the minimal set of files you actually need to read. For broader scoping that includes risks and a recommended execution path, use swift-refactor-plan. For symbol-level (not file-level) impact, use swift-find-references. Skip when the file is an obvious leaf (a specific View or ViewModel with no callers) or the index is stale.
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Given a file path, returns three sets:
Given a file path, returns three sets:
directDependents — files that directly call symbols defined in the target.affectedFiles — directDependents plus one hop of transitive callers.coveringTests — test files within the affected set.This replaces "read 20 files to understand the codebase before editing." The index already knows.
blast_radius with the absolute file path.directDependents plus
coveringTests. Skip affectedFiles unless you're doing something deep.directDependents, run
coveringTests.affectedFiles as a risk surface, not a reading list — it's where
regressions might surface, not where edits happen.BAD: Read 20 files to "understand the codebase" before editing NetworkClient.swift
GOOD: blast_radius("NetworkClient.swift")
→ directDependents: [APIService.swift, AuthManager.swift]
→ coveringTests: [NetworkClientTests.swift]
Read only those 3. Save 17 file reads.
User: "I need to refactor ModelData.swift. What do I need to read first?"
blast_radius(filePath: "/abs/path/ModelData.swift")swift-find-references.blast_radius will just confirm that, but it's not the cheapest path.npx claudepluginhub drewalth/claude-xcindex --plugin xcindexSearches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.