android-java-bindings

android-java-bindings is a skill for Claude Code, Codex from dotnet/maui-labs. It costs 134 tokens per session (3,762 once invoked), scanned A, original, MIT.

A workflow for creating and repairing C# bindings for Java or Kotlin Android libraries. Bindings expose an existing Android library through a C# API for .NET Android or the Android side of a MAUI app.

In plain words
What is it for?
Use it for full AAR or JAR bindings, AndroidMavenLibrary projects, metadata changes, additions, and binding-generator errors. It covers issues such as missing APIs, duplicate members, listener types, and incompatible method signatures.
Why use it?
It addresses generated APIs that are missing or incorrect and errors caused by differences between Java or Kotlin declarations and C# declarations. It preserves the native library's contract instead of merely making the project compile.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for full AAR or JAR bindings, AndroidMavenLibrary projects, metadata changes, additions, and binding-generator errors. It covers issues such as missing APIs, duplicate members, listener types, and incompatible method signatures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dotnet/maui-labs/android-java-bindings
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dotnet/maui-labs --skill android-java-bindings
Clone the repo
git clone --depth 1 https://github.com/dotnet/maui-labs

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for android-java-bindings

README.md
[![agentmods](https://agentmods.dev/badge/skills/dotnet/maui-labs/android-java-bindings/github.svg)](https://agentmods.dev/skills/dotnet/maui-labs/android-java-bindings)
Your own site
<a href="https://agentmods.dev/skills/dotnet/maui-labs/android-java-bindings"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/android-java-bindings/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for android-java-bindings

Your own site · 80×15
<a href="https://agentmods.dev/skills/dotnet/maui-labs/android-java-bindings"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/android-java-bindings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,762 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00134 $0.03762
Opus 5.5 $0.00054 $0.01505
Sonnet 5.5 $0.00027 $0.00752
Haiku 4.5 $0.00013 $0.00376

Measured 13d ago against content hash 79b17ecfbddd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

android-java-bindings scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dotnet-maui-tooling/skills/android-java-bindings/SKILL.md · 329 lines

How it starts

The opening of the file, as written. The whole thing — 329 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Java and Kotlin bindings for C#

Purpose and scope

Create maintainable .NET for Android binding libraries from existing Java/Kotlin artifacts. Preserve the native contract and the requested C# API, not merely a successful build. These bindings can be consumed by .NET Android or the Android target of a MAUI app; they do not make an Android SDK cross-platform.

Use this workflow for direct bindings and generated-code troubleshooting. If the user only needs a small facade around a complex SDK, explain the tradeoff and use android-slim-bindings for wrapper construction. Do not silently replace an existing full binding with a smaller wrapper or remove required APIs.

Choose the entry point

  • New binding: follow the workflow from artifact inspection.
  • An existing binding error: start with the failing stage and repair recipes below. Do not scaffold a project or run Gradle unless dependency evidence calls for it.
  • A question with supplied signatures/errors: give the concrete transform or addition and explain its limits using those facts. Do not search an empty workspace for hypothetical artifacts. Ask for missing declarations only when they affect the repair.

The core decisions and recipes are included here so routine troubleshooting does not depend on extra file reads. The references at the end provide deeper examples when needed; load only the relevant one, relative to this skill's base directory. If a reference cannot be read, state that limitation and use the guidance below rather than guessing metadata attributes or repeatedly trying unrelated paths.

Inputs

Determine from the workspace, artifacts, and user:

  • Exact Maven coordinates/version/repository, or local AAR/JAR and its provenance.
  • Required types, methods, callbacks, and whether an existing public API must stay compatible. Distinguish required coverage from optional APIs.
  • Binding project, SDK/workload/TFM, configuration, and supported Android versions.
  • For repairs: first error, generator warnings, diagnostic build log, metadata, additions, and generated declarations on both sides of the failing contract.
  • For Kotlin: JVM/Android artifact variant, Kotlin version, and source if available.

Read the full file on GitHub · 329 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 329 lines · 134 tokens per session scan A 79b17ecfbddd

Subscribe to this mod's changes

android-java-bindings is a skill published in the GitHub repository dotnet/maui-labs (226 stars, last pushed today), licensed MIT. It adds 134 tokens to every session and 3,762 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-03.

Related

Other skills, from other repositories

syncfusion-maui-toolkit-chips

Implements Syncfusion .NET MAUI Chips (SfChip or SfChipGroup). Use when working with chips, tags, tag controls, selection chips, input chips, or filter chips in .NET MAUI applications. Covers chip types, chip customization, chip events, chip selection, chip groups, remove chips, close button chips, and chip data…

syncfusion/maui-toolkit-ui-components-skills · 81 tokens

syncfusion-maui-toolkit-otp-input

Implement OTP Input controls in .NET MAUI applications for authentication flows. Covers input types (Number, Text, Password), styling modes (Outlined, Filled, Underlined), event handling, value binding, validation patterns, and accessibility. Use this skill when building SMS/email OTP verification, multi-step…

syncfusion/maui-toolkit-ui-components-skills · 75 tokens

maui

Build, review, or migrate .NET MAUI applications across Android, iOS, macOS, and Windows with correct cross-platform UI, platform integration, and native packaging assumptions. USE FOR: working on cross-platform mobile or desktop UI in .NET MAUI; integrating device capabilities, navigation, or platform-specific code…

managedcode/dotnet-skills · 121 tokens

uno-platform

Build cross-platform .NET applications with Uno Platform targeting WebAssembly, iOS, Android, macOS, Linux, and Windows from a single XAML/C# codebase. USE FOR: building cross-platform apps from a single C# and XAML codebase; targeting WebAssembly, iOS, Android, macOS, Linux, and Windows simultaneously; migrating WPF…

managedcode/dotnet-skills · 129 tokens

compose-multiplatform

Use when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform ViewModel/navigation/Koin. NOT a single-platform native build (that is kotlin-android / swift-ios), and NOT Dart/Flutter cross-platform UI…

ericrisco/rsc-harness · 80 tokens

mapkit

MapKit + CoreLocation for iOS (iOS 17–26 era). SwiftUI Map with MapContentBuilder (Marker / Annotation / MapPolyline / MapPolygon / MapCircle / UserAnnotation), MapCameraPosition & MapCamera with onMapCameraChange, mapStyle / mapControls / selection, MapReader + MapProxy coordinate conversion, and Look Around…

TalissonVitorino/kmp-ios-skills · 246 tokens