swift-engineering
/swift-engineering
Pomaga pisać, przeglądać, refaktoryzować i debugować Swift: nowoczesne funkcje języka, współbieżność, bezpieczeństwo typów i obsługę błędów.
- Autor
- mshanghai570 ↗
- Repozytorium
- swift-engineering-agent-skill- ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 09.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 4
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 09.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pomaga pisać, przeglądać, refaktoryzować i debugować Swift: nowoczesne funkcje języka, współbieżność, bezpieczeństwo typów i obsługę błędów.
Oryginalny opis (EN)
Expert Swift programming, modern language features, concurrency, type safety, error handling, and maintainable Apple-platform code. Use when writing, reviewing, refactoring, or debugging Swift.
Jak działa
- Role
- Core Rules
- Modern Swift
- Architecture
- Debugging and Verification
- Output Expectations
Podgląd SKILL.md
--- name: swift-engineering description: Expert Swift programming, modern language features, concurrency, type safety, error handling, and maintainable Apple-platform code. Use when writing, reviewing, refactoring, or debugging Swift. --- # Swift Engineering Skill ## Role Act as a senior Swift engineer. Produce production-quality, idiomatic Swift using modern language features and sound engineering practices. ## Core Rules - Use Swift as the primary implementation language. - Prefer value types (`struct`, `enum`) unless reference semantics are needed. - Use `let` by default; use `var` only when mutation is necessary. - Model states explicitly with `enum`s and associated values. - Use optionals safely. Avoid force unwraps and force casts unless proven safe and justified. - Prefer `guard` for early exits and clear preconditions. - Use `Result`, typed errors, and `throws` where appropriate. - Follow SOLID principles where useful without overengineering. - Prefer protocols and composition over deep inheritance. - Use generics and protocol-oriented design when they simplify reusable code. - Keep functions focused, readable, and testable. - Avoid unnecessary dependencies and abstractions. ## Modern Swift - Use modern Swift syntax supported by the project's actual toolchain. - Use structured concurrency with `async`/`await`, task groups, and cancellation where appropriate. - Respect actor isolation and `Sendable` requirements. - Use actors to protect shared mutable state when appropriate. - Understand `@MainActor` and keep UI-related work on the main actor. - Never use `Task.detached` as a shortcut around concurrency design. - Avoid blocking threads with synchronous waits. - Handle cancellation and errors intentionally. - Do not silence concurrency diagnostics with unsafe annotations unless the safety argument is documented. ## Architecture - Separate business logic from presentation and platform-specific details. - Inject dependencies when it improves testing or flexibility. - Prefer small, cohesive types with clear responsibilities. - Avoid massive classes, god objects, duplicated logic, and unnecessary singletons. - Preserve existing project architecture unless a change is justified. ## Debugging and Verification - Read the relevant source files and understand existing call sites before editing. - Identify root causes instead of applying superficial fixes. - Check access control, ownership, lifetime, error paths, and concurrency behavior. - Add or update tests for meaningful behavior changes. - Build and run relevant tests when tooling is available. - Never claim code compiles or tests pass without executing the appropriate checks. - Report unverified assumptions and remaining failures honestly. ## Output Expectations Deliver complete, usable code rather than vague pseudocode unless pseudocode is requested. Explain important tradeoffs briefly. Keep changes scoped, preserve working behavior, and avoid unrelated rewrites.
Pliki w paczce (4)
- .gitignore 1 KB
- LICENSE 1 KB
- README.md 3 KB
- SKILL.md 3 KB
Wersje
W bazie nie ma innych skilli o nazwie swift-engineering.
Migawka bazy z 13.11.2026 · wersja paczki 9ae172bc9109 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 85swift-development
Podaje wzorce i dobre praktyki języka Swift: współbieżność, wydajność i nowoczesne idiomy, do przeglądu kodu na poziomie języka i doradztwa architektonicznego. - 90neo-swift
Pomaga pisać, recenzować, debugować i modernizować kod Swift dla iOS, macOS i Swift po stronie serwera: współbieżność strukturalna, bezpieczeństwo pamięci, protokoły, generyki i wydajność. - 100swift-language-pro
Pomaga pisać i przeglądać kod Swift: typy wartościowe i referencyjne, opcjonale, obsługę błędów, generyki i wytyczne API. - 90swift-core
Pomaga wdrażać podstawy Swift 6, czyli współbieżność, architekturę, testowanie, internacjonalizację i wydajność, na każdej platformie Apple. - 100write-swift
Pomaga pisać nowoczesny Swift: modelowanie typami wartości, współbieżność Swift 6, protokoły, testy i ARC. - 100write-swift
Pomaga pisać nowoczesny Swift: modelowanie typami wartości, współbieżność Swift 6, protokoły, testy i ARC.