convez.ai
SkillProdutividadeIntermediário
traddiff-create

Swift 6.2 Approachable Concurrency

traddiff-create/claude-skill-swift-concurrency

Ensina Claude o modelo seguro de concorrência do Swift 6.2

Ver no GitHub
InicialPluginScore · de 0 a 100

Skill para Claude Code que ensina o modelo de concorrência acessível do Swift 6.2, focando em isolamento padrão do MainActor, @concurrent, conformances isoladas e caminho de migração limpo. Guia de conhecimento puro em contexto de prompt, sem código executável.

Instalação

$npx convez-ai traddiff-create/claude-skill-swift-concurrency

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
0
Forks
0
Acompanhando
0
Saúde
42%
Último commit
há 5 meses
Versão
—
Issues abertas
0
Contribuidores
1

Casos de uso

  • Migração de projetos Swift 5.x/6.0/6.1 para Swift 6.2
  • Resolução de erros de data-race-safety no Xcode 26
  • Implementação correta de isolamento @MainActor e @concurrent
  • Refatoração de código legado com DispatchQueue para async/await

Veredito

Skill técnico bem-fundamentado em propostas Swift Evolution oficiais. Reduz drasticamente o tempo de debugging em migrações de concorrência, mas exige familiaridade prévio com Swift e async/await — não é para iniciantes absolutos.

README

A tradução para o português deste README ainda está na fila.

Swift 6.2 Approachable Concurrency — Claude Code Skill

A focused Claude Code Agent Skill that teaches Claude the Swift 6.2 "Approachable Concurrency" model: single-threaded by default, explicit background offloading with @concurrent, isolated protocol conformances for @MainActor types, and a clean migration path from Swift 5.x / 6.0 / 6.1.

It's a knowledge guide — pure prompt context. No scripts, no network calls, no system changes. When you're migrating a project or fighting data-race-safety errors under Xcode 26, this skill gives Claude the right mental model instead of legacy DispatchQueue reflexes.

What it covers

  • Why async functions no longer implicitly offload to background threads (and the data races that fixed)
  • @MainActor default isolation and default-inference mode for app/executable targets
  • Isolated conformances — extension T: @MainActor SomeProtocol
  • Protecting global/static state
  • @concurrent for deliberate parallelism (with the build-settings caveat that makes it safe)
  • Migration steps, best practices, and anti-patterns

Install

Drop the skill directory into your skills folder:

# user-level (all projects)
cp -R swift-concurrency-6-2 ~/.claude/skills/

# or project-level
cp -R swift-concurrency-6-2 your-project/.claude/skills/

Claude Code auto-discovers it. It activates on Swift 6.2 migration work, data-race-safety compiler errors, and @MainActor architecture questions.

Evidence / validate the claims

The patterns track the official Swift Evolution proposals and Apple guidance:

  • SE-0466 — Control of actor isolation / MainActor default isolation
  • SE-0461 — Run nonisolated async functions on the caller's actor (NonisolatedNonsendingByDefault)
  • Swift migration guide: https://www.swift.org/migration/
  • Verify by enabling Approachable Concurrency (Build Settings → Swift Compiler → Concurrency) in an Xcode 26 project and observing the before/after compiler diagnostics in the examples.

Security & permissions

This resource is a single Markdown file (SKILL.md) loaded as prompt context. It contains no executable code, no hooks, no network calls, no telemetry, and requests no special permissions. It cannot modify your system. Read it before installing — it's short.

License

MIT.

Maintenance

Provided as-is. Not actively maintained — it's a snapshot of the Swift 6.2 concurrency model that's useful as a drop-in reference. Fork and adapt freely.

Author

Rory Stone — Traditionally Different Technology LLC

Ver o original no GitHub

Bom para

Relacionados