Drjacky

android-kotlin-compose

5
1
# Install this skill:
npx skills add Drjacky/claude-android-ninja

Or install specific skill: npx add-skill https://github.com/Drjacky/claude-android-ninja

# Description

Create production-quality Android applications following Google's official Android architecture guidance with Kotlin, Jetpack Compose, MVVM architecture, Hilt dependency injection, Room database, and multi-module architecture. Triggers on requests to create Android projects, modules, screens, ViewModels, repositories, or when asked about Android architecture patterns and best practices.

# SKILL.md


name: android-kotlin-compose
description: Create production-quality Android applications following Google's official Android architecture guidance with Kotlin, Jetpack Compose, MVVM architecture, Hilt dependency injection, Room database, and multi-module architecture. Triggers on requests to create Android projects, modules, screens, ViewModels, repositories, or when asked about Android architecture patterns and best practices.


Android Kotlin Compose Development

Create production-quality Android applications following Google's official architecture guidance and best practices.
Use when building Android apps with Kotlin, Jetpack Compose, MVVM architecture, Hilt dependency injection, Room database, or Android multi-module projects.
Triggers on requests to create Android projects, screens, ViewModels, repositories, feature modules, or when asked about Android architecture patterns.

Quick Reference

Task Reference File
Project structure & modules modularization.md
Architecture layers (Presentation, Domain, Data, UI) architecture.md
Jetpack Compose patterns compose-patterns.md
Kotlin best practices kotlin-patterns.md
Coroutines best practices coroutines-patterns.md
Gradle & build configuration gradle-setup.md
Testing approach testing.md
Runtime permissions android-permissions.md
Kotlin delegation patterns kotlin-delegation.md
Crash reporting crashlytics.md
StrictMode guardrails android-strictmode.md
Multi-module dependencies dependencies.md
Code quality (Detekt) code-quality.md
Design patterns design-patterns.md
Android performance benchmarking android-performance.md

Workflow Decision Tree

Creating a new project?
โ†’ Start with templates/settings.gradle.kts.template for settings and module includes
โ†’ Start with templates/libs.versions.toml.template for the version catalog
โ†’ Read modularization.md for structure and module types
โ†’ Use gradle-setup.md for build files and build logic

Configuring Gradle/build files?
โ†’ Use gradle-setup.md for module build.gradle.kts patterns
โ†’ Keep convention plugins and build logic in build-logic/ as described in gradle-setup.md

Setting up code quality / Detekt?
โ†’ Use code-quality.md for Detekt convention plugin setup
โ†’ Start from templates/detekt.yml.template for rules and enable Compose rules

Adding or updating dependencies?
โ†’ Follow dependencies.md
โ†’ Update templates/libs.versions.toml.template if the dependency is missing

Adding a new feature/module?
โ†’ Follow module naming in modularization.md
โ†’ Implement Presentation in the feature module
โ†’ Follow dependency flow: Feature โ†’ Core/Domain โ†’ Core/Data

Building UI screens/components?
โ†’ Read compose-patterns.md
โ†’ Always align Kotlin code with kotlin-patterns.md
โ†’ Create Screen + ViewModel + UiState in the feature module
โ†’ Use shared components from core/ui when possible

Writing any Kotlin code?
โ†’ Always follow kotlin-patterns.md
โ†’ Ensure practices align with architecture.md, modularization.md, and compose-patterns.md

Setting up data/domain layers?
โ†’ Read architecture.md
โ†’ Create Repository interfaces in core/domain
โ†’ Implement Repository in core/data
โ†’ Create DataSource + DAO in core/data

Setting up navigation?
โ†’ Follow Navigation Coordination in modularization.md
โ†’ Configure navigation graph in the app module
โ†’ Use feature navigation destinations and navigator interfaces

Adding tests?
โ†’ Use testing.md for patterns and examples
โ†’ Keep test doubles in core/testing

Handling runtime permissions?
โ†’ Follow android-permissions.md for manifest declarations and Compose permission patterns
โ†’ Request permissions contextually and handle "Don't ask again" flows

Sharing logic across ViewModels or avoiding base classes?
โ†’ Use delegation via interfaces as described in kotlin-delegation.md
โ†’ Prefer small, injected delegates for validation, analytics, or feature flags

Adding crash reporting / monitoring?
โ†’ Follow crashlytics.md for provider-agnostic interfaces and module placement
โ†’ Use DI bindings to swap between Firebase Crashlytics or Sentry

Enabling StrictMode guardrails?
โ†’ Follow android-strictmode.md for app-level setup and Compose compiler diagnostics
โ†’ Use Sentry/Firebase init from crashlytics.md to ship StrictMode logs

Choosing design patterns for a new feature, business logic, or system?
โ†’ Use design-patterns.md for Android-focused pattern guidance
โ†’ Align with architecture.md and modularization.md

Measuring performance regressions or startup/jank?
โ†’ Use android-performance.md for Macrobenchmark setup and commands
โ†’ Keep benchmark module aligned with benchmark build type in gradle-setup.md

# README.md

Android Agent Skill

This repository is an Agent Skill package for Android development with Kotlin and Jetpack Compose.
It provides a structured set of instructions, templates, and references that help agents build
productionโ€‘quality Android apps consistently and efficiently.

Learn more about the Agent Skills format here: agentskills.io

What This Skill Covers

  • Modular Android architecture (featureโ€‘first, core modules, strict dependencies)
  • Domain/Data/UI layering patterns with authโ€‘focused examples
  • Jetpack Compose patterns, state management, and adaptive UI
  • Navigation3 guidance and navigation coordination
  • Gradle/build conventions and version catalog usage
  • Testing practices with test doubles and Google Truth
  • Dependency management rules and templates

Key Files

  • SKILL.md - entry point and workflow decision tree
  • references/architecture.md - architecture principles, data/domain layers, and flows
  • references/modularization.md - module structure and navigation wiring
  • references/compose-patterns.md - Compose UI patterns and best practices
  • references/kotlin-patterns.md - Kotlin best practices (must-read for Kotlin code)
  • references/coroutines-patterns.md - coroutines best practices and patterns
  • references/gradle-setup.md - build logic, conventions, and build files
  • references/code-quality.md - Detekt setup and code quality rules
  • references/android-permissions.md - runtime permissions and best practices
  • references/kotlin-delegation.md - delegation patterns and composition guidance
  • references/crashlytics.md - crash reporting with modular provider swaps
  • references/android-strictmode.md - StrictMode guardrails and Compose stability
  • references/testing.md - testing patterns and examples
  • references/dependencies.md - dependency rules and version catalog guidance
  • references/android-performance.md - benchmarking and performance checks
  • references/design-patterns.md - Android-focused design patterns
  • templates/detekt.yml.template - Detekt rules baseline
  • templates/libs.versions.toml.template - version catalog source of truth
  • templates/settings.gradle.kts.template - Gradle settings source of truth

Scope

This skill is focused on Android app development using:
- Kotlin
- Jetpack Compose
- Navigation3
- Material 3
- Hilt
- Room

Installation

1) Claude Code (manual)

Clone or download this repo, then place it in Claudeโ€™s skills folder and refresh skills.

~/.claude/skills/claude-android-ninja/
โ”œโ”€โ”€ SKILL.md
โ”œโ”€โ”€ references/
โ””โ”€โ”€ templates/

If you prefer projectโ€‘local skills, use .claude/skills/ inside your project.

2) OpenSkills CLI

OpenSkills can install any skill repo and generate the AGENTS/skills metadata for multiple agents.

npx openskills install drjacky/claude-android-ninja
npx openskills sync

Optional universal install (shared across agents):

npx openskills install drjacky/claude-android-ninja --universal

Contributing

Request Missing Best Practices

If you need a best practice topic or pattern that's missing from this SKILL, please create a feature request on GitHub. This helps us prioritize what to add next.

Create a Feature Request

Report Issues

Found a bug, outdated pattern, or incorrect guidance? Please report it so we can fix it.

Report a Bug

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.