drewid74/ai_skills/android-auto
Claude Code and agent skill by drewid74/ai_skills
- community
Checking that the SKILL.md file is still in the repository.
Android Auto and Automotive OS app development using the Car App Library: template-based UI architecture, voice interaction, safety restrictions (distraction optimization), session and screen lifecycle, navigation templates, media playback integration, and place list/map templates. Covers both the phone-projection (Android Auto) and native (AAOS) deployment targets. Use this when: building an Android Auto app, porting a phone app to the car screen, implementing voice commands for Auto, handling…
Install
npx vskill@latest install drewid74/ai_skills/android-autoSKILL.md
The same SKILL.md was published earlier as drewid74/ai_skills/android-auto.
Lineage: Built upon and expanded from the official Android group skills repository atgithub.com/android/skills. That repo covers areas whereevaluations show LLMs underperform on standard Android patterns. This skill extends thatfoundation into Android Auto / Automotive OS development — an area the official set does notcover.
Overview
Android Auto (phone projection) and Android Automotive OS (native in-vehicle) share the Car App Library (CAL). CAL enforces a template-based UI model — apps cannot draw arbitrary views on the car screen. Every screen must use one of the provided templates (ListTemplate, NavigationTemplate, PlaceListMapTemplate, MessageTemplate, etc.).
The library enforces Distraction Optimization (DO) automatically: limits list lengths, text lengths, and interaction depth while driving. Design for these constraints from the start.
Dependencies
Use app-automotive for AAOS native apps; app for phone-projection (Android Auto) apps. The API surface is identical — the difference is the deployment target.
Manifest Setup
CarAppService and Session
Session = one connection to the car host. Screen = one visible screen (analogous to Activity/Fragment). The car host manages the back stack of Screens.
Screen and Templates
Key rules:
onGetTemplate()is called on the main thread — never do I/O here.- Call
invalidate()when data changes to trigger a freshonGetTemplate()call. screenManager.push()to navigate forward;screenManager.pop()to go back.
Navigation Template (Turn-by-Turn)
For apps in the NAVIGATION category, use NavigationTemplate while routing is active:
Voice Interaction
Respond to voice queries by registering a SearchTemplate or handling intents in onCreateScreen:
For voice search within your app:
Distraction Optimization Rules
The car host enforces these automatically, but design for them:
- List items: max 6 while
DrivingStatus.MOVING; unlimited while parked - Row text: 2 lines max
- Input: no free-text input while driving — use search template with auto-complete
- Actions: max 4 in an
ActionStrip - Screen push depth: max 5 screens on the back stack
Check driving state in your UI logic:
Map Surface (Custom Drawing)
For drawing on the car map surface (NavigationTemplate):
Register via AppManager:
Testing
Use SessionController and ScreenController from car-app-testing:
Anti-Patterns
| Symptom | Root cause | Fix | |
|---|---|---|---|
| App not visible in Android Auto | Missing <category> in service intent-filter | Add correct androidx.car.app.category.* | |
| Template rejected by host | I/O or slow work in onGetTemplate() | Move all data loading off the main thread; call invalidate() after | |
| List items truncated to 6 while driving | DO enforcement | Expected behavior; design for 6-item lists | |
| Voice intent not received | Missing ACTION_NAVIGATE handling | Handle in onCreateScreen(intent) | |
| Screen push fails | Back stack depth > 5 | Pop screens before pushing when deep in navigation | |
SurfaceCallback never called | Forgot setSurfaceCallback in onCreateScreen | Call AppManager.setSurfaceCallback(this) in onStart | |
| AAOS app not installing | Missing automotive_app_desc.xml or wrong meta-data key | Verify both <meta-data> entries in manifest |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingandroid-auto/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/drewid74/ai_skills/android-auto)