Pular para o conteúdo
emilkowalski/skill

Swift moderno

Como escrever Swift bem hoje, incluindo o que o modelo ainda não sabe.

write-swift
Peso
pesado
389 linhas · 200–600 linhas
Gatilho
o agente chama
O agente dispara sozinho quando a descrição bate com a tarefa.
Encaixe
livre
Nenhum par documentado.

O que ela faz

Cobre modelagem com value types, segurança contra data race no Swift 6, concorrência aproachável, protocolos e generics, performance e ARC, Swift Testing e macros. Existe porque o Swift mudou rápido demais para o corte de treino dos modelos.

Quando não usar

Não use para Objective-C nem para SwiftUI puro de layout.

Ficha técnica

Descrição original
How to write modern Swift well — modeling with value types, Swift 6 data-race safety and approachable concurrency (@concurrent, main-actor-by-default, actors, task groups), protocols and generics (some vs any), API design, performance and ARC, Swift Testing, macros, and the modern language features agents don't know about yet. Use when writing, reviewing, or migrating Swift, or when a concurrency error, a hang, a data race, a retain cycle, or a performance problem needs fixing.
Caminho no repo
skills/write-swift/SKILL.md
SKILL.md
389 linhas
Seções
1. Model data with value types · 2. Errors and optionals — make the failure paths visible · 3. Concurrency: stay single-threaded until profiling says otherwise · 4. Sendable and sharing data · 5. Structured concurrency · 6. Concurrency in SwiftUI · 7. Protocols and generics · 8. API design — clarity at the point of use · 9. Performance — measure, then choose · 10. ARC and object lifetime · 11. Testing — Swift Testing by default · 12. Macros · 13. Logging and debugging · 14. Unsafe code and interop

Instalar — vem com o pacote inteiro (12 skills)

CLI skills

No terminal, de qualquer diretório.

  1. npx skills@latest add emilkowalski/skill

Aceita `--skill <nome>` para instalar só parte do pacote.

O que essa instalação faz na sua máquinaFechar

Como o método funciona

O gerenciador da Vercel Labs. Usa o GitHub como registro, copia para ~/.agents/skills e cria symlink para cada agente instalado na máquina.

Precisa ter

  • Node 18+

Onde cai no disco

~/.agents/skills/ + symlink em ~/.claude/skills/

Sair

npx skills remove emilkowalski/skill

Do mesmo pacote