build-kotlin-android

build-kotlin-android is a skill for Claude Code from gaelic-ghost/socket. It costs 66 tokens per session (1,010 once invoked), scanned A, original, Apache-2.0.

A workflow for making changes to Android apps and libraries written mainly in Kotlin. It covers both Jetpack Compose, Android’s newer UI toolkit, and traditional XML-based screens.

In plain words
What is it for?
Use it to add or update screens, activities, fragments, services, background work, navigation, persistence connections, and related validation.
Why use it?
It helps changes fit the existing app structure, lifecycle, state handling, accessibility, resources, tests, and build checks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Codex.

Part of the android-dev-skills plugin — 6 skills shipped together

Good fit Use it to add or update screens, activities, fragments, services, background work, navigation, persistence connections, and related validation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gaelic-ghost/socket/build-kotlin-android
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 gaelic-ghost/socket --skill build-kotlin-android
Clone the repo
git clone --depth 1 https://github.com/gaelic-ghost/socket

Made for: Claude Code.

Or install android-dev-skills, the plugin that ships this one along with the rest of its 6 skills.

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 build-kotlin-android

README.md
[![agentmods](https://agentmods.dev/badge/skills/gaelic-ghost/socket/build-kotlin-android/github.svg)](https://agentmods.dev/skills/gaelic-ghost/socket/build-kotlin-android)
Your own site
<a href="https://agentmods.dev/skills/gaelic-ghost/socket/build-kotlin-android"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/build-kotlin-android/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 build-kotlin-android

Your own site · 80×15
<a href="https://agentmods.dev/skills/gaelic-ghost/socket/build-kotlin-android"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/build-kotlin-android.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,010 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.00066 $0.01010
Opus 5.5 $0.00026 $0.00404
Sonnet 5.5 $0.00013 $0.00202
Haiku 4.5 $0.00007 $0.00101

Measured 1mo ago against content hash 93edaf814ea8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-kotlin-android 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 1mo 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/android-dev-skills/skills/build-kotlin-android/SKILL.md · 97 lines

How it starts

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

Build Kotlin Android

Purpose

Implement Kotlin-first Android changes while preserving the repository's architecture, UI system, resources, and validation path.

The skill should be deep enough for common Compose and XML UI work without pretending to replace future specialized UI skills.

Source Check

Use repo-local Android files, checked-out dependency sources, and Dash.app docsets opportunistically when they cover exact Gradle, Java, or local command questions. Use official documentation as authority for Android APIs, Compose, AndroidX, lifecycle, resources, accessibility, and version-sensitive behavior:

Translate documentation into repository-specific code, resource, lifecycle, or validation decisions.

Implementation Workflow

  1. Inspect existing conventions:
    • package structure and module boundaries
    • activities, fragments, services, receivers, workers, or navigation owners
    • Compose versus XML/AppCompat ownership
    • ViewModel, state holder, repository, dependency injection, persistence, and background-work patterns
    • resource naming, theming, strings, dimensions, and accessibility conventions
    • existing tests and lint baselines
  2. Preserve architecture:
    • keep UI, state, domain, persistence, and platform boundaries consistent
    • add shared helpers only when they remove real duplication or match an existing local pattern
    • avoid new architecture layers unless the current shape cannot support the requested work
  3. Implement common Compose tasks:
    • compose screens from small functions with explicit state and callbacks
    • preserve state hoisting and unidirectional data flow
    • update previews when the repo already uses them
    • use modifiers, lists, forms, theming, and semantics consistently
    • keep navigation touchpoints aligned with existing navigation owners
  4. Implement common XML/AppCompat tasks:
    • update layouts, resources, themes, strings, and accessibility labels together
    • use view binding or data binding only when the repo already does
    • keep RecyclerView, adapter, fragment, and activity wiring aligned with existing code
    • avoid mixing Compose into XML screens unless the repo already has an interop pattern or the user approves it
  5. Implement platform work:
    • keep lifecycle-aware coroutines scoped correctly
    • keep permissions, manifests, and background work explicit
    • preserve nullability and Java interop annotations for public APIs
  6. Validate narrowly:
    • compile or assemble the affected module
    • run targeted unit tests
    • run lint for affected variants when UI/resources/platform APIs changed
    • hand off emulator/device checks to the Android testing plugin when needed

Read the full file on GitHub · 97 lines

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. 1mo ago First seen · 97 lines · 66 tokens per session scan A 93edaf814ea8

Subscribe to this mod's changes

build-kotlin-android is a skill published in the GitHub repository gaelic-ghost/socket (7 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 66 tokens to every session and 1,010 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

swiftui-max

Expert SwiftUI guidance for building UI on iOS, iPadOS, macOS, watchOS, tvOS, and visionOS. Use whenever writing, reviewing, refactoring, or debugging ANY SwiftUI code — views, view modifiers, layout, navigation (NavigationStack/SplitView, deep links), lists and scrolling, animation and transitions, state management…

Dev869/swift-tothemax · 271 tokens

apple-dev-conductor

Orchestrator for the swift-tothemax plugin — routes any Apple-platform development task (building an iOS/macOS app, adding a feature, preparing a release, fixing a rejection) to the right combination of skills in the correct order. Use this skill FIRST whenever a task spans more than one facet of Apple development …

Dev869/swift-tothemax · 156 tokens

apple-engineer-superpowers

Use when writing Swift code for Apple platforms - iOS, macOS, visionOS. Covers Swift 6 concurrency, actors, Sendable, async/await, SwiftUI, MVVM architecture, Metal GPU programming, RealityKit ECS, visionOS scenes, interpolation/animation, advanced collection types, property wrappers, Combine bridging, error handling…

piemonte/apple-engineer-superpowers · 82 tokens

kotlin-specialist

Provides idiomatic Kotlin implementation patterns including coroutine concurrency, Flow stream handling, multiplatform architecture, Compose UI construction, Ktor server setup, and type-safe DSL design. Use when building Kotlin applications requiring coroutines, multiplatform development, or Android with Compose.…

Jeffallan/claude-skills · 86 tokens

swift-expert

Builds iOS/macOS/watchOS/tvOS applications, implements SwiftUI views and state management, designs protocol-oriented architectures, handles async/await concurrency, implements actors for thread safety, and debugs Swift-specific issues. Use when building iOS/macOS applications with Swift 5.9+, SwiftUI, or async/await…

Jeffallan/claude-skills · 98 tokens

build-android-binary

Compile a PAM control's Android Kotlin module into the runtime-loadable DEX for a .ppmplugin. Creates a staged Gradle build with the pinned wrapper and react-android compile dependency, verifies manifest/module/package alignment and runtime-loading constraints, builds the release AAR, then runs d8 --min-api 24. Writes…

microsoft/power-platform-skills · 150 tokens