vendor/skills/core-data-expert/SKILL.md
# Core Data + SwiftData Expert Use this skill when auditing or implementing Core Data or SwiftData code that must remain safe across contexts, layers, and async boundaries. ## Focus areas - ✅ Prefer `NSManagedObjectID` or mapped DTO/domain models over passing `NSManagedObject` across boundaries. - ✅ Avoid returning or accepting `NSManagedObject` in async APIs that cross actor or context boundaries. - ✅ Keep Core Data orchestration inside infrastructure or repository layers instead of presenta
npx skillsauth add swiftenprofundidad/ast-intelligence-hooks vendor/skills/core-data-expertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when auditing or implementing Core Data or SwiftData code that must remain safe across contexts, layers, and async boundaries.
NSManagedObjectID or mapped DTO/domain models over passing NSManagedObject across boundaries.NSManagedObject in async APIs that cross actor or context boundaries.ModelContext, ModelContainer, @Query, @Model) inside infrastructure or repository layers instead of application or presentation code in enterprise Clean Architecture.NSManagedObjectID when a different context must resolve the entity later.NSManagedObject through service, use-case, or presentation boundaries.NSManagedObject directly.development
Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, modern APIs, Swift concurrency, and iOS 26+ Liquid Glass adoption. Use when building new SwiftUI features, refactoring existing views, reviewing code quality, or adopting modern SwiftUI patterns.
testing
# Swift Testing Expert Use this skill when designing or reviewing modern Swift tests that should align with Swift Testing instead of legacy XCTest-only patterns. ## Focus areas - ✅ Prefer `import Testing` in unit and integration tests. - ✅ Use `#expect` and `#require` instead of `XCTAssert*` and `XCTUnwrap` in modern Swift tests. - ✅ Keep `XCTest` only for UI, performance, or unavoidable legacy compatibility targets. - ✅ Preserve repository-specific test contracts such as `makeSUT()` and memo
development
Expert guidance on Swift Concurrency best practices, patterns, and implementation. Use when developers mention: (1) Swift Concurrency, async/await, actors, or tasks, (2) "use Swift Concurrency" or "modern concurrency patterns", (3) migrating to Swift 6, (4) data races or thread safety issues, (5) refactoring closures to async/await, (6) @MainActor, Sendable, or actor isolation, (7) concurrent code architecture or performance optimization, (8) concurrency-related linter warnings (SwiftLint or similar; e.g. async_without_await, Sendable/actor isolation/MainActor lint).
tools
Reglas iOS/Swift/SwiftUI enterprise del proyecto. Alias canónico neutro.