# Send Swift to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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

```text
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.
```
## Machine-readable fields
```json
{
  "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": {
    "downloadUrl": "/downloads/swift",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=swift",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "advanced.md",
      "codable.md",
      "concurrency.md",
      "memory.md",
      "optionals.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "swift",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T00:02:57.183Z",
      "expiresAt": "2026-05-11T00:02:57.183Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=swift",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=swift",
        "contentDisposition": "attachment; filename=\"swift-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "swift"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### Quick Reference

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

### Memory & Safety

Force unwrap ! crashes on nil — use guard let or if let instead
Closures capturing self strongly create retain cycles — use [weak self] in escaping closures
Delegates must be weak — strong delegate = object never deallocates
try! crashes on any error — never use in production paths
removeFirst() crashes on empty — use popFirst() for safety

### Concurrency

async let starts immediately — not when you await
Actor reentrancy at every await — state may change between suspension points
@MainActor doesn't guarantee immediate main thread — it's queued
Sendable conformance violations crash at runtime — compiler warnings are errors

### Types & Collections

Protocol extensions don't override — static dispatch ignores subclass implementation
Mutating struct in collection requires reassignment — array[0].mutate() doesn't work
String.Index from one string invalid on another — even if contents match

### SwiftUI

@StateObject owns, @ObservedObject borrows — recreating view loses ObservedObject state
@EnvironmentObject crashes if not injected — no compile-time check
View identity change resets all @State — changing ID loses state

### Build

print() builds strings even in release — remove or use os_log
Generic code bloat — specialized for each type, increases binary size
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivangdavila
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T00:02:57.183Z
- Expires at: 2026-05-11T00:02:57.183Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/swift)
- [Send to Agent page](https://openagent3.xyz/skills/swift/agent)
- [JSON manifest](https://openagent3.xyz/skills/swift/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/swift/agent.md)
- [Download page](https://openagent3.xyz/downloads/swift)