{
  "schemaVersion": "1.0",
  "item": {
    "slug": "swiftfindrefs",
    "name": "swiftfindrefs",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/michaelversus/swiftfindrefs",
    "canonicalUrl": "https://clawhub.ai/michaelversus/swiftfindrefs",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/swiftfindrefs",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=swiftfindrefs",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/workflows.md",
      "references/cli.md",
      "references/troubleshooting.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/swiftfindrefs"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/swiftfindrefs",
    "agentPageUrl": "https://openagent3.xyz/skills/swiftfindrefs/agent",
    "manifestUrl": "https://openagent3.xyz/skills/swiftfindrefs/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/swiftfindrefs/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Purpose",
        "body": "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."
      },
      {
        "title": "Rules",
        "body": "Always run swiftfindrefs before editing any files.\nOnly edit files returned by swiftfindrefs.\nDo not substitute grep, rg, IDE search, or filesystem heuristics for reference discovery.\nDo not expand the file set manually.\nIf IndexStore/DerivedData resolution fails, stop and report the error. Do not guess."
      },
      {
        "title": "Preconditions",
        "body": "macOS with Xcode installed\nProject has been built at least once (DerivedData exists)\nswiftfindrefs available in PATH"
      },
      {
        "title": "Installation",
        "body": "brew tap michaelversus/SwiftFindRefs https://github.com/michaelversus/SwiftFindRefs.git\nbrew install swiftfindrefs"
      },
      {
        "title": "Canonical command",
        "body": "Prefer providing --projectName and --symbolType when possible.\n\nswiftfindrefs \\\n  --projectName <XcodeProjectName> \\\n  --symbolName <SymbolName> \\\n  --symbolType <class|struct|enum|protocol|function|variable>\n\nOptional flags:\n\n--dataStorePath <path>: explicit DataStore (or IndexStoreDB) path; skips discovery\n-v, --verbose: enables verbose output for diagnostic purposes (flag, no value required)"
      },
      {
        "title": "Output contract",
        "body": "One absolute file path per line\nDeduplicated\nScript-friendly (safe to pipe line-by-line)\nOrdering is not semantically meaningful"
      },
      {
        "title": "Workflow A: Find all references",
        "body": "Run swiftfindrefs for the symbol.\nTreat the output as the complete reference set.\nIf more detail is needed, open only the returned files."
      },
      {
        "title": "Workflow B: Fix missing imports after moving a symbol",
        "body": "Use swiftfindrefs to restrict scope, then add imports only where needed.\n\nswiftfindrefs -p <Project> -n <Symbol> -t <Type> | while read file; do\n  if ! grep -q \"^import <ModuleName>$\" \"$file\"; then\n    echo \"$file\"\n  fi\ndone\n\nThen for each printed file:\n\nInsert import <ModuleName> in the imports block at the top.\nPreserve existing import ordering/grouping.\nNever add duplicate imports.\nDo not reformat unrelated code."
      },
      {
        "title": "Workflow C: Audit usage before deleting or renaming a symbol",
        "body": "Run swiftfindrefs for the symbol.\nIf output is empty, treat the symbol as unused (still validate via build/tests if needed).\nIf non-empty, review the listed files before changing public API."
      },
      {
        "title": "References",
        "body": "CLI details: references/cli.md\nPlaybooks: references/workflows.md\nTroubleshooting: references/troubleshooting.md"
      }
    ],
    "body": "SwiftFindRefs\nPurpose\n\nUse 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.\n\nRules\nAlways run swiftfindrefs before editing any files.\nOnly edit files returned by swiftfindrefs.\nDo not substitute grep, rg, IDE search, or filesystem heuristics for reference discovery.\nDo not expand the file set manually.\nIf IndexStore/DerivedData resolution fails, stop and report the error. Do not guess.\nPreconditions\nmacOS with Xcode installed\nProject has been built at least once (DerivedData exists)\nswiftfindrefs available in PATH\nInstallation\nbrew tap michaelversus/SwiftFindRefs https://github.com/michaelversus/SwiftFindRefs.git\nbrew install swiftfindrefs\n\nCanonical command\n\nPrefer providing --projectName and --symbolType when possible.\n\nswiftfindrefs \\\n  --projectName <XcodeProjectName> \\\n  --symbolName <SymbolName> \\\n  --symbolType <class|struct|enum|protocol|function|variable>\n\n\nOptional flags:\n\n--dataStorePath <path>: explicit DataStore (or IndexStoreDB) path; skips discovery\n-v, --verbose: enables verbose output for diagnostic purposes (flag, no value required)\nOutput contract\nOne absolute file path per line\nDeduplicated\nScript-friendly (safe to pipe line-by-line)\nOrdering is not semantically meaningful\nStandard workflows\nWorkflow A: Find all references\nRun swiftfindrefs for the symbol.\nTreat the output as the complete reference set.\nIf more detail is needed, open only the returned files.\nWorkflow B: Fix missing imports after moving a symbol\n\nUse swiftfindrefs to restrict scope, then add imports only where needed.\n\nswiftfindrefs -p <Project> -n <Symbol> -t <Type> | while read file; do\n  if ! grep -q \"^import <ModuleName>$\" \"$file\"; then\n    echo \"$file\"\n  fi\ndone\n\n\nThen for each printed file:\n\nInsert import <ModuleName> in the imports block at the top.\nPreserve existing import ordering/grouping.\nNever add duplicate imports.\nDo not reformat unrelated code.\nWorkflow C: Audit usage before deleting or renaming a symbol\nRun swiftfindrefs for the symbol.\nIf output is empty, treat the symbol as unused (still validate via build/tests if needed).\nIf non-empty, review the listed files before changing public API.\nReferences\nCLI details: references/cli.md\nPlaybooks: references/workflows.md\nTroubleshooting: references/troubleshooting.md"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/michaelversus/swiftfindrefs",
    "publisherUrl": "https://clawhub.ai/michaelversus/swiftfindrefs",
    "owner": "michaelversus",
    "version": "1.0.5",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/swiftfindrefs",
    "downloadUrl": "https://openagent3.xyz/downloads/swiftfindrefs",
    "agentUrl": "https://openagent3.xyz/skills/swiftfindrefs/agent",
    "manifestUrl": "https://openagent3.xyz/skills/swiftfindrefs/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/swiftfindrefs/agent.md"
  }
}