appfunctions

Discover and implement Android AppFunctions with Kotlin, KDoc, and ADB testing.

1|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/premex-ab/claude-marketplace --skill appfunctions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: appfunctions
Source: https://github.com/premex-ab/claude-marketplace/tree/main/plugins/android-appfunctions/skills/appfunctions
Command: npx skills add https://github.com/premex-ab/claude-marketplace --skill appfunctions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the challenge of making Android user workflows discoverable and executable by AI agents without relying on fragile UI automation.

Core Features & Use Cases

  • Workflow Discovery for AppFunctions: Identifies high-value app features (e.g., creating notes, playing media, or sending messages) that can be expressed as actionable AppFunctions.
  • Kotlin AppFunction Generation: Produces Kotlin implementations that expose workflows to on-device system agents and refine agent-readable KDoc.
  • Agent-Aware ADB Testing: Enables local evaluation and debugging by listing and invoking registered AppFunctions via ADB using the function metadata constraints.

Quick Start

Analyze my Android app and generate AppFunctions for the top user workflows, including agent-ready KDoc, plus ADB commands to test listing and executing those functions.

Frequently Asked Questions about appfunctions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make Android app workflows discoverable by AI agents without UI automation?

Android app workflows are made discoverable by transforming app code into executable AppFunctions. This approach exposes features like creating notes or playing media directly to on-device system agents, bypassing fragile UI automation.

What are the Kotlin and SDK requirements for implementing Android AppFunctions?

Implementing Android AppFunctions requires a targetSdk of at least 36 and a compileSdk of 37 or higher. The implementation uses Kotlin with KSP, requires appfunctions compiler aggregation to be enabled, and enforces AppFunctionContext as the first parameter.

How do I test and execute registered AppFunctions locally via ADB?

You test and execute registered AppFunctions locally via ADB using JSON-safe commands. These ADB commands list and invoke functions while strictly following the constraints defined in each function's metadata and agent-readable KDoc.

How do I optimize Kotlin KDoc for on-device agents and MCP?

Kotlin KDoc is optimized for on-device agents and MCP by refining it to be agent-readable. This involves structuring the documentation to clearly define workflow constraints and action parameters for system agents discovering the AppFunctions.

What's the best way to identify high-value app features for AppFunction generation?

The best way to identify high-value app features for AppFunction generation is through workflow discovery. This process analyzes an Android app to find user actions, such as sending messages or playing media, that can be expressed as actionable, agent-executable functions.

Why does my AppFunction implementation require an AppFunctionContext parameter?

Your AppFunction implementation requires an AppFunctionContext parameter to enforce a standard execution environment. mandating it as the first parameter ensures the function correctly interfaces with the on-device system agent infrastructure.