appfunctions
Что он делает
Этот скилл проверяет Android-приложение, находит частые задачи пользователя, например создание заметки или воспроизведение медиа, и превращает их в AppFunctions. После этого ИИ-агенты и голосовые команды могут выполнять их без открытия приложения. Он нужен Android-разработчикам, которые хотят, чтобы приложение работало с системными агентами.
Когда использовать
- ✓Когда вы хотите, чтобы ИИ-агенты или голосовые команды создавали заметку или воспроизводили медиа в вашем Android-приложении.
- ✓Когда нужно понять, какие действия приложения стоит открыть для системных агентов.
- ✓Когда нужен код на Kotlin и понятные описания, чтобы агенты правильно выбирали и вызывали ваши функции.
Ссылка на скилл
https://github.com/android/skills/blob/main/device-ai/appfunctions/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Найди главные задачи в моем Android-приложении, которые стоит открыть как AppFunctions для ИИ-агентов.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл анализирует приложение, находит пользовательские сценарии и пишет код на Kotlin с библиотекой androidx.appfunctions. Он также улучшает описания, чтобы агенты понимали, когда использовать каждую функцию.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Analyzes Android apps to identify key user workflows to expose as AppFunctions, such as creating a note, playing media, or sending a message, for AI agents, voice commands, and system shortcuts to run without opening the app UI.
Generates Kotlin code to expose these workflows to the Android system, allowing agents to discover and execute them on-device.
Also refines KDoc documentation and the app description so AI agents correctly understand and use the provided functionality.
Prerequisites
The app must targetSdk 36 or newer and use compileSdk 37 or newer as
AppFunctions, part of the Android platform API, are available from Android 16
onwards.
Always use the Jetpack library because it handles backward compatibility.
Use androidx.appfunctions:appfunctions and the KSP compiler
androidx.appfunctions:appfunctions-compiler, version 1.0.0-beta01 or later.
Workflows
This skill enables the caller to discover features that will be provided to system agents, implement these with AppFunctions, improve function description for agents, and use ADB commands for local evaluation and testing.
The full AppFunction development flow consists of these four steps:
- Step 1: Discovery: Analyze Android codebases to identify and recommend potential AppFunctions. Use this step when a user asks to "discover AppFunctions," "find features for AI," or "analyze my app for agentic tools."
- Step 2: Implementation and configuration: Generate Kotlin implementations of AppFunctions, manage system-wide configuration, and configure build dependencies. Use this step when a user asks to "implement AppFunctions," "set up the AppFunctions framework," or "configure Hilt for AppFunctions."
- Step 3: KDoc refinement: Optimize AppFunction KDoc and the app description for AI agents and Model Context Protocol. If a user asks to "write KDoc", "optimize for MCP", or "refactor tool descriptions for LLMs", use this step.
- Step 4: Testing and debugging: Provide commands to interact with AppFunctions using ADB for testing and debugging. If a user wants to "list app functions", "invoke an app function", or "verify app function registration" on a device, use this step.
When the user asks for a subset of the steps, run those steps and any step that the critical constraints require. Then list the skipped steps and ask whether to run them.
If they apply, you must load the following references:
- Context and terminology: Defines the ubiquitous language, architecture definitions, and design patterns across the AppFunctions skill suite. Load when you need to understand core architecture terminology or check the distinctions between modern and legacy AppFunctions APIs.
- Migration to service entry point : Migrates apps on AppFunctions 1.0.0-alpha09 or lower to the
AppFunctionServiceEntryPointarchitecture from 1.0.0-alpha10, and upgrades apps to 1.0.0-beta01. Load it when a user asks to migrate or upgrade existing AppFunctions code. When you find legacyAppFunctionConfiguration.Providerimplementations,@AppFunctionannotations, orappfn:descriptionattributes, load it and ask the user before you migrate.
Critical constraints
- Modular consistency: You must refine KDocs immediately after you generate AppFunction implementations.
- Security: Expose only safe, non-destructive tasks that the app's UI already offers on that form factor. Never give agents wide-ranging access to user data or system resources. Never require or return passwords, financial details, private keys, or other highly sensitive personal information.
- Descriptions: Describe what each function does, never how an agent must behave. Put call order across functions in the app description, not in function KDoc.
Troubleshooting
- If you encounter build-time errors such as Kotlin Symbol Processing (KSP) issues, see Implementation and configuration.
- If you encounter runtime errors such as missing services or execution failures, see Testing and debugging.
- If you need architecture definitions and vocabulary, see Context and terminology.
- If you encounter issues when upgrading AppFunct
Частые вопросы
Какая версия Android нужна моему приложению?
Приложение должно быть нацелено на SDK 36 или новее и собираться с SDK 37 или новее, так как AppFunctions входят в Android 16 и более поздние версии.
Можно ли проверить функции без экрана приложения?
Да. Скилл включает команды ADB для локального тестирования и оценки.
Меняет ли он внешний вид экранов приложения?
Нет. Его цель открыть сценарии для агентов, чтобы они могли работать без открытия экранов приложения.
Подробности
Оригинальное описание автора
Analyzes Android apps to find user workflows to expose as AppFunctions, such as creating a note, playing media, or sending a message. AI agents, voice commands, and system shortcuts then run them without opening the app UI. Generates Kotlin code with the androidx.appfunctions library, and refines KDoc and the app description so that agents choose and call functions correctly. Use this skill when discovering, implementing, documenting, testing, or upgrading AppFunctions in an Android app, including @AppFunctionDeclaration, @AppFunctionSerializable, @AppFunctionServiceEntryPoint, AppFunctionServ
repo: android/skills
Популярность
- Звёзды на GitHub
- 10k
- Место в рейтинге
- #11910
- Лицензия
- Apache-2.0
- Обновлён
- 29.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
agp-9-upgrade
10kПомогает агенту обновить Android-приложение до Android Gradle Plugin 9 и разобрать его несовместимые изменения. Не подходит для мультиплатформенных проектов.
camerax
10kПомогает агенту создавать камеру в Android-приложениях с CameraX: запись видео, аппаратное управление, ML Kit и эффекты Media3.
android-for-cars-parked-apps
10kПомогает агенту адаптировать Android-приложение для видео, игр или браузера, чтобы оно работало как припаркованное приложение в Android Auto и Android Automotive.
litert-lm
10kПомогает агенту создать Android-приложение, которое запускает открытую текстовую ИИ-модель прямо на устройстве, с помощью Kotlin API LiteRT-LM.
Похожие скиллы
add-model-provider
394kПомогает агенту подключить нового провайдера ИИ-моделей к OpenClaw безопасными командами, хранить ключи API не в открытом виде и провести живой тест.
acp-router
394kПомогает агенту передать задачу инструменту для программирования, например Claude Code или Cursor, через OpenClaw, чтобы работа шла в этом инструменте.
browser-automation
394kУчит агента пошагово управлять веб-страницами: входить в аккаунты, работать с вкладками и восстанавливаться, если страница перестала отвечать.