agentsclimarketplace

Swift core

Skill fusengine/agents/plugins/swift-apple-expert/skills/swift-core

Redefining development through cognitive automation and collaborative agent systems.

Install
npx -y skills add fusengine/agents --skill swift-core

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 22 stars22 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Swift 6 fundamentals for all Apple platforms. Use when implementing concurrency, architecture, testing, i18n, or performance optimization across iOS, macOS, iPadOS, watchOS, visionOS.

SKILL.md

2.9 KB, 554 tokens by cl100k_base, as published. Nobody here has run it

Swift Core

Swift 6 fundamentals shared across all Apple platforms.

Agent Workflow (MANDATORY)

Before ANY implementation, use TeamCreate to spawn 3 agents:

  1. fuse-ai-pilot:explore-codebase - Analyze existing Swift patterns
  2. fuse-ai-pilot:research-expert - Verify latest Swift 6 docs via Context7/Exa
  3. mcp__apple-docs__search_apple_docs - Check Swift concurrency patterns

After implementation, run fuse-ai-pilot:sniper for validation.


Overview

When to Use

  • Implementing async/await, actors, Sendable
  • Designing app architecture (MVVM, Clean Architecture)
  • Writing async tests with XCTest
  • Localizing with String Catalogs
  • Profiling with Instruments

Why Swift Core

FeatureBenefit
ActorsThread-safe shared state without locks
@ObservableSimple reactive state (replaces ObservableObject)
String CatalogsAutomatic localization with Xcode 15+
InstrumentsBuilt-in performance profiling

Key Concepts

Concurrency (Swift 6)

Modern async/await with strict concurrency checking. Actors provide thread-safe state, Sendable marks safe types.

Architecture

MVVM with @Observable is the recommended pattern. Clean Architecture for complex apps with domain separation.

Testing

XCTest with native async/await support. No need for expectations with async tests.

Internationalization

String Catalogs are mandatory. All user-facing text must be localized.

Performance

Profile with Instruments. Use lazy loading, avoid heavy work in view body.


Reference Guide

NeedReference
Async/await, actors, Sendableconcurrency.md
MVVM, Clean Architecture, DIarchitecture.md
XCTest, async tests, mockingtesting.md
String Catalogs, localizationi18n.md
Instruments, optimizationperformance.md

Best Practices

  1. Actors for shared state - Prefer actors over classes with locks
  2. @Observable over ObservableObject - Simpler, better performance
  3. Structured concurrency - async/await, no completion handlers
  4. String Catalogs - ALL user-facing text must be localized
  5. Profile in Release - Always profile with -O optimization
  6. Value types - Prefer structs over classes

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.