swiftfindrefs

iOS & macOS Development
v1.0.5
Benign

Use swiftfindrefs (IndexStoreDB) to list every Swift source.

11.6K downloads1.6K installsby @michaelversus

Setup & Installation

Install command

clawhub install michaelversus/swiftfindrefs

If the CLI is not installed:

Install command

npx clawhub@latest install michaelversus/swiftfindrefs

Or install with OpenClaw CLI:

Install command

openclaw skills install michaelversus/swiftfindrefs

or paste the repo link into your assistant's chat

Install command

https://github.com/openclaw/skills/tree/main/skills/michaelversus/swiftfindrefs

What This Skill Does

swiftfindrefs queries Xcode's IndexStore (DerivedData) to return every Swift source file that references a given symbol. It covers classes, structs, enums, protocols, functions, and variables across modules. Output is one absolute file path per line, deduplicated and safe to pipe.

grep and IDE search operate on text and miss references that the compiler resolved through type inference or module re-exports, while IndexStoreDB reflects what was actually compiled.

When to Use It

  • Finding all callers of a function before renaming it
  • Auditing files affected by moving a type to a new module
  • Adding missing imports only to files that reference a relocated symbol
  • Confirming a symbol is unused before deleting it
  • Scoping a cross-module refactor to exactly the files that matter

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Finding all callers of a function before renaming it

AGENT
  1. 1Finding all callers of a function before renaming it
  2. 2Auditing files affected by moving a type to a new module
  3. 3Adding missing imports only to files that reference a relocated symbol
  4. 4Confirming a symbol is unused before deleting it
  5. 5Scoping a cross-module refactor to exactly the files that matter
OUTPUT
Use swiftfindrefs (IndexStoreDB) to list every Swift source.

Share this skill

Security Audits

VirusTotalBenign
OpenClawBenign
View full report

These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.

Details

LanguageMarkdown
Last updatedFeb 26, 2026