
CameraX Android Camera Guide
Guides an agent through Android CameraX development, migrations, and camera pitfalls
- Repository
- android/skills
- Stars
- 10,278
- Licence
- Apache-2.0
- Files
- 13 files
What it does
When installed, the agent gets Google's reference guidance for building Android camera apps with the CameraX Jetpack library. It knows the correct way to chain CameraX VideoCapture builder calls, how to migrate code from the older Camera1 and Camera2 APIs, and common pitfalls such as checking recording state, handling permissions, and dispatching UI updates on the main thread. It also points to deeper reference notes on topics like ML Kit analysis, low-light modes, foldables, thermals, testing with fakes, and Wear OS remote triggers.
Great for
- Android developers adding camera capture, video recording, or analysis features with CameraX
- Teams migrating a legacy Camera1 or Camera2 app to CameraX
- Developers integrating ML Kit or Media3 effects into a camera pipeline
Skip it if
- Non-developers who just want to take photos; this is a coding guide, not a camera app
- Projects not using Android or Kotlin, since the examples and APIs are Android-specific
Try asking
- “Migrate my Camera2 preview and capture code to CameraX and explain the changes”
- “Why is audio missing from my CameraX video recording? Check the immutable builder pattern”
- “Add ML Kit barcode scanning to my CameraX ImageAnalysis pipeline with correct rotation handling”
- “Write Robolectric-free unit tests for my camera ViewModel using fakes instead of Mockito”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 13 original files, the Apache-2.0 licence and an attribution note.
camerax.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip camerax.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip camerax.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Point the agent at the specific reference file for your topic, such as low-light or foldables, so it loads the right detail.
- Review generated camera code on real devices, since hardware behavior varies across phones and foldables.
- Confirm the library versions in your project match the APIs the guidance describes.
What's inside
- references/camera1-to-camerax.md
- references/camera2-to-camerax.md
- references/expert-blueprints.md
- references/foldables.md
- references/immutability.md
- references/low-light.md
- references/mlkit-spatial.md
- references/modern-apis.md
- references/testing.md
- references/thermals.md
- references/wear-os.md
- references/xr.md
- SKILL.md
Redistributed unmodified from android/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.