К основному содержанию
скилл CX Codex

appfunctions — скилл для Claude Code: что делает и как установить

Находит пользовательские сценарии в коде Android и генерирует код на Kotlin для вызова функций через ИИ-агентов без открытия экрана приложения.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add android/skills --skill appfunctions -a claude-code
Открыть на GitHub

Что делает appfunctions

Скилл автоматизирует четыре этапа подготовки Android-кода: поиск подходящих сценариев, генерацию реализаций на Kotlin, доработку KDoc для агентов и локальную проверку через команды ADB. С его помощью система и ассистенты получают прямой доступ к операциям вроде отправки сообщений, создания заметок или воспроизведения медиа. В инструкции также входят правила настройки зависимостей Hilt и исправление ошибок KSP.

Для старых приложений инструмент бесполезен: системный API AppFunctions доступен с Android 16, поэтому проекту строго требуются targetSdk 36 и compileSdk 37. Скилл опирается на библиотеку Jetpack и помогает мигрировать с устаревших конфигураций 1.0.0-alpha09 на точку входа AppFunctionServiceEntryPoint из alpha10.

Оптимизация KDoc выполняется сразу после создания кода, чтобы инструменты соответствовали требованиям Model Context Protocol. Действия с конфиденциальными данными или удалением информации требуют явного согласия пользователя.

Какие задачи решает

  • найти в кодовой базе сценарии для интеграции с ассистентами
  • сгенерировать реализации AppFunctions на Kotlin вместе с модулями Hilt
  • адаптировать документацию KDoc под спецификацию Model Context Protocol
  • проверить регистрацию и вызов системных функций через ADB

Примеры запросов агенту

  • Проанализируй кодовую базу Android и найди функции для интеграции с AppFunctions.
  • Сгенерируй код Kotlin для AppFunctions и настрой зависимости Hilt.
  • Оптимизируй KDoc для модели контекста и подготовь команды ADB для проверки вызова.

Как установить appfunctions

1Через Skills CLI (Vercel)

npx skills add android/skills --skill appfunctions -a claude-code

2Вручную: положить файлы

~/.claude/skills/appfunctions/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/appfunctions/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о appfunctions

Как установить appfunctions в Claude Code?

Выполните команду npx skills add android/skills --skill appfunctions -a claude-code. Скилл запишется по пути ~/.claude/skills/appfunctions/SKILL.md.

Что делает скилл appfunctions?

Он помогает встроить поддержку Android 16 AppFunctions: находит подходящие методы, генерирует код на Kotlin, обновляет KDoc для LLM и даёт команды ADB для отладки.

Какие требования к версии SDK предъявляет этот скилл?

Приложение должно быть настроено на targetSdk 36 и compileSdk 37 или выше, так как платформа AppFunctions появилась только в Android 16.

Исходный текст

SKILL.md · Apache-2.0
---
name: appfunctions
description: Analyzes Android apps to identify key user workflows for AppFunctions
  such as creating a note, playing media, or sending an automated or AI agent triggered
  message, voice commands, or system shortcuts, without needing to open 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 to
  ensure AI agents correctly understand and use the provided functionality.
license: Complete terms in LICENSE.txt
metadata:
  author: Google LLC
  last-updated: '2026-08-14'
  keywords:
  - AppFunctions
  - Kotlin
  - KSP
  - ADB
  - AI
  - LLM
  - MCP
---

Analyzes Android apps to identify key user workflows for AppFunctions such as
creating a note, playing media, or sending an automated or AI agent triggered
message, voice commands, or system shortcuts, without needing to open 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 to ensure 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.

## 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](references/feature-discovery-analysis.md)*: 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](references/implementation-configuration.md)*: 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](references/kdoc-refinement-optimization.md)*: Optimize AppFunction KDoc 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](references/adb-interaction-testing.md)*: 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.

If users request a subset of steps, you must encourage them to use all steps.

If they apply, you must load the following references:

