snapshot
Skill38 starsChanged 6 months agoMITView on GitHub
Automate App Store screenshot capture across devices and languages
- Installs packages
8 other projects use a version of this.
Adopted by
Most recently taken up by
- ahmadghoniem/skillstheir own version, first seen Sep 14, 2026
- mpankaj151/session-browsertheir own version, first seen Sep 10, 2026
- liustack/vibemastertheir own version, first seen Aug 14, 2026
- curv-institute/atlastheir own version, first seen Jul 13, 2026
- samhcus/skillstheir own version, first seen May 20, 2026
- sanghun0724/cmux-claude-skillstheir own version, first seen Apr 19, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- sanghun0724/cmux-claude-skills★ 33same name
- liustack/vibemaster★ 13same name
- samhcus/skills★ 3same name
- mpankaj151/session-browser★ 2same name
- ahmadghoniem/skills★ 1same name
- Pedro-B-Siqueira/snapshot★ 1same name
- arbones/claude-skills★ 0same name
- curv-institute/atlas★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- betaSkill
- matchSkill
- releaseSkill
- setup-fastlaneSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 7 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 94
Ensure it's added to your UITests target (not main app)
- Very specific: line 159
After capturing, upload with deliver:
- Very specific: line 170
If you frame with your own pipeline (a design tool, a web framer) instead of frameit, deliver can still upload them — stage them into the …
- Distinctive: line 187
If your framer is a full editor (not a static page),: don't hand-click its browser "Export bundle" button — that isn't repeatable and dumps …
- Very specific: line 248
Add device frames around screenshots using frameit:
- Very specific: line 261
Create fastlane/screenshots/Framefile.json for custom titles:
- Very specific: line 292
Ensure setupSnapshot(app) is called before app.launch()
- Distinctive: line 293
Add small delays if content loads asynchronously:
- Distinctive: line 304
Update Snapfile device names to match exactly.
- Distinctive: line 324
Add a dedicated lane for screenshots:
- Distinctive: line 353
Handle async: Add waits for network content to load
- Distinctive: line 355
Localization: Test with actual translations, not placeholders
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Automated App Store Screenshots
Set up Fastlane Snapshot to automatically capture App Store screenshots across multiple devices and languages.
Pre-flight Checks
- Fastlane installed: !
fastlane --version 2>/dev/null | grep "fastlane " | head -1 || echo "✗ Not installed - run: brew install fastlane" - Fastfile exists: !
ls fastlane/Fastfile 2>/dev/null && echo "✓ Found" || echo "✗ Not found - run /setup-fastlane first" - Existing Snapfile: !
ls fastlane/Snapfile 2>/dev/null && echo "✓ Already configured" || echo "○ Not configured yet" - UI Test target: !
find . -maxdepth 3 -name "*UITests*" -type d 2>/dev/null | head -1 || echo "○ No UI test target found" - Simulators available: !
xcrun simctl list devices available | grep -E "iPhone|iPad" | head -3
Arguments: ${ARGUMENTS:-setup}
Why Automate Screenshots?
App Store requires screenshots for multiple device sizes. Manual capture means:
- 5+ device sizes × 5+ screenshots × N languages = hours of work
- Risk of inconsistency between screenshots
- Repeat everything for each app update
Snapshot automates this: run once, get all screenshots.
Step 1: Initialize Snapshot
fastlane snapshot initThis creates:
fastlane/Snapfile- Configuration filefastlane/SnapshotHelper.swift- Helper for UI tests
Step 2: Configure Snapfile
Edit fastlane/Snapfile:
# Devices to capture (App Store requirements)
devices([
"iPhone 15 Pro Max", # 6.7" display (required)
"iPhone 15 Pro", # 6.1" display
"iPhone SE (3rd generation)", # 4.7" display (if supporting older phones)
"iPad Pro 13-inch (M4)", # iPad screenshots (if universal app)
])
# Languages to capture
languages([
"en-US",
# "ja", # Japanese
# "de-DE", # German
# "fr-FR", # French
# "es-ES", # Spanish
])
# UI Test scheme
scheme("YourAppUITests")
# Output directory
output_directory("./fastlane/screenshots")
# Clear old screenshots before capture
clear_previous_screenshots(true)
# Stop on first error (set false to continue despite failures)
stop_after_first_error(true)
# Dark mode variants (iOS 13+)
# dark_mode(true)
# Workspace or project (uncomment one)
# workspace("YourApp.xcworkspace")
# project("YourApp.xcodeproj")Step 3: Add SnapshotHelper to UI Tests
- Add SnapshotHelper.swift to your UI test target:
- Drag
fastlane/SnapshotHelper.swiftinto Xcode - Ensure it's added to your UITests target (not main app)
- Drag
- Import and configure in your UI test file:
import XCTest
class ScreenshotTests: XCTestCase {
override func setUpWithError() throws {
continueAfterFailure = false
let app = XCUIApplication()
setupSnapshot(app) // Initialize snapshot
app.launch()
}
func testTakeScreenshots() throws {
let app = XCUIApplication()
// Screenshot 1: Home screen
snapshot("01_HomeScreen")
// Navigate to feature and capture
app.buttons["Feature"].tap()
snapshot("02_FeatureScreen")
// Screenshot with content
app.textFields["Search"].tap()
app.textFields["Search"].typeText("Example")
snapshot("03_SearchResults")
// Settings screen
app.buttons["Settings"].tap()
snapshot("04_Settings")
// Any additional screens...
snapshot("05_DetailView")
}
}Step 4: Run Snapshot
# Capture all screenshots
fastlane snapshot
# Specific device only
fastlane snapshot --devices "iPhone 15 Pro Max"
# Specific language only
fastlane snapshot --languages "en-US"
# Skip launch (use existing simulator state)
fastlane snapshot --skip_open_summaryScreenshots are saved to fastlane/screenshots/{language}/{device}/.
Step 5: Upload to App Store Connect
After capturing, upload with deliver:
# Upload screenshots only (no binary, no metadata)
fastlane deliver --skip_binary_upload --skip_metadata --overwrite_screenshotsdeliver reads fastlane/screenshots/<locale>/, maps each PNG to a display size by its pixel dimensions, and orders them by filename sort — so prefix names (01_, 02_, …).
Uploading screenshots you framed yourself
If you frame with your own pipeline (a design tool, a web framer) instead of frameit, deliver can still upload them — stage them into the <locale>/ layout and let dimension-mapping place them:
lane :upload_framed_screenshots do
framed = File.expand_path("../path/to/your/framed", __dir__)
staging = File.expand_path("./screenshots/en-US", __dir__) # deliver wants <locale>/
FileUtils.rm_rf(File.dirname(staging)); FileUtils.mkdir_p(staging)
FileUtils.cp(Dir.glob("#{framed}/*.png"), staging)
deliver(skip_binary_upload: true, skip_metadata: true,
skip_screenshots: false, overwrite_screenshots: true, force: true)
endRGB only — no alpha. App Store rejects screenshots with an alpha channel (
ERROR ITMS-90475/IMAGE_ALPHA_NOT_ALLOWED). Web/toPngframers usually add one — flatten before upload:magick in.png -alpha remove -alpha off out.png.
If your framer is a full editor (not a static page), don't hand-click its
browser "Export bundle" button — that isn't repeatable and dumps a zip in the
editor's own nested layout. Instead, expose a tiny dev-only export hook on
window that reuses the editor's existing capture function (it already knows the
exact per-size toPng render), then drive it with headless Chrome:
// in the editor (dev only): loop slides × required sizes through the UI's own
// captureSlide(), return base64 PNGs — no zip, no download dialog.
window.__exportFramed = async () => {/* … returns [{name, dataUrl}] */};// driver (puppeteer-core → system Chrome): call the hook, flatten, write flat.
const items = await page.evaluate(() => window.__exportFramed());
for (const { name, dataUrl } of items)
execFileSync("magick", ["png:-","-alpha","remove","-alpha","off", out(name)],
{ input: Buffer.from(dataUrl.split(",")[1], "base64") });One command regenerates the whole set into your canonical output dir, already
RGB — then point the upload_framed_screenshots lane above at that dir. This
beats the editor's bundle button (which still emits RGBA in a layout deliver
can't read) and keeps the pipeline scriptable.
What deliver does NOT upload
deliver handles app-level metadata + screenshots only. It does not touch:
- In-app-purchase / subscription assets — the per-IAP Review Information → Screenshot and the 1024×1024 Image (Optional) promo. Upload these by hand in App Store Connect (no turnkey fastlane action; the raw ASC API is the only alternative).
- App icon — comes from the uploaded build (the
AppIconasset catalog), never a separate upload.
Auth
deliver needs App Store Connect credentials. For non-interactive/CI runs, configure an App Store Connect API key (.p8) — see the match skill's CI/CD section. With only an Apple ID it falls back to interactive 2FA, which can't be scripted.
App Store Screenshot Requirements
Required Device Sizes
| Display Size | Example Devices |
| 6.9" iPhone | iPhone 17 Pro Max, 16 Pro Max, 15 Pro Max, 14 Pro Max, 16/15 Plus |
| 6.5" iPhone | iPhone 14 Plus, 13/12/11 Pro Max, XS Max, XR |
| 13" iPad | iPad Pro (M5/M4), iPad Air (M4/M3/M2) |
| 12.9" iPad | iPad Pro (2nd gen) |
Minimum: 6.9" iPhone screenshots are the primary requirement. 6.5" is only required if 6.9" aren't provided. Smaller iPhone sizes (6.3", 6.1", 5.5", 4.7") auto-scale from the larger ones — only supply them if you want pixel-perfect framing on those displays. iPad screenshots are required if the app runs on iPad.
For exact pixel dimensions, see Apple's screenshot specifications — they update with each new device generation, so always check the current source.
Screenshot Count
- Minimum: 1 per device size
- Maximum: 10 per device size
- Recommended: 5-6 highlighting key features
Optional: Frame Screenshots with Device Bezels
Add device frames around screenshots using frameit:
# Install frameit
brew install imagemagick
# Frame screenshots
fastlane frameit
# Silver device frames
fastlane frameit silverCreate fastlane/screenshots/Framefile.json for custom titles:
{
"default": {
"title": {
"font": "./fonts/MyFont.ttf",
"color": "#000000"
},
"background": "#FFFFFF",
"padding": 50,
"show_complete_frame": true
}
}Troubleshooting
"SnapshotHelper.swift not found"
Re-run fastlane snapshot init and add the helper to your UI test target.
"Unable to boot simulator"
Reset the simulator:
xcrun simctl shutdown all
xcrun simctl erase allScreenshots are black/blank
- Ensure
setupSnapshot(app)is called beforeapp.launch() - Add small delays if content loads asynchronously:
sleep(1) // Wait for content
snapshot("01_HomeScreen")"No matching device found"
Check available simulators:
xcrun simctl list devices availableUpdate Snapfile device names to match exactly.
UI test fails to find element
Use accessibility identifiers:
// In your app code
button.accessibilityIdentifier = "settingsButton"
// In UI test
app.buttons["settingsButton"].tap()Paywall/price screenshots show the wrong currency
Under any automated run (xcodebuild, fastlane snapshot, simctl), StoreKit renders Product.displayPrice from the US storefront — regardless of the device region or the .storekit _storefront/_locale. Only the Xcode IDE Run button honours a configured storefront, and that can't be scripted. To screenshot a price in another currency, render it from your own region/pricing source behind a #if DEBUG, launch-arg-gated hook instead of relying on live StoreKit.
Integrate with Fastfile
Add a dedicated lane for screenshots:
lane :screenshots do
snapshot(
scheme: "YourAppUITests",
devices: ["iPhone 15 Pro Max", "iPad Pro 13-inch (M4)"],
languages: ["en-US"]
)
# Optional: frame screenshots
# frameit(white: true)
end
lane :upload_screenshots do
deliver(
skip_binary_upload: true,
skip_metadata: true,
overwrite_screenshots: true
)
endBest Practices
- Use sample data: Pre-populate app with attractive demo content
- Consistent state: Reset app state before each test run
- Accessibility IDs: More reliable than text matching
- Handle async: Add waits for network content to load
- Dark mode: Capture both light and dark variants
- Localization: Test with actual translations, not placeholders
- Landscape: Include landscape screenshots for iPad if relevant
Files Created
fastlane/
├── Snapfile # Snapshot configuration
├── SnapshotHelper.swift # Helper for UI tests (copy to test target)
└── screenshots/
├── en-US/
│ ├── iPhone 15 Pro Max/
│ │ ├── 01_HomeScreen.png
│ │ ├── 02_FeatureScreen.png
│ │ └── ...
│ └── iPad Pro 13-inch (M4)/
│ └── ...
└── ja/
└── ...Complete Workflow
# 1. Set up snapshot
fastlane snapshot init
# 2. Write UI tests with snapshot() calls
# 3. Capture screenshots
fastlane snapshot
# 4. Review screenshots in fastlane/screenshots/
# 5. Optional: add device frames
fastlane frameit
# 6. Upload to App Store Connect
fastlane deliver --skip_binary_upload --skip_metadataDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

