← All skills
Tencent SkillHub Β· AI

Swift

Write safe Swift code avoiding memory leaks, optional traps, and concurrency bugs.

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

Write safe Swift code avoiding memory leaks, optional traps, and concurrency bugs.

⬇ 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, advanced.md, codable.md, concurrency.md, memory.md, optionals.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.1

Documentation

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

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

Category context

Agent frameworks, memory systems, reasoning layers, and model-native orchestration.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
6 Docs
  • SKILL.md Primary doc
  • advanced.md Docs
  • codable.md Docs
  • concurrency.md Docs
  • memory.md Docs
  • optionals.md Docs