{
  "schemaVersion": "1.0",
  "item": {
    "slug": "swift",
    "name": "Swift",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/ivangdavila/swift",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/swift",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/swift",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=swift",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "advanced.md",
      "codable.md",
      "concurrency.md",
      "memory.md",
      "optionals.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-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-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/swift"
    },
    "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/swift",
    "agentPageUrl": "https://openagent3.xyz/skills/swift/agent",
    "manifestUrl": "https://openagent3.xyz/skills/swift/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/swift/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": "Quick Reference",
        "body": "TopicFileOptionals, nil safety, force unwrapoptionals.mdRetain cycles, weak refs, closuresmemory.mdasync/await, actors, Sendable, value typesconcurrency.mdJSON encoding/decoding trapscodable.mdProtocols, collections, strings, errors, buildtypes.mdSwiftUI state (@State, @Binding, Combine)swiftui.mdProperty wrappers, actors, result builders, macrosadvanced.mdXCTest pitfalls, SPM gotchastesting.md"
      },
      {
        "title": "Memory & Safety",
        "body": "Force unwrap ! crashes on nil — use guard let or if let instead\nClosures capturing self strongly create retain cycles — use [weak self] in escaping closures\nDelegates must be weak — strong delegate = object never deallocates\ntry! crashes on any error — never use in production paths\nremoveFirst() crashes on empty — use popFirst() for safety"
      },
      {
        "title": "Concurrency",
        "body": "async let starts immediately — not when you await\nActor reentrancy at every await — state may change between suspension points\n@MainActor doesn't guarantee immediate main thread — it's queued\nSendable conformance violations crash at runtime — compiler warnings are errors"
      },
      {
        "title": "Types & Collections",
        "body": "Protocol extensions don't override — static dispatch ignores subclass implementation\nMutating struct in collection requires reassignment — array[0].mutate() doesn't work\nString.Index from one string invalid on another — even if contents match"
      },
      {
        "title": "SwiftUI",
        "body": "@StateObject owns, @ObservedObject borrows — recreating view loses ObservedObject state\n@EnvironmentObject crashes if not injected — no compile-time check\nView identity change resets all @State — changing ID loses state"
      },
      {
        "title": "Build",
        "body": "print() builds strings even in release — remove or use os_log\nGeneric code bloat — specialized for each type, increases binary size"
      }
    ],
    "body": "Quick Reference\nTopic\tFile\nOptionals, nil safety, force unwrap\toptionals.md\nRetain cycles, weak refs, closures\tmemory.md\nasync/await, actors, Sendable, value types\tconcurrency.md\nJSON encoding/decoding traps\tcodable.md\nProtocols, collections, strings, errors, build\ttypes.md\nSwiftUI state (@State, @Binding, Combine)\tswiftui.md\nProperty wrappers, actors, result builders, macros\tadvanced.md\nXCTest pitfalls, SPM gotchas\ttesting.md\nCritical Rules\nMemory & Safety\nForce unwrap ! crashes on nil — use guard let or if let instead\nClosures capturing self strongly create retain cycles — use [weak self] in escaping closures\nDelegates must be weak — strong delegate = object never deallocates\ntry! crashes on any error — never use in production paths\nremoveFirst() crashes on empty — use popFirst() for safety\nConcurrency\nasync let starts immediately — not when you await\nActor reentrancy at every await — state may change between suspension points\n@MainActor doesn't guarantee immediate main thread — it's queued\nSendable conformance violations crash at runtime — compiler warnings are errors\nTypes & Collections\nProtocol extensions don't override — static dispatch ignores subclass implementation\nMutating struct in collection requires reassignment — array[0].mutate() doesn't work\nString.Index from one string invalid on another — even if contents match\nSwiftUI\n@StateObject owns, @ObservedObject borrows — recreating view loses ObservedObject state\n@EnvironmentObject crashes if not injected — no compile-time check\nView identity change resets all @State — changing ID loses state\nBuild\nprint() builds strings even in release — remove or use os_log\nGeneric code bloat — specialized for each type, increases binary size"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/swift",
    "publisherUrl": "https://clawhub.ai/ivangdavila/swift",
    "owner": "ivangdavila",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/swift",
    "downloadUrl": "https://openagent3.xyz/downloads/swift",
    "agentUrl": "https://openagent3.xyz/skills/swift/agent",
    "manifestUrl": "https://openagent3.xyz/skills/swift/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/swift/agent.md"
  }
}