Peter Steinberger

Swift Concurrency Expert

開発v1.0.0
作者:Peter Steinberger更新日 2026-05-11swift-concurrency-expert@clawhub_steipete/swift-concurrency-expert
コードレビューバグ修正

AlphaMoatによると、2026-09時点でSwift Concurrency Expertのダウンロード数は4,056、スター数は5で、AIスキル全体5,078件中2,510位、開発では577件中327位です。

インストール数
340
ダウンロード数
4056
スター数
5
総合順位
#2,510
全体の上位 50% · 開発の上位 57%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗13340155-
SkillHub ↗34040565—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

コンパイラー診断、actor の文脈、有効な隔離モードを確認し、主 actor の隔離、状態保護、バックグラウンド処理、正しい Sendable 適合を検討します。挙動の変更を抑え、未検証の安全宣言を避けます。適用内容を確認し、配備前にビルドとテストを行います。

資料公開日 2026-10-27

できること

  • Swift の並行処理エラーを調べる

使う場面

  • actor 隔離や Sendable の診断を直したいとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

挙動を保つ最小の並行処理修正案を示して。

月次の推移

ダウンロード数4056
2845349641462026-03 · ダウンロード数 29352026-05 · ダウンロード数 33462026-06 · ダウンロード数 34952026-07 · ダウンロード数 37382026-08 · ダウンロード数 38762026-09 · ダウンロード数 405626-0326-09
スター数5
4562026-03 · スター数 52026-05 · スター数 52026-06 · スター数 52026-07 · スター数 52026-08 · スター数 52026-09 · スター数 526-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-094056—5
2026-083876+3.7%5
2026-073738+7.0%5
2026-063495+4.5%5
2026-053346—5
2026-032935—5

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

1.8 KB・ClawHub v1.0.0
---
name: swift-concurrency-expert
description: Swift Concurrency review and remediation for Swift 6.2+. Use when asked to review Swift Concurrency usage, improve concurrency compliance, or fix Swift concurrency compiler errors in a feature or file.
---

# Swift Concurrency Expert

_Attribution: copied from @Dimillian’s `Dimillian/Skills` (2025-12-31)._

## Overview
すべて表示(全 38 行)

Review and fix Swift Concurrency issues in Swift 6.2+ codebases by applying actor isolation, Sendable safety, and modern concurrency patterns with minimal behavior changes.

## Workflow

### 1. Triage the issue

- Capture the exact compiler diagnostics and the offending symbol(s).
- Identify the current actor context (`@MainActor`, `actor`, `nonisolated`) and whether a default actor isolation mode is enabled.
- Confirm whether the code is UI-bound or intended to run off the main actor.

### 2. Apply the smallest safe fix

Prefer edits that preserve existing behavior while satisfying data-race safety.

Common fixes:
- **UI-bound types**: annotate the type or relevant members with `@MainActor`.
- **Protocol conformance on main actor types**: make the conformance isolated (e.g., `extension Foo: @MainActor SomeProtocol`).
- **Global/static state**: protect with `@MainActor` or move into an actor.
- **Background work**: move expensive work into a `@concurrent` async function on a `nonisolated` type or use an `actor` to guard mutable state.
- **Sendable errors**: prefer immutable/value types; add `Sendable` conformance only when correct; avoid `@unchecked Sendable` unless you can prove thread safety.


## Reference material

- See `references/swift-6-2-concurrency.md` for Swift 6.2 changes, patterns, and examples.
- See `references/swiftui-concurrency-tour-wwdc.md` for SwiftUI-specific concurrency guidance.

開発の人気スキル

Peter Steinbergerのその他のスキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。