← All skills
Tencent SkillHub · Developer Tools

swiftfindrefs

Use swiftfindrefs (IndexStoreDB) to list every Swift source file referencing a symbol. Mandatory for “find references”, “fix missing imports”, and cross-module refactors. Do not replace with grep/rg or IDE search.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Use swiftfindrefs (IndexStoreDB) to list every Swift source file referencing a symbol. Mandatory for “find references”, “fix missing imports”, and cross-module refactors. Do not replace with grep/rg or IDE search.

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, references/workflows.md, references/cli.md, references/troubleshooting.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.5

Documentation

ClawHub primary doc Primary doc: SKILL.md 10 sections Open source page

Purpose

Use swiftfindrefs to locate every Swift source file that references a given symbol by querying Xcode’s IndexStore (DerivedData). This skill exists to prevent incomplete refactors caused by text search or heuristics.

Rules

Always run swiftfindrefs before editing any files. Only edit files returned by swiftfindrefs. Do not substitute grep, rg, IDE search, or filesystem heuristics for reference discovery. Do not expand the file set manually. If IndexStore/DerivedData resolution fails, stop and report the error. Do not guess.

Preconditions

macOS with Xcode installed Project has been built at least once (DerivedData exists) swiftfindrefs available in PATH

Installation

brew tap michaelversus/SwiftFindRefs https://github.com/michaelversus/SwiftFindRefs.git brew install swiftfindrefs

Canonical command

Prefer providing --projectName and --symbolType when possible. swiftfindrefs \ --projectName <XcodeProjectName> \ --symbolName <SymbolName> \ --symbolType <class|struct|enum|protocol|function|variable> Optional flags: --dataStorePath <path>: explicit DataStore (or IndexStoreDB) path; skips discovery -v, --verbose: enables verbose output for diagnostic purposes (flag, no value required)

Output contract

One absolute file path per line Deduplicated Script-friendly (safe to pipe line-by-line) Ordering is not semantically meaningful

Workflow A: Find all references

Run swiftfindrefs for the symbol. Treat the output as the complete reference set. If more detail is needed, open only the returned files.

Workflow B: Fix missing imports after moving a symbol

Use swiftfindrefs to restrict scope, then add imports only where needed. swiftfindrefs -p <Project> -n <Symbol> -t <Type> | while read file; do if ! grep -q "^import <ModuleName>$" "$file"; then echo "$file" fi done Then for each printed file: Insert import <ModuleName> in the imports block at the top. Preserve existing import ordering/grouping. Never add duplicate imports. Do not reformat unrelated code.

Workflow C: Audit usage before deleting or renaming a symbol

Run swiftfindrefs for the symbol. If output is empty, treat the symbol as unused (still validate via build/tests if needed). If non-empty, review the listed files before changing public API.

References

CLI details: references/cli.md Playbooks: references/workflows.md Troubleshooting: references/troubleshooting.md

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
4 Docs
  • SKILL.md Primary doc
  • references/cli.md Docs
  • references/troubleshooting.md Docs
  • references/workflows.md Docs