Pular para o conteúdo
Skillpedia
Agentes10 mil · #11910

appfunctions

O que ela faz

Esta skill analisa um app Android para encontrar tarefas comuns do usuário, como criar uma nota ou tocar mídia, e as transforma em AppFunctions. Depois de expostas, agentes de IA e comandos de voz podem executá-las sem abrir o app. É para desenvolvedores Android que querem que o app funcione com agentes do sistema.

Quando usar

  • ✓Quando você quer que agentes de IA ou comandos de voz criem uma nota ou toquem mídia no seu app Android.
  • ✓Quando você quer descobrir quais ações do seu app valem a pena ser expostas a agentes do sistema.
  • ✓Quando você precisa de código Kotlin e descrições claras para que os agentes escolham e chamem suas funções corretamente.

Link da skill

https://github.com/android/skills/blob/main/device-ai/appfunctions/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/android/skills/blob/main/device-ai/appfunctions/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Encontre no meu app Android as principais tarefas que devo expor como AppFunctions para agentes de IA.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill analisa o app para encontrar fluxos de trabalho do usuário e escreve código Kotlin com a biblioteca androidx.appfunctions. Ela também melhora as descrições para que os agentes entendam quando usar cada função.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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 AppFunctionServiceEntryPoint architecture 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 legacy AppFunctionConfiguration.Provider implementations, @AppFunction annotations, or appfn:description attributes, 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

Perguntas frequentes

Que versão do Android meu app precisa?

O app precisa mirar o SDK 36 ou mais novo e compilar com o SDK 37 ou mais novo, já que as AppFunctions fazem parte do Android 16 e de versões posteriores.

Posso testar as funções sem a tela do app?

Sim. A skill inclui comandos ADB para teste e avaliação locais.

Ela muda a aparência das telas do app?

Não. O objetivo é expor os fluxos de trabalho aos agentes para que rodem sem abrir as telas do app.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
10 mil
Posição no ranking
#11910
Licença
Apache-2.0
Atualizada em
29/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas