/skip-app-design:skip-iconsfrom skip-app-design
Guides icon usage in Skip projects: replaces SF Symbols with Material Symbols via symbolset bundles for cross-platform compatibility. Use when adding, replacing, or auditing icons.
Ships in skip-app-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
There is one rule for icons in Skip projects:
Never use
Image(systemName:)orLabel(_, systemImage:). Always ship a.symbolsetresource and render it withImage("name", bundle: .module).
This rule has no exceptions in production code. Every other section of this skill exists to support it.
systemName: is an anti-patternSwiftUI's SF Symbols catalogue is an Apple-only registry of thousands of glyphs accessed by name. Android has no equivalent registry, and there is no automatic mapping from SF Symbol names to Android Material Icons. So when you write:
Image(systemName: "checklist")
Label("Tasks", systemImage: "checklist")
…the iOS build resolves "checklist" against Apple's SF Symbols catalogue and renders the glyph. The Android build has nothing to resolve "checklist" against and produces a blank space (or a generic placeholder) where the icon should be. The Swift code compiles cleanly on both platforms. The transpiled Kotlin compiles cleanly. Tests pass. The bug only shows up at runtime, on Android, when a human or a Maestro screenshot notices the missing glyph.
Almost every Image(systemName: "...") call you write will fail this way on Android. Examples that ship in real apps and silently break:
Label("Bookmark", systemImage: "bookmark.fill") // ❌ blank on Android
Label("Tasks", systemImage: "checklist") // ❌ blank on Android
Label("Web", systemImage: "globe.americas") // ❌ blank on Android
Label("Code", systemImage: "chevron.left.forward.slash.chevron.right") // ❌ blank on Android
Label("Reminders", systemImage: "list.bullet.clipboard") // ❌ blank on Android
Label("Cloud", systemImage: "icloud.fill") // ❌ blank on Android
SkipUI does ship a small hardcoded compatibility map (around 50 names — house, gearshape, magnifyingglass, plus, xmark, trash, and a handful of others) that translates a few common SF Symbol names to Compose Material Icons at runtime. That map exists, but you should still not use systemName: for those names, for three reasons:
checklist, bookmark.fill, globe.americas) and the Android build breaks invisibly.The solution is to never reach for systemName: in the first place. Use a .symbolset resource for every icon. The same SVG ships to both platforms and renders identically on each.
The internal SkipUI behaviour for
systemName:(the ~50-name hardcoded map) is documented inreferences/sf-symbol-map.mdfor completeness. That file is descriptive, not prescriptive. It tells you what SkipUI does internally with asystemName:call. It is not a list of names you should be using.
.symbolset formatApple's .symbolset directory format is a folder containing an SVG plus a Contents.json that Xcode treats as a vector image asset. Google publishes every Material Symbol in that exact format on fonts.google.com/icons. SkipUI's image-asset pipeline ships the same .symbolset bundle to both platforms and resolves it the same way. A single .symbolset works on iOS and Android.
Browse fonts.google.com/icons. The Material Symbols catalogue has ~3000 glyphs covering every common UI need — checklist, bookmark, globe, code, reminders, cloud, all the way out to specialised pictographs. Note the machine name shown for each icon (arrow_back, delete_sweep, home, notifications_active). Underscored, lowercase. You'll use it as the SVG filename and as the Image(...) lookup name.
Use the Apple variant — its SVG contains the Apple symbol-grid metadata. The raw SVG download doesn't, and renders wrong inside a .symbolset. The canonical URL pattern:
https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsoutlined/<name>/default/<name>_symbol.svg
Download a batch in one pass:
mkdir -p Sources/MyApp/Resources/Icons.xcassets
cd Sources/MyApp/Resources/Icons.xcassets
for name in checklist bookmark globe code reminders cloud add delete check_circle; do
mkdir -p "${name}.symbolset"
curl -sS -o "${name}.symbolset/${name}.svg" \
"https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsoutlined/${name}/default/${name}_symbol.svg"
done
A symbolset SVG is typically 5–20 KB. A 1 KB download is almost certainly a 404 HTML stub — verify with wc -c and grep -l Symbols *.symbolset/*.svg.
For the per-variant URLs (filled, rounded, sharp), the file-format details, and bulk-Contents.json generation, see references/symbolset-anatomy.md.
Sources/MyApp/Resources/
Icons.xcassets/
Contents.json # xcassets-level marker — required
checklist.symbolset/
checklist.svg
Contents.json # symbolset-level — required
bookmark.symbolset/
bookmark.svg
Contents.json
The directory name must end in .symbolset. Both Contents.json files are required. Without the xcassets-level one, SwiftPM ships the SVGs as plain files and Image("checklist", bundle: .module) returns a blank image — without an error. Bulk-generate both with the loop in references/symbolset-anatomy.md.
Image("checklist", bundle: .module)
Image("arrow_back", bundle: .module)
Label {
Text("Share", bundle: .module, comment: "share menu item")
} icon: {
Image("share", bundle: .module)
}
The string passed to Image(...) is the symbolset directory name without the .symbolset suffix — Image("checklist", bundle: .module) resolves Icons.xcassets/checklist.symbolset/checklist.svg on both iOS and Android.
The trailing-closure Label { Text } icon: { Image } form is the canonical shape for any labelled icon, because it solves two problems at once:
.symbolset resource ships to both platforms via the same module bundle, so the icon renders identically on iOS and Android.Text(_, bundle: .module, comment:) and adds the string to Localizable.xcstrings automatically.// ✅ Works on both platforms; localisable; predictable.
Label {
Text("Bookmark", bundle: .module, comment: "bookmark menu label")
} icon: {
Image("bookmark", bundle: .module)
}
// ❌ Renders blank on Android; also not translatable.
Label("Bookmark", systemImage: "bookmark.fill")
For the localisation side of the pattern, see skip-localization.
Even when there's no user-facing label text, still use a .symbolset, and attach an accessibilityLabel for VoiceOver/TalkBack:
Button(action: closeAction) {
Image("close", bundle: .module)
}
.accessibilityIdentifier("button.close")
.accessibilityLabel(Text("Close", bundle: .module, comment: "accessibility label for the close button"))
Image(systemName: "xmark") happens to be on SkipUI's hardcoded list, so it would render on Android — but for the reasons in the previous section, you should still ship a .symbolset. The cost is one ~10 KB SVG; the benefit is a glyph that renders identically and predictably forever.
skip iconThe Material Symbols workflow above is for in-app glyphs. The launcher icon shown on the home screen / app drawer is a separate artefact:
AppIcon.appiconset/ under the app's xcassets, with a Contents.json listing every required size and scale.Android/app/src/main/res/mipmap-*/ic_launcher.png plus an adaptive-icon XML.The Skip CLI generates both from a single source image. The source is a positional argument, not a flag:
skip icon app_icon.png # one PNG for both platforms
skip icon --background "#1A73E8" --inset 0.25 symbol.svg # SVG overlay on a coloured background
skip icon --background "#5C6BC0-#3B3F54" symbol.svg # gradient background
SVG, PDF, or PNG inputs are accepted. Re-run whenever the brand changes.
Useful flags:
| Flag | Purpose |
|---|---|
--background <color> | Background colour or gradient (e.g. #1A73E8 or #5C6BC0-#3B3F54). |
--inset <decimal> | Decimal fraction of the canvas to inset the foreground (e.g. 0.25). |
--shadow <decimal> | Shadow radius behind the foreground. |
--android <path> | Use a different source image for Android. |
--darwin <path> | Use a different source image for iOS. |
--open-preview | Open the generated icon set in a preview window after generation. |
For the full flag list and additional examples, see the skip icon reference.
Five steps end to end:
fonts.google.com/icons. Note the machine name (e.g. delete_sweep).fonts.gstatic.com/.../<name>/default/<name>_symbol.svg into Sources/<Module>/Resources/Icons.xcassets/<name>.symbolset/<name>.svg. Verify size > 5 KB and grep -l Symbols succeeds.Contents.json files — the symbolset-level one referencing the SVG, and the xcassets-level marker. Use the bulk script in references/symbolset-anatomy.md.Image("<name>", bundle: .module), wrapped in Label { Text(_, bundle: .module, comment: …) } icon: { … } whenever the icon has a visible label.skip app launch and eyeball both platforms. A blank Android icon almost always means the .symbolset directory name doesn't match the Image(...) string, or the SVG isn't the Apple variant. (Or someone reached for systemName: again — search the diff for systemImage: and systemName: and replace each occurrence with the symbolset form.)The cross-platform contract for a .symbolset is "shows on iOS, shows on Android, scales/tints with .font(.system(size:)) and .foregroundStyle(...)". Verify by:
skip app launch and eyeballing both screens side by side. A glyph that's blank on Android but visible on iOS is a missing .symbolset or a systemImage: / systemName: call that slipped in..accessibilityIdentifier(...) will work regardless of whether the glyph rendered — but a Maestro takeScreenshot: of the button's region is what catches a blank icon. Capture screenshots into .maestro/screenshots/ and review.If iOS shows a glyph that Android doesn't:
| Symptom on Android | Likely cause |
|---|---|
| Blank space where the icon should be | An Image(systemName: ...) / Label(_, systemImage:) call. Replace with .symbolset. |
| Generic placeholder glyph | A .symbolset directory exists but Contents.json references the wrong file. |
| Glyph appears but is the wrong size/aspect | The SVG is the raw Material download, not the Apple symbolset variant. |
| Glyph appears but the wrong colour | .foregroundStyle(...) not applied; or the SVG lacks the symbol-grid markers. |
When picking up a Skip project that was written without the discipline above (often by an agent in a different session, or by a Swift developer not yet aware of Skip's constraints), find every systemName: / systemImage: and replace it:
grep -rn "systemImage:\|systemName:" Sources/
For each hit, pick a Material Symbol with the same meaning at fonts.google.com/icons, download it into the right Icons.xcassets/<name>.symbolset/, and replace the call site:
// Before
Label("Tasks", systemImage: "checklist")
Image(systemName: "bookmark.fill")
// After
Label {
Text("Tasks", bundle: .module, comment: "tasks tab label")
} icon: {
Image("checklist", bundle: .module)
}
Image("bookmark_fill", bundle: .module) // or "bookmark" if you want outlined
Then skip app launch and confirm both platforms now render the glyphs identically.
Label { Text } icon: { Image } form is also the localisation-correct shape — see skip-localization for the full String Catalog workflow..accessibilityIdentifier(...) so Maestro can find it whether the glyph rendered or not.systemName: calls (the ~50-entry hardcoded map): references/sf-symbol-map.md. Descriptive only — not a list to pick from..symbolset directory format, download URL variants, and verification checks: references/symbolset-anatomy.md.What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/building-skip-uiBuilding SwiftUI views in Skip projects that work on both iOS and Android. Covers supported components, navigation, state management, Jetpack Compose customization, Material 3 theming, the hard rule against `Image(systemName:)` / `Label(_, systemImage:)` (use `.symbolset` resources via `Image("name", bundle: .module)` instead), and the localization-correct `Label { Text } icon: { Image }` shape./skip-app-walkthroughStart-to-finish orchestrator for building a new cross-platform Skip app. Sequences the other Skip skills in the order you actually need them — scaffold with `skip init`, write SwiftUI, add Material Symbols icons, validate Kotlin transpilation with `swift test`, drive the running app with `skip app launch` + Maestro, localise via `Localizable.xcstrings`, and ship via `skip export` with fastlane metadata. Use this skill at the start of a new project, or when picking up an existing Skip app and trying to decide which skill applies to which phase. Each phase links to the dedicated skill for the deep dive. Also points at the `skipapp-todo` working example at https://github.com/skiptools/skills as a reference build./skip-frameworksIntegrating optional Skip frameworks into a project. Covers Firebase, SQLite, Keychain, WebView, audio/video, device sensors, Lottie animations, FFI, and other frameworks. Includes Package.swift dependencies, skip.yml configuration, and usage examples./skip-fuseBuilding Skip apps in Fuse mode — Swift compiled natively for Android via the Swift Android SDK (Swift 6.3+), with auto-generated JNI bridging between Swift and Kotlin/Java. Covers when to choose Fuse over Lite, project init with `skip init --native-app`, the `mode: 'native'` + `bridging: true` skip.yml configuration, the `import SkipFuse` requirement for `@Observable` models (a build-time warning, not an error), the internal/public visibility rules for views and properties, the ~60 MB Swift runtime binary cost, debugging via `OSLog.Logger` (breakpoints not yet supported), `ProcessInfo.processInfo.dynamicAndroidContext()` for reaching the Android Context, the Kotlin-inline-class string-interpolation workaround for Android SDK properties, `SKIP_BRIDGE=1` for dynamic library bundling, and the `skip android test` (CLI vs APK mode) test command. Use this skill whenever working on a project whose `skip.yml` contains `mode: 'native'`, or when deciding between Lite and Fuse for a new app./skip-lite-transpilationSwift-to-Kotlin transpilation rules and pitfalls for Skip Lite mode. Covers the high-impact bugs (silent integer overflow, `Double == Int` compile errors, `Foundation.sqrt`, `String.append(Character)`, `Array.remove(atOffsets:)` SwiftUI-only gotcha, variadic init issues, `String(describing:)` and Kotlin map iteration), the `MutableStruct`/`.sref()` value-semantics machinery and the `@nocopy` escape, generics limits and the `@inline(__always)` reified-generics escape, garbage-collection effects (`weak`/`unowned` ignored, `deinit` becomes Kotlin `finalize`), the Kotlish dialect for `#if SKIP` blocks, and the SKIP comment directives (INSERT/REPLACE/DECLARE/NOWARN/SYMBOLFILE/EXTERN/@nocopy/@nodispatch/@bridge). The full long-form rules are in references/swift-kotlin-rules.md. Use when writing or reviewing Swift code in a transpiled Skip project, or when a Kotlin compile error in `XCSkipTests.testSkipModule` points at one of the above patterns./skip-localizationTranslating Skip apps and libraries into other languages. Covers in-app strings via `Localizable.xcstrings` String Catalogs in each module's `Resources/` directory, iOS `Info.plist` usage descriptions via `Darwin/InfoPlist.xcstrings`, and App Store / Google Play metadata under `Darwin/fastlane/metadata/` and `Android/fastlane/metadata/android/`. Includes the `Text("…", bundle: .module, comment: "…")` extraction convention, the `state: needs_review` discipline for agent-produced translations, conservative idiomatic translation guidance, and the catalog-rewrite-from-scratch path for template-to-app conversions. The full xcstrings JSON schema is in references/xcstrings-schema.md; fastlane directory layout, byte budgets, and validation commands in references/fastlane-metadata.md; the BCP-47 ↔ App Store ↔ Play language-code mapping in references/language-codes.md. Use this skill whenever adding or updating translations, expanding the supported-language set, validating xcstrings JSON, or preparing store metadata for a release.npx claudepluginhub skiptools/skills --plugin skip-app-designOther plugins' skills for the same job