Token导航 LogoToken导航TokenDH.com
AI 工具需要联网github未标认证来源可访问clear审计通过

axiom-ios-concurrencyaxiom iOS concurrency 命令行

Agent Skill

axiom-ios-concurrency 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,208

周安装

217

GitHub Stars

873

下载量

1,736
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:axiom-ios-concurrency(axiom iOS concurrency 命令行)
来源仓库:https://github.com/charleswiltgen/axiom
仓库路径:skills/axiom-ios-concurrency
安装命令:
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-ios-concurrency
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-ios-concurrency

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • axiom-ios-concurrency 属于AI 工具类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

iOS Concurrency Router

You MUST use this skill for ANY concurrency, async/await, threading, or Swift 6 concurrency work.

When to Use

Use this router when:

  • Writing async/await code
  • Seeing concurrency errors (data races, actor isolation)
  • Working with @MainActor
  • Dealing with Sendable conformance
  • Optimizing Swift performance
  • Migrating to Swift 6 concurrency
  • App freezes during loading (likely main thread blocking)

Conflict Resolution

ios-concurrency vs ios-performance: When app freezes or feels slow:

  1. Try ios-concurrency FIRST — Main thread blocking is the #1 cause of UI freezes. Check for synchronous work on @MainActor before profiling.
  2. Only use ios-performance if concurrency fixes don't help — Profile after ruling out obvious blocking.

ios-concurrency vs ios-build: When seeing Swift 6 concurrency errors:

  • Use ios-concurrency, NOT ios-build — Concurrency errors are CODE issues, not environment issues
  • ios-build is for "No such module", simulator issues, build failures unrelated to Swift language errors

ios-concurrency vs ios-data: When concurrency errors involve Core Data or SwiftData:

  • Core Data threading (NSManagedObjectContext thread confinement, performBackgroundTask) → use ios-data first — Core Data has its own threading model distinct from Swift concurrency
  • SwiftData + @MainActor ModelContext → use ios-concurrency — This is Swift concurrency isolation
  • General "background saves losing data" → use ios-data first — Framework-specific threading rules take priority

Rationale: A 2-second freeze during data loading is almost always await on main thread or missing background dispatch. Domain knowledge solves this faster than Time Profiler. Core Data threading violations need Core Data-specific fixes, not generic concurrency patterns.

Routing Logic

Swift Concurrency Issues

Swift 6 concurrency patterns/skill axiom-swift-concurrency

  • async/await patterns
  • @MainActor usage
  • Actor isolation
  • Sendable conformance
  • Data race prevention
  • Swift 6 migration

Swift concurrency API reference/skill axiom-swift-concurrency-ref

  • Actor definition, reentrancy, global actors
  • Sendable patterns, @unchecked Sendable
  • Task/TaskGroup/cancellation API
  • AsyncStream, continuations
  • DispatchQueue → actor migration

Swift performance/skill axiom-swift-performance

  • Value vs reference types
  • Copy-on-write optimization
  • ARC overhead
  • Generic specialization
  • Collection performance

Synchronous actor access/skill axiom-assume-isolated

  • MainActor.assumeIsolated
  • @preconcurrency protocol conformances
  • Legacy delegate callbacks
  • Testing MainActor code synchronously

Thread-safe primitives/skill axiom-synchronization

  • Mutex (iOS 18+)
  • OSAllocatedUnfairLock (iOS 16+)
  • Atomic types
  • Lock vs actor decision

Parameter ownership/skill axiom-ownership-conventions

  • borrowing/consuming modifiers
  • Noncopyable types (~Copyable)
  • ARC traffic reduction
  • consume operator

Concurrency profiling/skill axiom-concurrency-profiling

  • Swift Concurrency Instruments template
  • Actor contention diagnosis
  • Thread pool exhaustion
  • Task visualization

Combine reactive patterns/skill axiom-combine-patterns

  • Publisher/Subscriber lifecycle, AnyCancellable
  • Combine vs async/await decision
  • @Published + ObservableObject
  • Operator patterns, bridging

Automated Scanning

Concurrency audit → Launch concurrency-auditor agent or /axiom:audit concurrency (5-phase semantic audit: maps isolation architecture, detects 8 anti-patterns, reasons about missing concurrency patterns, correlates compound risks, scores Swift 6.3 readiness)

