SwiftFindRefs
Find Swift symbol references and clean testable imports
All Skills in This Repository (2)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install SwiftFindRefs?โผ
Run `npx skills add michaelversus/SwiftFindRefs --all -g -y` in your terminal to install all skills in this repository globally.
How to find all references to a Swift symbol?โผ
Run `swiftfindrefs -p YourProject -n SymbolName -t class` to query Xcode's IndexStoreDB and get a deduplicated list of every file referencing that symbol.
Why use IndexStore instead of grep for refactoring?โผ
Text search misses matches and produces false positives, while IndexStoreDB uses the compiler's own index for complete, accurate reference discovery.
How to remove unnecessary @testable imports?โผ
Run `swiftfindrefs rmUTI -p YourProject` to automatically detect and delete @testable import statements that are no longer needed after making symbols public.
Does SwiftFindRefs work with AI coding agents?โผ
Yes. It includes a SKILL.md that instructs agents to use IndexStore-based reference discovery instead of unreliable grep or IDE search during refactors.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core