coding-swift
Purpose
This skill equips the AI to assist with Swift 6 programming, focusing on modern features for iOS and macOS development, including concurrency, generics, and package management.
When to Use
Use this skill for tasks involving Swift 6 code, such as building async/await-based apps, implementing actors for thread safety, or managing Swift Package Manager (SPM) dependencies in iOS/macOS projects. Apply it when existing code needs updates for Sendable conformance or generics enhancements.
Key Capabilities
- Async/await: For non-blocking code execution, e.g., handling network requests.
- Actors: To manage shared state safely, ensuring Sendable compliance.
- Generics: Enable reusable code with type constraints, like defining a generic struct.
- Property wrappers: Simplify property management, e.g., for validation.
- Result builders: Construct complex types like views in SwiftUI.
- SPM: Handle dependencies via Package.swift files.
- Testing: Write unit tests using XCTest for async code.
Usage Patterns
To accomplish tasks, structure code with Swift 6 idioms: Use async functions for I/O operations, wrap shared state in actors, and leverage generics for collections. For SPM, edit Package.swift and run builds. Always check for Sendable conformance to avoid data races. When integrating with Xcode, compile projects using the Swift 6 toolchain by setting the compiler version in project settings.
More from alphaonedev/openclaw-graph
playwright-scraper
Playwright web scraping: dynamic content, auth flows, pagination, data extraction, screenshots
1.4Kgcp-iam
Manages identity and access control for Google Cloud resources using IAM policies and roles.
370humanize-ai-text
AI text humanization: reduce AI-detection patterns, natural phrasing, tone adjustment
262macos-automation
AppleScript, JXA, Shortcuts, Automator, osascript, System Events, accessibility API
173tavily-web-search
Tavily: web search optimized for AI agents, answer synthesis, domain filtering, depth control
155clawflows
OpenClaw workflow automation: multi-step task chains, conditional logic, triggers, schedule
102