Swift Android Agent Skills

Agent Skills for Swift code that also has to run on Android.
They help an AI coding agent decide how Swift reaches an Android app,
keep a shared Swift core portable under a native Kotlin and Compose UI,
and build with the Swift SDK for Android and swift-java when there is no Skip at all.
The skills work in any AI coding tool that supports the
Agent Skills open format.
Since Swift 6.3, Android is an official Swift platform,
and Skip builds whole iOS and Android apps from one Swift codebase.
In August 2026 Polymarket described an Android app built on
170,000 lines of Swift shared with iOS,
under a UI written natively in Compose.
These skills turn that kind of experience, the documentation behind it,
and what this repository's own Android CI measures,
into a workflow an agent can follow:
report what the machine can verify, scan the code, propose a plan where every item cites a source,
change code only after approval.
Website: https://blog.kakoulin.com/apps/swift-android-agent-skills
Works alongside Skip's official skills
The Skip team publishes official agent skills for Skip projects:
creating them, skip.yml, SwiftUI on Android, icons, localization, tests and store release.
Install those too; these skills route Skip's ground to them by name and cover what they do not:
- Choosing the route — a Skip Fuse app, a shared Swift core under native Compose UI,
Skip Lite, or the bare Swift SDK — with the documentation's own recommendation.
- The shared core — the package split, platform services as Swift protocols,
@Observable view models, no Combine at the Kotlin boundary,
and the Compose lifetime problems that make view models stale or keep their subscriptions alive.
- The SDK underneath — toolchain and SDK matching, NDK and API levels,
shipping the Swift runtime in an APK, swift-java's JNI mode, app size, LLDB.
Where Skip's skills disagree with skip.dev — they default to Lite, skip.dev recommends native mode for most apps —
official-skip-skills.md lists each case, pinned to a commit.
What is measured, and what is not
A GitHub Actions job (android.yml) installs the Swift SDK for Android
the way swift.org says, compiles every shared code sample in the skills for Android,
runs compile probes behind the scanner's rules,
and runs the tests of samples/SharedCore on an Android emulator.
Its results are recorded in measured-behavior.md,
and only those count as measured.
The first run (Swift 6.4.0, 2026-10-01) found, among other things:
- swift.org's install commands work as published, and the sample's 15 tests pass on an Android emulator,
withObservationTracking, stream cancellation and ICU formatting included;
- the NDKs that GitHub's runner images ship compile Swift libraries,
but cannot link the static Swift runtime — only the NDK the SDK was built with can;
import Combine, import OSLog and import UIKit fail with "no such module",
@objc with "Objective-C interoperability is disabled",
and a missing FoundationNetworking import surfaces as URLSession having no member shared —
while a plain NSObject subclass and DispatchQueue.main compile.
Not measured here: Skip's bridging and skip export, Compose recomposition,
garbage-collection timing, Android Studio, and app size on a device.
Those claims are cited — to skip.dev, swift.org, swift-java, the forums, or Polymarket's report —
and labelled as such.
The skills