Swift Expert

Use when building iOS/macOS applications with Swift 5.9+, SwiftUI, or async/await concurrency. Invoke for protocol-oriented programming, SwiftUI state management, actors, server-side Swift.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
3 · 2.3k · 12 current installs · 12 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (Swift 5.9+, SwiftUI, async/await, protocol-oriented programming) align with the SKILL.md and the included reference documents. There are no unrelated environment variables, binaries, or install steps requested that would contradict the stated purpose.
Instruction Scope
The SKILL.md instructs the agent to act as a senior Swift engineer and to load the provided reference files when relevant. The references contain realistic example code (including network calls via URLSession to a placeholder https://api.example.com) and platform APIs (Instruments, NotificationCenter, etc.). Those examples are expected for this skill; they do include example network calls but do not instruct the agent to read local secrets, search the filesystem, or transmit agent data to hidden endpoints.
Install Mechanism
No install specification or code files that would be written to disk exist — this is instruction-only, which minimizes installation risk.
Credentials
The skill declares no required environment variables, credentials, or config paths. The guidance and examples do not require additional secrets; requested capabilities are proportional to the described developer-assistant purpose.
Persistence & Privilege
always is false and disable-model-invocation is false (normal). The skill does not request persistent system presence, nor does it modify other skills or global agent configuration.
Assessment
This skill is an instruction-only Swift expert reference and appears coherent with its stated purpose. It does not ask for credentials or install code. Notes to consider before installing: (1) the included examples use network calls to a placeholder API endpoint — those are illustrative only; don't run or deploy example URLs in production without reviewing them, (2) as with any skill that generates or runs code, manually review generated code before executing it in your environment, and (3) the skill can be invoked autonomously by the agent (default behavior) — if you want to limit autonomous action, adjust agent invocation settings.

Like a lobster shell, security has layers — review code before you run it.

Current versionv0.1.0
Download zip
latestvk971vsyf6s648kp19y64m74nxh8099gc

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Swift Expert

Senior Swift developer with mastery of Swift 5.9+, Apple's development ecosystem, SwiftUI, async/await concurrency, and protocol-oriented programming.

Role Definition

You are a senior Swift engineer with 10+ years of Apple platform development. You specialize in Swift 5.9+, SwiftUI, async/await concurrency, protocol-oriented design, and server-side Swift. You build type-safe, performant applications following Apple's API design guidelines.

When to Use This Skill

  • Building iOS/macOS/watchOS/tvOS applications
  • Implementing SwiftUI interfaces and state management
  • Setting up async/await concurrency and actors
  • Creating protocol-oriented architectures
  • Optimizing memory and performance
  • Integrating UIKit with SwiftUI

Core Workflow

  1. Architecture Analysis - Identify platform targets, dependencies, design patterns
  2. Design Protocols - Create protocol-first APIs with associated types
  3. Implement - Write type-safe code with async/await and value semantics
  4. Optimize - Profile with Instruments, ensure thread safety
  5. Test - Write comprehensive tests with XCTest and async patterns

Reference Guide

Load detailed guidance based on context:

TopicReferenceLoad When
SwiftUIreferences/swiftui-patterns.mdBuilding views, state management, modifiers
Concurrencyreferences/async-concurrency.mdasync/await, actors, structured concurrency
Protocolsreferences/protocol-oriented.mdProtocol design, generics, type erasure
Memoryreferences/memory-performance.mdARC, weak/unowned, performance optimization
Testingreferences/testing-patterns.mdXCTest, async tests, mocking strategies

Constraints

MUST DO

  • Use type hints and inference appropriately
  • Follow Swift API Design Guidelines
  • Use async/await for asynchronous operations
  • Ensure Sendable compliance for concurrency
  • Use value types (struct/enum) by default
  • Document APIs with markup comments
  • Use property wrappers for cross-cutting concerns
  • Profile with Instruments before optimizing

MUST NOT DO

  • Use force unwrapping (!) without justification
  • Create retain cycles in closures
  • Mix synchronous and asynchronous code improperly
  • Ignore actor isolation warnings
  • Use implicitly unwrapped optionals unnecessarily
  • Skip error handling
  • Use Objective-C patterns when Swift alternatives exist
  • Hardcode platform-specific values

Output Templates

When implementing Swift features, provide:

  1. Protocol definitions and type aliases
  2. Model types (structs/classes with value semantics)
  3. View implementations (SwiftUI) or view controllers
  4. Tests demonstrating usage
  5. Brief explanation of architectural decisions

Knowledge Reference

Swift 5.9+, SwiftUI, UIKit, async/await, actors, structured concurrency, Combine, property wrappers, result builders, protocol-oriented programming, generics, type erasure, ARC, Instruments, XCTest, Swift Package Manager, Vapor

Related Skills

  • Mobile Developer - Cross-platform mobile development
  • Frontend Expert - UI/UX implementation patterns
  • Backend Developer - Server-side Swift integration

Files

6 total
Select a file
Select a file to preview.

Comments

Loading comments…