android-slim-bindings

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

A guide for connecting native Android libraries to .NET MAUI apps through thin C# bindings. Android libraries are often distributed as AAR or JAR files, while bindings make their APIs available to .NET code.

In plain words
What is it for?
Use it to wrap Java or Kotlin SDKs, resolve Maven and AndroidX dependencies, expose Android APIs to C#, and fix binding build errors.
Why use it?
It limits the wrapper to the Android features you need, which can make native-library integration easier to maintain.

Skill for Claude CodeCodex

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

Good fit Use it to wrap Java or Kotlin SDKs, resolve Maven and AndroidX dependencies, expose Android APIs to C#, and fix binding build errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dotnet/maui-labs/android-slim-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-slim-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-slim-bindings

README.md
[![agentmods](https://agentmods.dev/badge/skills/dotnet/maui-labs/android-slim-bindings.svg)](https://agentmods.dev/skills/dotnet/maui-labs/android-slim-bindings)
Your own site
<a href="https://agentmods.dev/skills/dotnet/maui-labs/android-slim-bindings"><img src="https://agentmods.dev/badge/skills/dotnet/maui-labs/android-slim-bindings.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,368 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 183
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00090 $0.03368
Opus 5 $0.00045 $0.01684
Sonnet 5 $0.00018 $0.00674
Haiku 4.5 $0.00009 $0.00337

Measured 8d ago against content hash af11d6104d05, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

android-slim-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 8d 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-slim-bindings/SKILL.md · 320 lines

How it starts

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

When to use this skill

Activate this skill when the user asks:

  • How do I create Android bindings for a native library?
  • How do I wrap an Android SDK for use in .NET MAUI?
  • How do I create slim bindings for Android?
  • How do I use Native Library Interop for Android?
  • How do I bind a Kotlin library to .NET?
  • How do I bind a Java library to .NET?
  • How do I integrate an AAR or JAR into .NET MAUI?
  • How do I create a Java/Kotlin wrapper for a native Android library?
  • How do I update Android bindings when the native SDK changes?
  • How do I fix Android binding build errors?
  • How do I expose native Android APIs to C#?
  • How do I resolve Maven dependencies for Android bindings?
  • How do I handle AndroidX dependencies in bindings?
  • How do I fix "Java dependency is not satisfied" errors?
  • How do I use AndroidMavenLibrary in my binding project?

Overview

This skill guides the creation of Native Library Interop (Slim Bindings) for Android. This modern approach creates a thin native Java/Kotlin wrapper exposing only the APIs you need from a native Android library, making bindings easier to create and maintain.

When to Use Slim Bindings vs Traditional Bindings

Scenario Recommended Approach
Need only a subset of library functionality Slim Bindings
Easier maintenance when SDK updates Slim Bindings
Prefer working in Java/Kotlin for wrapper Slim Bindings
Better isolation from breaking changes Slim Bindings
Complex libraries with many dependencies Slim Bindings
Need entire library API surface Traditional Bindings
Creating bindings for third-party developers Traditional Bindings
Already maintaining traditional bindings Traditional Bindings

Inputs

Parameter Required Example Notes
libraryName yes FirebaseMessaging, OkHttp Name of the native Android library to bind
bindingProjectName yes MyBinding.Android Name for the C# binding project
dependencySource no maven, aar, jar How the native library is distributed
targetFrameworks no net10.0-android Target frameworks (default: latest .NET Android)
exposedApis no List of specific APIs Which native APIs to expose (helps scope the wrapper)
mavenCoordinates no com.example:library:1.0.0 Maven coordinates if library is from Maven repository

Read the full file on GitHub · 320 lines

Files

What ships with it

2 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. 8d ago First seen · 320 lines · 90 tokens per session scan A af11d6104d05

Subscribe to this mod's changes

android-slim-bindings is a skill published in the GitHub repository dotnet/maui-labs (213 stars, last pushed today), licensed MIT. It adds 90 tokens to every session and 3,368 once invoked, about $0.0005 per session on Opus 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-08-30.

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