Decision Tree

  1. Data races / actor isolation / @MainActor / Sendable? → swift-concurrency 1a. Need specific API syntax (actor definition, TaskGroup, AsyncStream, continuation)? → swift-concurrency-ref
  2. Writing async/await code? → swift-concurrency
  3. Swift 6 migration? → swift-concurrency
  4. assumeIsolated / @preconcurrency? → assume-isolated
  5. Mutex / lock / synchronization? → synchronization
  6. borrowing / consuming / ~Copyable? → ownership-conventions
  7. Profile async performance / actor contention? → concurrency-profiling
  8. Value type / ARC / generic optimization? → swift-performance
  9. Want automated concurrency scan? → concurrency-auditor (Agent)
  10. Combine / @Published / AnyCancellable / reactive streams? → combine-patterns

Anti-Rationalization

ThoughtReality
"Just add @MainActor and it'll work"@MainActor has isolation inheritance rules. swift-concurrency covers all patterns.
"I'll use nonisolated(unsafe) to silence the warning"Silencing warnings hides data races. swift-concurrency shows the safe pattern.
"It's just one async call"Even single async calls have cancellation and isolation implications. swift-concurrency covers them.
"I know how actors work"Actor reentrancy and isolation rules changed in Swift 6.2. swift-concurrency is current.
"I'll fix the Sendable warnings later"Sendable violations cause runtime crashes. swift-concurrency fixes them correctly now.
"Combine is dead, just use async/await"Combine has no deprecation notice. Rewriting working pipelines wastes time and introduces bugs. combine-patterns covers incremental migration.

Critical Patterns

Swift 6 Concurrency (swift-concurrency):

  • Progressive journey: single-threaded → async → concurrent → actors
  • @concurrent attribute for forced background execution
  • Isolated conformances
  • Main actor mode for approachable concurrency
  • 11 copy-paste patterns

Swift Performance (swift-performance):

  • ~Copyable for non-copyable types
  • Copy-on-write (COW) patterns
  • Value vs reference type decisions
  • ARC overhead reduction
  • Generic specialization

Example Invocations

User: "I'm getting 'data race' errors in Swift 6" → Invoke: /skill axiom-swift-concurrency

User: "How do I use @MainActor correctly?" → Invoke: /skill axiom-swift-concurrency

User: "My app is slow due to unnecessary copying" → Invoke: /skill axiom-swift-performance

User: "Should I use async/await for this network call?" → Invoke: /skill axiom-swift-concurrency

User: "How do I use assumeIsolated?" → Invoke: /skill axiom-assume-isolated

User: "My delegate callback runs on main thread, how do I access MainActor state?" → Invoke: /skill axiom-assume-isolated

User: "Should I use Mutex or actor?" → Invoke: /skill axiom-synchronization

User: "What's the difference between os_unfair_lock and OSAllocatedUnfairLock?" → Invoke: /skill axiom-synchronization

User: "What does borrowing do in Swift?" → Invoke: /skill axiom-ownership-conventions

User: "How do I use ~Copyable types?" → Invoke: /skill axiom-ownership-conventions

User: "My async code is slow, how do I profile it?" → Invoke: /skill axiom-concurrency-profiling

User: "I think I have actor contention, how do I diagnose it?" → Invoke: /skill axiom-concurrency-profiling

User: "My Core Data saves lose data from background tasks" → Route to: ios-data router (Core Data threading is framework-specific)

User: "How do I create a TaskGroup?" → Invoke: /skill axiom-swift-concurrency-ref

User: "What's the AsyncStream API?" → Invoke: /skill axiom-swift-concurrency-ref

User: "How do I create a custom global actor?" → Invoke: /skill axiom-swift-concurrency-ref

User: "How do I convert a completion handler to async?" → Invoke: /skill axiom-swift-concurrency-ref

User: "What are the actor reentrancy rules?" → Invoke: /skill axiom-swift-concurrency-ref

User: "My Combine pipeline silently stopped producing values" → Invoke: /skill axiom-combine-patterns

User: "Should I use Combine or async/await for this data flow?" → Invoke: /skill axiom-combine-patterns

User: "How do I bridge a Combine publisher into async/await code?" → Invoke: /skill axiom-combine-patterns

User: "AnyCancellable is leaking memory" → Invoke: /skill axiom-combine-patterns

User: "Check my code for Swift 6 concurrency issues" → Invoke: concurrency-auditor agent

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

31.33%
按下载量换算544

OpenCode

20.16%
按下载量换算350

Codex

18.86%
按下载量换算327

Antigravity

13.06%
按下载量换算227

Cursor

7.89%
按下载量换算137

Gemini CLI

3.76%
按下载量换算65

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills