build-kotlin-android

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 CodeCodex

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.

agentmods
npx agentmods add skills/gaelic-ghost/socket/build-kotlin-android
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, Codex.

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. Scan, not verified.
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 $0.00066 $0.01010
Opus 5 $0.00033 $0.00505
Sonnet 5 $0.00013 $0.00202
Haiku 4.5 $0.00007 $0.00101

Measured 3d ago against content hash 93edaf814ea8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 7d 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. 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

ios-agent-skill

Expert iOS/Swift developer behavior for AI coding agents. Use when writing, reviewing, or refactoring Swift, SwiftUI, UIKit, or SwiftData code; when designing iOS app architecture (MVVM, Clean Architecture, coordinators, routing); when building UI that must meet Apple's Human Interface Guidelines, contrast, dark-mode…

Nagarjuna2997/ios-agent-skill · 167 tokens

build-swiftui-interface

Use when a coding agent must design, scaffold, implement, or verify an iOS or macOS SwiftUI interface with Apple-platform state, accessibility, availability, testing, and Xcode evidence.

memi-design/memi · 45 tokens

building-apple-platform-products

Builds, tests, and archives Swift packages and Xcode projects for Apple platforms. Use when running xcodebuild, swift build, or swift test commands, discovering schemes and targets, or selecting simulator destinations for iOS, macOS, tvOS, watchOS, or visionOS.

rhyean88/apple-platform-build-tools-claude-code-plugin · 64 tokens

app-intents

Writes and reviews Swift App Intents code that exposes app actions and data to Siri, Shortcuts, Spotlight, widgets, Control Center, and Apple Intelligence. Use when adding AppIntent, AppEntity, OpenIntent, AppShortcutsProvider, EntityQuery, Focus Filters, AssistantEntity/AssistantIntent schemas, on-screen awareness…

n0an/App-Intents-Agent-Skill · 99 tokens

swiftui-expert-skill

Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, macOS-specific APIs, and iOS 26+ Liquid Glass adoption. Use when building new SwiftUI features, refactoring existing views, reviewing code quality, or adopting modern SwiftUI patterns. Also triggers…

ProjectKumo/KumoApp · 164 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