Agent skill

Aosp AI And Devices

by aospbooks in aospbooks/aosp-internal-book

AOSP Part XII — AI & Devices. An agent skill from aospbooks/aosp-internal-book.

Apache-2.0Auto-check passedFrontend & Design

Install Aosp AI And Devices

skills CLI
$ npx skills add aospbooks/aosp-internal-book --skill aosp-ai-and-devices -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aospbooks/aosp-internal-book aosp-ai-and-devices --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aospbooks/aosp-internal-book.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/_content/parts/ai-and-devices .claude/skills/aosp-ai-and-devices && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
aosp-ai-and-devices
GitHub stars
139
Token cost
~411 tokens
SKILL.md length
101 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
Apache-2.0

At a glance

AOSP Part XII — AI & Devices. An agent skill from aospbooks/aosp-internal-book.

  • Reasoning about on-device ML in AOSP
  • SKILL.md covers Chapters in this Part and When to load which chapter
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • The AppFunctions framework for assistant integration

What it does

Aosp AI And Devices is an agent skill from aospbooks/aosp-internal-book. AOSP Part XII — AI & Devices. Use when reasoning about on-device ML in AOSP, NNAPI, the AppFunctions framework for assistant integration, the Computer Control flow, CompanionDeviceManager, or virtual devices (virtual displays/inputs/cameras for cross-device experiences), or the NpuManager module for on-device neural accelerators (model-load admission control, the NDK ANpuBuffer surface, the android.hardware.npu HAL). Chapters 51–53.

Its SKILL.md is about 410 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Responsive design. It works with Android. The repository describes itself as: The book introduces the internal of AOSP. The licence is Apache-2.0.

When your agent uses it

  • Reasoning about on-device ML in AOSP
  • The AppFunctions framework for assistant integration
  • The Computer Control flow
  • CompanionDeviceManager

Example prompts

  • “/aosp-ai-and-devices”

What it can do on your machine

Read from SKILL.md and the folder at commit fc0b48b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Aosp AI And Devices loads about 411 tokens when it runs. Until then it costs about 114 tokens; SKILL.md has 101 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~114
When it runs · the whole SKILL.md, loaded when a task matches
~411

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aospbooks/aosp-internal-book at commit fc0b48b, republished under its Apache-2.0 licence (© aospbooks). 101 words, ~411 tokens.

