image-loading
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.
npx skills add rshankras/claude-code-apple-skills --skill image-loading --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Image Loading Generator Generate a production image loading pipeline with NSCache memory cache, LRU disk cache, request deduplication, image processing, and a drop-in `CachedAsyncImage` SwiftUI view. ## When This Skill Activates Use this skill when the user: - Asks to "add image caching" or "cache images" - Wants to "replace AsyncImage" or fix "AsyncImage has no cache" - Mentions "image loading pipeline" or "lazy image loading" - Asks about "image download" or "image prefetching" - Wants "thumbnail generation" or "image resizing" ## Pre-Generation Checks ### 1. Project Context Detection - [ ] Check Swift version (requires Swift 5.9+) - [ ] Check deployment target (iOS 16+ / macOS 13+) - [ ] Check for @Observable support (iOS 17+ / macOS 14+) - [ ] Identify source file locations ### 2. Conflict Detection 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): - Ask if user wants to replace or keep it - If keeping, don't generate — advise on best practices instead ### 3. Platform Detection Determin
- When This Skill Activates
- Pre-Generation Checks
- 1. Project Context Detection
- 2. Conflict Detection
- 3. Platform Detection
- Configuration Questions
- Generation Process
- Step 1: Read Templates
- Step 2: Create Core Files
- Step 3: Create UI Files
- Step 4: Create Optional Files
- Step 5: Determine File Location
- Output Format
- Files Created
What does the image-loading skill do?
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.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill image-loading --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