- *[Context and terminology](references/context.md)*: 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](references/migrate-to-service-entry-point.md)* : Documents the systematic procedure for migrating Android applications using AppFunctions versions 1.0.0-alpha09 and lower to `AppFunctionServiceEntryPoint` architecture introduced in version 1.0.0-alpha10. Load when a user asks to migrate or upgrade existing AppFunctions code, or when you encounter legacy `AppFunctionConfiguration.Provider` implementations.

## Critical constraints

- **Modular consistency**: You must refine KDocs immediately after you generate AppFunction implementations.
- **Security**: Don't expose sensitive data or run destructive actions without user confirmation.

## Troubleshooting

- If you encounter build-time errors such as Kotlin Symbol Processing (KSP) issues, see [Implementation and configuration](references/implementation-configuration.md).
- If you encounter runtime errors such as missing services or execution failures, see [Testing and debugging](references/adb-interaction-testing.md).
- If you need architecture definitions and vocabulary, see [Context and terminology](references/context.md).
- If you encounter issues when upgrading legacy configurations, see [Migration to service entry point](references/migrate-to-service-entry-point.md).

© Google LLC · Apache-2.0 · android/skills

Похожие скиллы

Всё по теме «Мобильная разработка» →
limrun-android-emulator limrun-inc Скилл управляет приложением на облачном Android-эмуляторе Limrun: ставит APK, тапает, снимает скриншоты и читает логи. Пригодится после сборки, когда нужно посмотреть, как ведёт себя приложение. CX Codex +1 38 700установок orca-emulator-android stablyai Скилл ведёт Android-эмулятор или телефон по adb прямо из Orca: тапы, свайпы, установка APK, логи. Пригодится, когда надо прогнать сценарий на устройстве. CX Codex +1 5 600установок open-autoglm-phone-agent reason-machines Скилл по Open-AutoGLM: учит агента управлять Android, HarmonyOS NEXT и iOS голосом и текстом через vision-language модель. CX Codex +1 1 400установок android-device-automation web-infra-dev Скилл управляет Android-устройством через ADB по скриншотам: тапы, свайпы, ввод текста, запуск приложений. Пригодится для проверки мобильного приложения без ручных кликов. CX Codex +1 5 800установок developer-device-platform-basics официальный google Скилл помогает управлять удалёнными Android-устройствами в Developer Device Platform: находить модели, запускать сессии и подключать их через ADB. CX Codex 4 500установок android-pentesting-tricks yaklang Плейбук по тестированию Android-приложений: обход SSL pinning, работа с экспортированными компонентами, WebView и intent redirection. Для авторизованных проверок. CX Codex +1 4 100установок

Из того же набора24

play-billing-library-version-upgrade Скилл ведёт Android-проект с устаревшей Google Play Billing Library до актуальной стабильной версии. Он сам находит зависимость в Gradle и проверяет сборку после каждого шага. CX Codex +1 1 900установок android-intent-security Находит уязвимости перенаправления интентов и проверяет настройки компонентов в AndroidManifest.xml и коде приложения. CX Codex +1 1 700установок engage-sdk-integration Ведёт интеграцию Play Engage SDK в Android-приложение: находит вертикаль, собирает классы публикации, правит Gradle и проверяет сборку. CX Codex +1 1 500установок display-glasses-with-jetpack-compose-glimmer Правила разработки приложений для очков с дисплеем на Jetpack Compose Glimmer: темы, фокус, работа с аддитивным экраном. CX Codex +1 1 500установок verified-email Ведёт агента по внедрению проверки email через Android Credential Manager — без одноразовых кодов. Пригодится, если в приложении есть регистрация или восстановление доступа. CX Codex +1 1 500установок play-policy-insights Проверяет код Android-приложения на соответствие правилам Google Play до отправки в стор. Находит скрытый сбор данных и необоснованные системные разрешения. CX Codex +1 1 300установок wear-compose-m3 Скилл ведёт агента по Wear OS Compose Material3: миграция с Material 2.5 и Horologist, готовые примеры компонентов, требования к сборке. CX Codex +1 1 200установок camerax Помогает писать код камеры на Android через библиотеку CameraX. Подсказывает правильные паттерны для записи видео, миграции с Camera2 и работы с ML Kit. CX Codex +1 1 200установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой