Skip to content
Back to skills

Swift

ASecurity

Swift language patterns and best practices including concurrency, performance, and modern idioms. Use for Swift language-level code review or architecture guidance.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
code-qualityswiftapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add flight505/skill-forge --skill swift --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Swift?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Swift
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/flight505-swift/badge)](https://www.skillsdirectory.com/skills/flight505-swift)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: swift-development
description: Swift language patterns and best practices including concurrency, performance, and modern idioms. Use for Swift language-level code review or architecture guidance.
allowed-tools: [Read, Glob, Grep]
---

# Swift Development

Swift language-level guidance that applies across all Apple platforms.

## When This Skill Activates

Use this skill when the user:

- Asks about Swift concurrency (async/await, actors, Sendable, TaskGroup)
- Needs help with Swift 6 strict concurrency migration
- Has data race or actor isolation errors
- Asks about **InlineArray**, **Span**, or low-level memory performance
- Wants to eliminate heap allocations or replace unsafe pointers
- Asks about modern Swift patterns independent of any specific platform

## Available Modules

### concurrency-patterns/

Swift concurrency architecture and patterns.

- Swift 6.2 approachable concurrency features
- Structured concurrency (async let, TaskGroup, .task modifier)
- Actors, isolation, reentrancy, @MainActor
- Continuations for bridging legacy APIs
- Swift 6 strict concurrency migration guide

### memory/

Swift 6.2 InlineArray and Span for low-level memory performance.

- InlineArray: fixed-size, stack-allocated collections with zero heap overhead
- Span family: safe, non-escapable access to contiguous memory
- Lifetime dependencies and non-escapable type constraints
- Performance guidance: when to use InlineArray/Span vs Array/UnsafePointer

## How to Use

1. Identify user's need from their question
2. Read relevant module files from subdirectories
3. Apply the guidance to their specific context
4. Cross-reference with platform-specific skills (ios/, macos/) as needed

Files in this skill

  • SKILL.md1.7 KB
  • concurrency-patterns/SKILL.md5.3 KB
  • concurrency-patterns/actors-and-isolation.md9 KB
  • concurrency-patterns/continuations-bridging.md10.3 KB
  • concurrency-patterns/migration-guide.md7.6 KB
  • concurrency-patterns/structured-concurrency.md10.8 KB
  • concurrency-patterns/swift62-concurrency.md7.8 KB
  • concurrency/SKILL.md20.7 KB
  • memory/SKILL.md13 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.