app-store
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Generates an image loading pipeline with memory/disk caching, deduplication, and a CachedAsyncImage SwiftUI view. Use when user wants image caching, lazy image loading, or a replacement for AsyncImage.
Claude Code
$ npx -y skills add rshankras/claude-code-apple-skills --skill image-loading --agent claude-code
Codex
$ npx skills add rshankras/claude-code-apple-skills --skill image-loading -a codex -y
Cursor
$ npx skills add rshankras/claude-code-apple-skills --skill image-loading -a cursor -y
Gemini CLI
$ npx skills add rshankras/claude-code-apple-skills --skill image-loading -a gemini-cli -y
GitHub Copilot
$ npx skills add rshankras/claude-code-apple-skills --skill image-loading -a github-copilot -y
OpenCode
$ npx skills add rshankras/claude-code-apple-skills --skill image-loading -a opencode -y
Windsurf
$ npx skills add rshankras/claude-code-apple-skills --skill image-loading -a windsurf -y
name: image-loading description: Generates an image loading pipeline with memory/disk caching, deduplication, and a CachedAsyncImage SwiftUI view. Use when user wants image caching, lazy image loading, or a replacement for AsyncImage. allowed-tools: [Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion] last_verified: 2026-07-16 review_by: 2027-06-22 os_version: iOS 27 / macOS 27
Generate a production image loading pipeline with NSCache memory cache, LRU disk cache, request deduplication, image processing, and a drop-in `CachedAsyncImage` SwiftUI view.
Use this skill when the user:
Search for existing image loading:
Glob: **/*ImageCache*.swift, **/*ImageLoader*.swift, **/*ImagePipeline*.swift Grep: "AsyncImage" or "UIImage" or "NSImage" or "ImageCache"
If third-party library found (Kingfisher, SDWebImage, Nuke):
Determine if generating for iOS (UIImage) or macOS (NSImage) or both (cross-platform typealias).
Ask user via AskUserQuestion:
1. **Cache sizes?**
2. **Image processing?**
3. **Additional features?** (multi-select)
4. **Platform?**
Read `image-loading-patterns.md` for architecture guidance. Read `templates.md` for production Swift code.
Generate these files: 1. `ImageCache.swift` — Protocol for cache interface 2. `MemoryImageCache.swift` — NSCache-based with configurable size 3. `DiskImageCache.swift` — FileManager LRU with expiration 4. `ImageDownloader.swift` — Actor-based with deduplication + cancellation 5. `ImagePipeline.swift` — Orchestrator (cache → download → process → store)
6. `CachedAsyncImage.swift` — Drop-in SwiftUI view replacement
Based on configuration:
Check project structure:
After generation, provide:
ImageLoading/ ├── ImageCache.swift # Protocol for cache interface ├── MemoryImageCache.swift # NSCache-based memory cache ├── DiskImageCache.swift # LRU disk cache with expiration ├── ImageDownloader.swift # Actor-based downloader ├── ImagePipeline.swift # Orchestrator ├── ImageProcessor.swift # Resize, thumbnails (optional) ├── CachedAsyncImage.swift # SwiftUI view └── ImagePrefetcher.swift # Collection prefetching (optional)
**Drop-in replacement for AsyncImage:**
// Before (no caching)
AsyncImage(url: user.avatarURL) { image in
image.resizable().aspectRatio(contentMode: .fill)
} placeholder: {
ProgressView()
}
// After (with caching)
CachedAsyncImage(url: user.avatarURL) { image in
image.resizable().aspectRatio(contentMode: .fill)
} placeholder: {
ProgressView()
}**In a List:**
List(users) { user in
HStack {
CachedAsyncImage(url: user.avatarURL) { image in
image.resizable().frame(width: 44, height: 44).clipShape(Circle())
} placeholder: {
Circle().fill(Color.secondary.opacity(0.2)).frame(width: 44, height: 44)
}
Text(user.name)
}
}**With prefetching:**
struct UsersListView: View {
let users: [User]
@State private var prefetcher = ImagePrefetcher()
var body: some View {
List(users) { user in
UserRow(user: user)
.onAppear { prefetcher.startPrefetching(urls: nearbyURLs(for: user)) }
.onDisappear { prefetcher.stopPrefetching(urls: [user.avatarURL]) }
}
}
}**With image processing:**
CachedAsyncImage(
url: photo.url,
processing: .resize(targetSize: CGSize(width: 300, height: 300))
) { image in
image.resizable()
} placeholder: {
Color.secondary.opacity(0.2)
}@Test
func cachedImageReturnedWithoutDownload() async throws {
let cache = InMemoryImageCache()
let downloader = MockImageDownloader()
let pipeline = ImagePipeline(cache: cache, downloader: downloader)
let testImage = PlatformImage.testImage
await cache.store(testImage, for: testURL)
let result = try await pipeline.image(for: testURL)
#expect(result != nil)
#expect(downloader.downloadCount == 0) // Cache hit
}
@Test
func deduplicatesConcurrentRequests() async throws {
let downloader = MockImageDownloader(delay: .milliseconds(100))
let pipeline = ImagePipeline(downloader: downloader)
async let image1 = pipeline.image(A collection of Claude Code skills for iOS, macOS, watchOS, visionOS, and Apple platform development. These skills help you plan and build apps, maintain code quality, ensure HIG compliance, and guide you from idea to App Store.
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution,…
Generate compelling App Store descriptions that convert browsers into users. Use when writing initial descriptions, improving…
Apple Search Ads campaign strategy for indie developers — paid acquisition, keyword bidding, budget planning, and ROAS…
Take a one-time in-app purchase from MISSING_METADATA to READY_TO_SUBMIT in App Store Connect — set its price schedule and…
Optimize app title, subtitle, and keywords for maximum App Store discoverability. Use when launching a new app, improving search…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.