Download SKILL.mdSave it as .claude/skills/aosp-ai-and-devices/SKILL.md (or your agent's skills folder).
name
aosp-ai-and-devices
description
AOSP Part XII — AI & Devices. Use when reasoning about on-device ML in AOSP, NNAPI, the AppFunctions framework for assistant integration, the Computer Control flow, CompanionDeviceManager, or virtual devices (virtual displays/inputs/cameras for cross-device experiences), or the NpuManager module for on-device neural accelerators (model-load admission control, the NDK ANpuBuffer surface, the android.hardware.npu HAL). Chapters 51–53.
metadata.author
utzcoz
metadata.version
2026.06.24
metadata.last-updated
2026-10-05

AOSP Part XII — AI & Devices

Newer cross-device and assistant-oriented surfaces: on-device ML wiring and the companion-device / virtual-device frameworks.

Chapters in this Part

  • 51-ai-appfunctions.md — on-device ML in AOSP, NNAPI, AppFunctions framework for assistant integration, Computer Control
  • 52-companion-virtual-device.md — CompanionDeviceManager, virtual displays/inputs/cameras, cross-device experiences
  • 53-npu-manager.md — the NpuManager mainline module for on-device neural accelerators: model-load admission control (budget/turn-taking policies, priorities), the Rust NDK ANpuBuffer/INpuAllocator, the android.hardware.npu HAL, and libwrapfd buffer protection

When to load which chapter

  • Question mentions NNAPI, AppFunctions, on-device ML, Computer Control → 51-ai-appfunctions.md
  • Question mentions CompanionDeviceManager, virtual display, virtual camera, virtual input → 52-companion-virtual-device.md
  • Question mentions NPU, neural accelerator, NpuManager, ANpuBuffer, model-load scheduling → 53-npu-manager.md

© aospbooks, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in agents/_content/parts/ai-and-devices of aospbooks/aosp-internal-book.

Open the folder on GitHubat commit fc0b48b

Compare with similar skills

Aosp AI And Devices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Aosp AI And Devices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Aosp AI And Devices this skillaospbooks/aosp-internal-book139—~411Automated safety check: PassApache-2.0
Material 3hamen/material-3-skill1.5k2 repos~7.8kAutomated safety check: PassMIT
Material Design 3 UI/UX Guideskydashnet/material-design-3-ui-skill138—~3kAutomated safety check: PassMIT
Adaptivesreichholf/dreamDroid1165 repos~3.1kAutomated safety check: PassGPL-3.0
Platform ConventionsOwl-Listener/designer-skills2.9k—~1.6kAutomated safety check: PassMIT
Android Mobile UI DesignModinMobileSTS/SlayTheAmethystModded406—~1kAutomated safety check: PassCustom licence

Similar skills

  • Material 3

    hamen/material-3-skill

    Implement Google's Material Design 3 (Material You) UI system.

    1.5k GitHub starsUsed in 2 repos~7.8k tokens
    Frontend & DesignAuto-check passed
  • Material Design 3 UI/UX Guide

    skydashnet/material-design-3-ui-skill

    Guides designing, reviewing or implementing interfaces that follow Google's Material Design 3 system: semantic tokens, component states, adaptive layout and accessibility.

    138 GitHub stars~3k tokensUpdated 10 days ago
    Frontend & DesignAuto-check passed
  • Adaptive

    sreichholf/dreamDroid

    Instructions 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.

    116 GitHub starsUsed in 5 repos~3.1k tokens
    Frontend & DesignAuto-check passed
  • Platform Conventions

    Owl-Listener/designer-skills

    Design to iOS and Android conventions — what each OS mandates, where they diverge, and when to unify.

    2.9k GitHub stars~1.6k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Android Mobile UI Design

    ModinMobileSTS/SlayTheAmethystModded

    Designs and reviews Android screens with attention to touch ergonomics, adaptive layouts, accessibility, state handling and an implementation handoff.

    406 GitHub stars~1k tokensUpdated 3 days ago
    MobileAuto-check passed
  • Android Compose Patterns

    makifbaysal/tasktrooper

    A skill your agent uses when building native Android with Jetpack Compose - stateless composables, state hoisting, ViewModel-owned state, edge-to-edge, predictive back, adaptive layout, atomic…

    112 GitHub stars~1.9k tokensUpdated yesterday
    MobileAuto-check passed

More from aospbooks/aosp-internal-book

All 17 skills in this repo
  • Book Writer

    aospbooks/aosp-internal-book

    Patterns for writing technical book chapters in Markdown with Mermaid diagrams, served via ProperDocs (a MkDocs fork).

    139 GitHub stars~3.1k tokensUpdated 6 days ago
    Auto-check passed
  • Aosp Version Diff

    aospbooks/aosp-internal-book

    Compare two AOSP releases (e.g. An agent skill from aospbooks/aosp-internal-book.

    139 GitHub stars~2k tokensUpdated 6 days ago
    Auto-check passed
  • Aosp Device Support

    aospbooks/aosp-internal-book

    AOSP Part XIV — Device Support. An agent skill from aospbooks/aosp-internal-book.

    139 GitHub stars~574 tokensUpdated 6 days ago
    Auto-check passed
  • Aosp Framework Core

    aospbooks/aosp-internal-book

    AOSP Part VI — Framework Core. An agent skill from aospbooks/aosp-internal-book.

    139 GitHub stars~628 tokensUpdated 6 days ago
    Auto-check passed
  • Aosp Framework Services

    aospbooks/aosp-internal-book

    AOSP Part VII — Framework Services. An agent skill from aospbooks/aosp-internal-book.

    139 GitHub stars~888 tokensUpdated 6 days ago
    Auto-check passed
  • Aosp Native Services And Media

    aospbooks/aosp-internal-book

    AOSP Part IV — Native Services & Media. An agent skill from aospbooks/aosp-internal-book.

    139 GitHub stars~606 tokensUpdated 6 days ago
    Auto-check passed

Works with

Questions about Aosp AI And Devices

What does Aosp AI And Devices do?

AOSP Part XII — AI & Devices. An agent skill from aospbooks/aosp-internal-book. Aosp AI And Devices is an agent skill from aospbooks/aosp-internal-book. AOSP Part XII — AI & Devices.

When should I use Aosp AI And Devices?

Aosp AI And Devices fits situations like: reasoning about on-device ML in AOSP; the AppFunctions framework for assistant integration; the Computer Control flow; companionDeviceManager.

How do I install Aosp AI And Devices in Claude Code?

Run `npx skills add aospbooks/aosp-internal-book --skill aosp-ai-and-devices -a claude-code`. Or copy the skill folder (agents/_content/parts/ai-and-devices in aospbooks/aosp-internal-book) into .claude/skills/aosp-ai-and-devices in your project. Claude Code loads it when a task matches its description.

How do I install Aosp AI And Devices in Codex?

Run `npx skills add aospbooks/aosp-internal-book --skill aosp-ai-and-devices -a codex`. Or copy the skill folder (agents/_content/parts/ai-and-devices in aospbooks/aosp-internal-book) into .agents/skills/aosp-ai-and-devices in your project. Codex loads it when a task matches its description.

Can I use Aosp AI And Devices in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aospbooks/aosp-internal-book --skill aosp-ai-and-devices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aosp-ai-and-devices, .gemini/skills/aosp-ai-and-devices, .github/skills/aosp-ai-and-devices and .opencode/skills/aosp-ai-and-devices in your project.

What does Aosp AI And Devices need to run?

SKILL.md names no scripts, command-line tools or credentials: Aosp AI And Devices is instructions for the agent only.

Does Aosp AI And Devices access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Aosp AI And Devices safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Aosp AI And Devices use?

Aosp AI And Devices is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Aosp AI And Devices use?

About 411 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Aosp AI And Devices?

Skills that share tags, products or a category with Aosp AI And Devices: Material 3 (hamen/material-3-skill, 1.5k stars), Material Design 3 UI/UX Guide (skydashnet/material-design-3-ui-skill, 138 stars), Adaptive (sreichholf/dreamDroid, 116 stars) and Platform Conventions (Owl-Listener/designer-skills, 2.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Aosp AI And Devices?

aospbooks (a GitHub organization) maintains it in aospbooks/aosp-internal-book, which has 139 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 5, 2026.

Source: aospbooks/aosp-internal-book on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.