Swift Runtime Performance

Use this skill when reviewing Swift code for runtime-level performance costs, including heap allocation, ARC traffic, stack vs heap storage, closure capture contexts, method dispatch, protocol witness dispatch, existentials vs generics, opaque types, copy-on-write, SIL optimizer output, unsafe memory boundaries, or module-boundary optimizer visibility. Do not use it for Swift Concurrency scheduling, SwiftUI rendering, app launch, or profiling workflows unless the question is specifically about Swift runtime costs.

121 stars 11 forksMobile Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add Livsy90/iOS-Performance-Agent-Skills --skill swift-runtime-performance
Manual install
git clone --depth 1 https://github.com/Livsy90/iOS-Performance-Agent-Skills.git /tmp/iOS-Performance-Agent-Skills
mkdir -p ~/.claude/skills
cp -r /tmp/iOS-Performance-Agent-Skills/swift-runtime-performance ~/.claude/skills/swift-runtime-performance

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Swift Runtime Performance

## Purpose

Use this skill to review Swift code for runtime-level performance costs without turning every abstraction into a problem. Focus on concrete costs such as allocation, ARC traffic, dispatch, specialization, copying, optimizer visibility, and unsafe memory boundaries.

This skill should help the agent distinguish real hot-path runtime costs from theoretical micro-optimizations.

## When to use this skill

Use this skill when the task involves Swift runtime behavior such as:

- heap allocation, stack vs heap storage, object layout, boxed values, or closure contexts;
- ARC retain/release traffic, ownership, lifetime, weak/unowned references, or closure captures;
- direct dispatch, class dispatch, Objective-C dispatch, witness dispatch, or dynamic dispatch in hot paths;
- `any Protocol`, `some Protocol`, generics, type erasure, specialization, or unspecialized hot code;
- copy-on-write collections, large values, custom COW storage, or repeated copies;
- optimized SIL inspection, compiler optimization, inlining, devirtualization, or specialization evidence;
- unsafe Swift, pointer lifetime, memory binding, aliasing, buffer mutation, or safe wrappers around unsafe regions;
- module boundaries that affect optimizer visibility, `@inlinable`, `@usableFromInline`, `@frozen`, or public API resilience trade-offs.

## When not to use this skill

Do not use this skill for:
Read the full skill on GitHub

Details

Skill name
swift-runtime-performance
Path
swift-runtime-performance/SKILL.md
License
MIT
Repo updated
12 July 2026

FAQ

What does the Swift Runtime Performance skill do?

Use this skill when reviewing Swift code for runtime-level performance costs, including heap allocation, ARC traffic, stack vs heap storage, closure capture contexts, method dispatch, protocol witness dispatch, existentials vs generics, opaque types, copy-on-write, SIL optimizer output, unsafe memory boundaries, or module-boundary optimizer visibility. Do not use it for Swift Concurrency scheduling, SwiftUI rendering, app launch, or profiling workflows unless the question is specifically about Swift runtime costs.

How do I install the Swift Runtime Performance skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add Livsy90/iOS-Performance-Agent-Skills --skill swift-runtime-performance. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Swift Runtime Performance popular?

It lives in Livsy90/iOS-Performance-Agent-Skills, which has 121 GitHub stars and 11 forks.

Related skills

IOS Launch Performance

121

Livsy90/iOS-Performance-Agent-Skills

Use this skill when diagnosing iOS app launch performance, startup regressions, first-frame readiness, or early responsiveness. Covers pre-main/dyld work, AppDelegate/SceneDelegate, SwiftUI App startup, launch orchestration, SDK initialization, and launch measurement. Do not use for general performance unless the code runs on the launch path.

Mobile Development11

IOS Perceived Performance

121

Livsy90/iOS-Performance-Agent-Skills

Use this skill for product-level iOS responsiveness and loading/feedback flows, including perceived latency, time to first feedback, progressive rendering, loading states, skeletons, placeholders, optimistic updates, rollback behavior, high-stakes actions, UI continuity, and responsiveness validation. Do not use it for low-level CPU, memory, rendering, Swift Concurrency, or launch-performance diagnostics unless the task is about user-perceived speed.

Mobile Development11

IOS Performance Profiling

121

Livsy90/iOS-Performance-Agent-Skills

Use this skill when choosing, running, or interpreting iOS performance profiling workflows, including Instruments traces, signposts, XCTest metrics, MetricKit, Xcode Organizer, hangs, hitches, CPU, allocations, memory graphs, disk I/O, networking, power, or production performance signals. Do not use it as the deep domain skill for launch, SwiftUI, concurrency, perceived performance, or runtime issues unless the task is specifically about measurement, tool selection, trace interpretation, or verification.

Mobile Development11

Swiftui Performance

121

Livsy90/iOS-Performance-Agent-Skills

Use this skill when reviewing or fixing SwiftUI performance issues, including unnecessary invalidation, unstable identity, broad state dependencies, expensive body work, heavy rows, scrolling hitches, layout/drawing cost, or async lifecycle work. Do not use it for general SwiftUI syntax, styling, UIKit-only performance, or generic profiling unless SwiftUI update behavior is central.

Mobile Development11

Swift Concurrency Performance

121

Livsy90/iOS-Performance-Agent-Skills

Use this skill when reviewing Swift Concurrency performance and responsiveness, including task explosions, actor hopping, MainActor bottlenecks, cancellation, AsyncSequence cleanup, continuations, reentrancy, executor behavior, blocking async work, or async work that affects UI latency. Do not use it for general async/await syntax questions unless performance, responsiveness, cancellation, or lifetime is part of the task.

Mobile Development11

Adversarial IOS Design

228

pproenca/dot-skills

Use this skill to gate iOS SwiftUI design and UX with a pass/fail adversarial review — a single blind reviewer subagent judges screens, diffs, or features against 56 decidable HIG-derived rules, working backwards from mandatory rendered evidence, simulator screenshots (light, dark, accessibility text size) and interaction recordings tiled into filmstrips. Covers navigation/IA (tab bars, five tabs max, system Back), modality and flow grammar (sheets, alerts, unsaved-content protection), layout (44pt targets, safe areas, Dynamic Type), color and contrast, typography floors, Liquid Glass, feedbac

Mobile Development19

Browse the most popular Claude skills, all mobile development skills, or write your own with the skills generator.