android-expert
БесплатноБез исполняемых скриптовНе проверенAndroid shim in `amethyst/`: MainActivity, AndroidManifest/intent filters, :napplet process, play/fdroid flavors, R8 + tools/r8-verify, permissions…
от vitorpamplona★ 1 630 звёзд на GitHubОб этом скилле
android-expert
amethyst/ is shrinking to an Android shim: entry points, services, system integrations and
the actuals of shared ports. Screens, the nav host and the bar / rail / drawer are shared UI in
commonsUI (see compose-expert). A new screen goes there even when only Android shows it.
Source root: amethyst/src/main/java/com/vitorpamplona/amethyst/ (an Android app module, not
KMP: there is no androidMain here). Flavor code is in amethyst/src/play/ and
amethyst/src/fdroid/.
Entry points
Amethyst.kt: theApplication. BuildsAppModules(Amethyst.instance) in the main process only.ui/MainActivity.kt: the single main Activity (launchMode="singleInstance").onCreatecallsenableEdgeToEdge()and setsAmethystTheme { ... AmethystApp(Amethyst.instance.sessionManager, AndroidAppRoot) }. Everything from there down is shared UI.ui/AndroidAppRoot.kt:object AndroidAppRoot : AppRoot, Android's implementation of the shared shell port (commonsUI/.../commons/ui/app/AppRoot.kt). It registers the Android-only destinations (androidDestinationsinui/navigation/AppNavigation.kt) and runsNavigateIfIntentRequested.ui/platform/AndroidAppPlatform.kt(AppPlatform) andui/platform/AndroidAppServices.kt(AppServices, the interface is incommons/.../commons/service/AppServices.kt): the other two ports the shared UI calls.- Other activities have their own windows:
ui/call/CallActivity,ui/screen/loggedIn/nests/room/activity/NestActivity,service/playback/pip/PipVideoActivity, the signer / napplet consent activities, andHealthConnectRationaleActivity.
Two processes
The app runs in main and :napplet. Read references/two-processes.md before
touching Amethyst.kt, an Application callback, or anything under napplet/. The sandbox
activities and services (NappletHostActivity, NappletBrowserActivity, NappletHostService,
NappletBrowserService) live in the :nappletHost module and are declared with
android:process=":napplet". The broker side (napplet/NappletBrokerService.kt,
NappletLaunchRegistry, consent) stays in amethyst/.
Manifest and intents
amethyst/src/main/AndroidManifest.xml; each flavor merges its own AndroidManifest.xml.
MainActivitytakesMAIN,VIEWfornostr:,amethyst:,nostrconnect:, the wallet-connect schemes and severalhttpshosts, andSEND.- Share targets are
<activity-alias>es of MainActivity (.ui.ShareAsDMAlias,ShareAsPictureAlias,ShareAsShortVideoAlias,ShareAsVideoAlias,ShareAsHighlightAlias,ScanQrCodeAlias). Which one the user picked is visible only in the launching intent's component class name, whichShareIntentRouting.targetOfincommonsUI/.../commons/ui/navigation/ShareIntentRouting.ktmaps to aShareTarget. Renaming an alias without updating its constant there silently routes the share to New Post. Adding a target means an alias, a constant, and aShareTargetentry. NavigateIfIntentRequested(ui/navigation/AppNavigation.kt) turnsVIEW/SEND/SEND_MULTIPLE/ NFC intents intonav.newStack(...)calls.- Foreground services (
CallForegroundService,NestForegroundService,PlaybackService,NotificationRelayService, ...) read their notification strings synchronously, which is the one case where a string may stay in Androidres/. SeeAGENTS.md"Strings" andamethyst/src/main/res/AGENTS.md.
Intent / Context access from shared UI
Shared composables never touch Context directly. Use the existing shape: a small interface plus
an expect fun rememberX() in commonsUI commonMain, with the Android actual in
commonsUI/src/androidMain. Examples: TextSharer / rememberTextSharer() (the actual builds the
ACTION_SEND chooser from LocalContext), FileSharer, PlatformBackHandler,
HideFromScreenshots, rememberCoarseLocationPermission(): PlatformPermission (the actual wraps
Accompanist's rememberPermissionState). When the behavior needs app-only state (an Activity
class, a service, Amethyst.instance), put a member on AppPlatform / AppServices and implement
it in AndroidAppPlatform / AndroidAppServices, as openNestRoom does with NestActivity.launch.
Flavors: play vs fdroid
amethyst/build.gradle.kts declares flavorDimensions += "channel" with play (default) and
fdroid. They differ in BuildConfig.IS_CASTING_AVAILABLE and in their dependencies:
play: Firebase messaging, ML Kit (language id, translate, GenAI proofreading / rewriting / prompt / image description), Play Services Cast, androidx AppFunctions.fdroid: UnifiedPush and no Google services.
Classes that main calls exist in both src/play/java/... and src/fdroid/java/... with the
same name and signature (PushNotificationUtils, SelectNotificationProvider,
LanguageTranslatorService, WritingAssistantFactory, ChromecastCaster, TermsGate, ...). Add
or
Установить android-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл android-expert?
Android shim in `amethyst/`: MainActivity, AndroidManifest/intent filters, :napplet process, play/fdroid flavors, R8 + tools/r8-verify, permissions, Intent/Context ports. Use when editing amethyst/. NOT for screens/navigation (compose-expert).
Как установить скилл android-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл android-expert запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic