/android-skills:cameraxfrom Android Skills
Guides Android camera development with CameraX, covering recording lifecycles, Camera2 interop, migration from Camera1/Camera2, and ML Kit/Media3 integration.
Ships in Android Skills. 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.
This skill provides procedural guidance and standard patterns for building
camera applications on Android, with a focus on CameraX, including its
Camera2Interop utilities, and Media3 integrations.
Various Android camera and media APIs, especially CameraX VideoCapture, use a
fluent, immutable builder-like pattern where methods return a new instance.
Failing to reassign these results in settings, such as audio, being ignored.
Pattern: Reassignment is required
// WRONG
run {
val pending = recorder.prepareRecording(context, opts)
pending.withAudioEnabled() // This returns a new instance which is ignored
val active = pending.start(exec, listener)
}
// CORRECT
run {
val pending = recorder.prepareRecording(context, opts)
.withAudioEnabled() // Chaining works
val active = pending.start(exec, listener)
}
// ALSO CORRECT
run {
var pending = recorder.prepareRecording(context, opts)
pending = pending.withAudioEnabled() // Reassignment
val active = pending.start(exec, listener)
}
See immutability for a list of affected classes.
When migrating legacy camera codebases to the CameraX Jetpack library:
android.hardware.Camera implementations, surface handling, and manual lifecycles, see the Camera1 migration guide.android.hardware.camera2 implementations, session state callbacks, and interop patterns, see the Camera2 migration guide.For multi-step features that involve multiple files and hardware-level wiring, follow the Structural Blueprinting approach to avoid system timeouts. Such complex features include:
ViewModel state, the controller layer, and the Camera2Interop wiring in the session.Media3Effect or SurfaceProcessor over manual OpenGL pipelines unless absolute performance is required.StreamUseCase optimizations and PowerManager thermal states.FakeCameraConfig, handling asynchronous lifecycles, and validating analysis pipelines.See expert-blueprints for step-by-step guides.
Always use higher-level abstractions instead of low-level manual wiring:
MlKitAnalyzer instead of manual ImageAnalysis.Analyzer.Media3Effect for standard post-processing.ConcurrentCamera APIs for dual-stream setups.See modern-apis for current recommendations.
Adhere to the following Android ecosystem standard patterns when building your camera implementations:
Mockito, especially for multi-step CameraX interfaces like ImageProxy. Build "Fakes" to verify state rather than unreliable implementation details.assertThat over standard JUnit assertions like assertEquals for improved readability.@RunWith for test classes to ensure the CI environment executes them correctly.Icon and Text, use semantics { mergeDescendants = true } to ensure screen readers announce them as a single, coherent unit.Camera apps run on a wide variety of hardware, from mobile phones and foldables to tablets, laptops, and even smart appliances. Have consideration for the specific hardware the app is running on.
isRecording state before attempting to stop or pause. Handle VideoRecordEvent.Start for UI state updates, not just the initial call.CAMERA permission; check for RECORD_AUDIO specifically when enabling audio in VideoCapture.references/camera1-to-camerax.md (opens in a new tab)references/camera2-to-camerax.md (opens in a new tab)references/expert-blueprints.md (opens in a new tab)references/foldables.md (opens in a new tab)references/immutability.md (opens in a new tab)references/low-light.md (opens in a new tab)references/mlkit-spatial.md (opens in a new tab)references/modern-apis.md (opens in a new tab)references/testing.md (opens in a new tab)references/thermals.md (opens in a new tab)references/wear-os.md (opens in a new tab)references/xr.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub android/skills --plugin android-skills42 skills in this plugin
/adaptiveInstructions to make or update an app's UI so that it adapts to different Android devices including phones, tablets, foldables, laptops, desktop, TV, Auto, and XR. It includes how to handle different window sizes, pointing devices (such as mouse) and text entry devices (such as keyboard) using the Compose MediaQuery API, and how to preserve UI, navigation, scroll, and media playback state across configuration changes (such as folding/unfolding a foldable, rotating a device, or resizing a window). It also covers multi-pane layouts using Navigation3 Scenes, adaptive UI components (such as buttons) with varying target sizes, and adaptive layouts (including navigation areas - nav rails and nav bars) using the Compose Grid and FlexBox APIs. It also covers desktop experiences with keyboard shortcuts, tooltips and custom cursors./agp-9-upgradeUpgrades, or migrates, an Android project to use Android Gradle Plugin (AGP) version 9. Do not use this skill for migrating Kotlin Multiplatform (KMP) projects./android-cliProvides instructions for installing and using the `android` CLI. The `android` command-line tool is a critical tool for Android development and helps you create new Android projects, install APKs onto devices and emulators and launch and run apps on them, manage and interact with Android virtual devices (including screenshots and UI inspection), manage Android SDK components, inspect built artifacts (APK, AAB, JAR, AAR) for build and optimization details, render Compose previews, look up official Android documentation, and discover and install official Android skills.5 plugins ship this exact skill · first indexed Jul 27, 2026
Other plugins' skills for the same job