Index of every page on this site: llms.txt
All skills
android avatar

/appfunctions

@7f7b217
by androidandroid/skills11k stars
703
Run it yourself

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, AppFunctionService, app_metadata.xml, appfn:instructions, adb shell cmd app_function, and legacy @AppFunction or AppFunctionConfiguration.Provider code. Don't use for building agents that call AppFunctions or for remote MCP servers.

Use this Skill: https://skilld.dev/gh/android/skills/appfunctions

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencescontext.md

≈404 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Defines the ubiquitous language for the Android AppFunctions skill suite.

Architecture and versioning

AppFunctionServiceEntryPoint API: This compile-time AppFunctions architecture was introduced in version 1.0.0-alpha10. You annotate a wrapper service extending AppFunctionService with @AppFunctionServiceEntryPoint. KSP then generates XML metadata and routes services at compile time.

Legacy manual provider API: This AppFunctions architecture applies to version 1.0.0-alpha09 and earlier. Applications implement AppFunctionConfiguration.Provider on the Application class. Methods require AppFunctionContext as the first parameter. Projects depend on a standalone appfunctions-service library. Version 1.0.0-alpha12 removed AppFunctionConfiguration and AppFunctionContext.

App description: The app-level text that agents read to understand the app's AppFunctions. It names the app's primary domain, lists its tasks, and states call order across functions. Write it in the appfn:instructions attribute of app_metadata.xml. Before 1.0.0-beta01, this attribute was appfn:description.

Patterns

Service entry point pattern: Version 1.0.0-alpha10 introduced this architectural pattern. You declare @AppFunctionDeclaration methods directly inside an abstract class extending AppFunctionService. Before 1.0.0-alpha13, this annotation was @AppFunction. This class uses @AppFunctionServiceEntryPoint, plus @AndroidEntryPoint when the app uses Hilt. These annotations let you inject data sources or repositories directly, without an intermediate business logic delegation layer.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warningtoday3 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    This skill facilitates the development and testing of Android AppFunctions. It can execute commands on connected Android devices and emulators via ADB, and it processes app metadata that could contain untrusted input. It includes instructions to mitigate potential risks associated with processing third-party content.

  • Socket6d

    No alerts

  • Snyktoday

    Risk: MEDIUM · 2 issues

Signed by skilld at 7f7b217. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 1 hour ago.

Activeupdated yesterday
Other metadata
metadata
{
  "author": "Google LLC",
  "last-updated": "2026-11-17",
  "keywords": [
    "AppFunctions",
    "Kotlin",
    "KSP",
    "ADB",
    "AI",
    "LLM",
    "MCP"
  ]
}

README badge

README badge for android/skills/appfunctions