AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Coredata Swift6 Pro

skill-kelvinkosbab-appbootstrapai-coredata-swift6-pro · by kelvinkosbab

Reviews Core Data code for Swift 6 strict concurrency compliance, modern context usage, and SPM compatibility. Use when reading, writing, or reviewing Core Data code under Swift 6.

No reviews yet
0 installs
36 views
0.0% view→install

Install

$ agentstack add skill-kelvinkosbab-appbootstrapai-coredata-swift6-pro

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-kelvinkosbab-appbootstrapai-coredata-swift6-pro)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Coredata Swift6 Pro? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Review Core Data code for Swift 6 concurrency correctness, modern API usage, and SPM compatibility. Report only genuine problems - do not nitpick or invent issues.

Review process:

  1. Validate viewContext access is @MainActor-isolated using references/main-actor.md.
  2. Check background context usage with perform/performAndWait using references/background-contexts.md.
  3. Verify SPM compatibility for .xcdatamodeld bundling using references/spm-limitations.md.
  4. Check for modern persistent container patterns and fetch result types using references/modern-patterns.md.
  5. Flag direct cross-context object passing (must pass NSManagedObjectID instead).

If doing a partial review, load only the relevant reference files.

Core Instructions

  • Target Swift 6 with strict concurrency. Core Data + Swift 6 has specific rules that must be followed.
  • viewContext is bound to the main queue — all synchronous access must be @MainActor or wrapped in MainActor.run.
  • NSManagedObject subclasses are NOT Sendable. Never pass them across isolation boundaries — use NSManagedObjectID instead.
  • All background context work goes through context.perform { } (async) or context.performAndWait { } (sync).
  • For SPM packages, .xcdatamodeld cannot be compiled to .momd by swift build — only Xcode can. Tests run via swift test must build NSManagedObjectModel programmatically.
  • Use NSPersistentContainer (or NSPersistentCloudKitContainer), not the deprecated NSPersistentStoreCoordinator directly.
  • Prefer .viewContext.automaticallyMergesChangesFromParent = true so background changes propagate.
  • For tests, use NSInMemoryStoreType so each test has an isolated store.

Output Format

Organize findings by file. For each issue:

  1. State the file and relevant line(s).
  2. Name the rule being violated.
  3. Show a brief before/after code fix.

Skip files with no issues. End with a prioritized summary of the most impactful changes to make first.

Example output:

CoreStorage/Tests/EntityStoreTests.swift

Line 23: Sync viewContext test missing @MainActor — will fail under Swift 6 strict concurrency.

// Before
@Test func createUpdateDeleteObject() throws {
    let store = EntityStore(...)
    try store.create(...)
}

// After
@MainActor @Test func createUpdateDeleteObject() throws {
    let store = EntityStore(...)
    try store.create(...)
}

Line 45: Background context work missing perform { } block.

// Before
let bgContext = container.newBackgroundContext()
let object = MyObject(context: bgContext)
object.value = "foo"
try bgContext.save()

// After
let bgContext = container.newBackgroundContext()
try await bgContext.perform {
    let object = MyObject(context: bgContext)
    object.value = "foo"
    try bgContext.save()
}

CoreStorage/Tests/Utilities/KeyValue.swift

Line 14: Test relies on Bundle.module for .momd — will fail under swift test.

// Before
self.init(storeName: "MyModel", in: .module)

// After
let model = makeKeyValueManagedObjectModel()
self.init(storeName: "MyModel", managedObjectModel: model)

Summary

  1. Concurrency (high): 4 sync viewContext tests missing @MainActor annotation.
  2. SPM compatibility (high): Test container relies on Bundle.module for .momd — must build model programmatically.
  3. Concurrency (medium): Background context work outside perform { } block on line 45.

End of example.

References

  • references/main-actor.mdviewContext main-queue binding, @MainActor test patterns, isolation rules.
  • references/background-contexts.mdperform/performAndWait, newBackgroundContext, async wrappers, merge policies.
  • references/spm-limitations.md.xcdatamodeld compilation, Bundle.module issues, programmatic NSManagedObjectModel.
  • references/modern-patterns.mdNSPersistentContainer, fetch results, Codable transformers, CloudKit container.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.