plugins/smedjen/skills/expo-jetpack-compose/SKILL.md
Jetpack Compose integration with Expo modules — native Android views, bridging patterns, and module API
npx skillsauth add hjemmesidekongen/ai expo-jetpack-composeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Expo Modules API supports Kotlin-first native Android modules. A Module subclass with a definition() body exposes functions, constants, and views to JavaScript — no Java, no ReactPackage registration required.
Define the module, name it, and register functions and views in definition(). The Name() call must match the string used in requireNativeModule() on the JS side.
Expo views extend ExpoView. To host a Compose UI, add a ComposeView as a child and call setContent {} on it. Use ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed to align the Compose lifecycle with the Android view tree. When a prop changes, call setContent {} again to recompose with the new state.
Props are declared with Prop in the module definition() and applied to the ExpoView subclass. Events use EventDispatcher and are registered with Events() in the definition. Fire them by calling the dispatcher with a plain map payload.
Compose requires explicit opt-in in the module's build.gradle:
buildFeatures { compose = true }composeOptions { kotlinCompilerExtensionVersion = "<version>" }Config plugins handle Gradle changes in managed workflow — don't edit android/ files manually.
Compose lifecycle is tied to the ViewCompositionStrategy. Use DisposeOnViewTreeLifecycleDestroyed to align with the Android view lifecycle. For subscriptions, use LaunchedEffect inside the composable or OnCreate / OnDestroy in the module definition.
See references/process.md for full Kotlin module code, ComposeView setup, Gradle config, config plugins for Android, testing, debugging, and anti-patterns.
development
Creates a brand from scratch through market research and interactive sparring. Runs competitive research via Perplexity, then guides the user through positioning, audience, voice, values, and content pillars. Produces the full brand guideline set at .ai/brand/{name}/. Use when building a new brand, defining brand strategy for a product, or when /våbenskjold:create is invoked.
testing
Loads brand guidelines from .ai/brand/{name}/ and makes them available to the current context. Progressive disclosure: L1 confirms brand exists, L2 loads summary, L3 loads specific files on demand. Use when a downstream skill or user needs brand context, or when /våbenskjold:apply is invoked.
documentation
Guided reinvention of an existing brand guideline. Loads current brand from .ai/brand/{name}/, identifies what to keep vs change, and walks the user through targeted evolution. Preserves brand equity while updating positioning, voice, or values. Use when refreshing a brand or when /våbenskjold:evolve is invoked.
development
Codifies an existing brand from materials, samples, and references. Analyzes provided content to extract voice patterns, values, and positioning. Produces the same guideline format as brand-strategy. Use when a brand already exists but isn't documented, or when /våbenskjold:audit is invoked.