android-kmp-architecture

android-kmp-architecture is a skill for Claude Code, Codex from jxoesneon/Ciel. It costs 30 tokens per session (552 once invoked), scanned A, original, Apache-2.0.

An architecture guide for Android and Kotlin Multiplatform projects. Kotlin Multiplatform lets shared Kotlin code run across platforms, while this guide separates business logic, data access, user-interface code, and platform setup.

In plain words
What is it for?
Use it to organize app, domain, data, presentation, and core modules; define dependency direction; and keep platform details out of shared business logic.
Why use it?
Clear module boundaries reduce unwanted dependencies and make shared code easier to test and reuse across platforms.

Skill for Claude CodeCodex

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

Good fit Use it to organize app, domain, data, presentation, and core modules; define dependency direction; and keep platform details out of shared business logic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jxoesneon/ciel/android-kmp-architecture
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 jxoesneon/Ciel --skill android-kmp-architecture
Clone the repo
git clone --depth 1 https://github.com/jxoesneon/Ciel

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-kmp-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/jxoesneon/ciel/android-kmp-architecture/github.svg)](https://agentmods.dev/skills/jxoesneon/ciel/android-kmp-architecture)
Your own site
<a href="https://agentmods.dev/skills/jxoesneon/ciel/android-kmp-architecture"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/android-kmp-architecture/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-kmp-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/jxoesneon/ciel/android-kmp-architecture"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/android-kmp-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 552 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.00030 $0.00552
Opus 5 $0.00015 $0.00276
Sonnet 5 $0.00006 $0.00110
Haiku 4.5 $0.00003 $0.00055

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

Security

Grade A, and why

android-kmp-architecture 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 10d 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.

skills/android-kmp-architecture/SKILL.md · 55 lines

What it actually says

CIEL ADAPTATION: Android & KMP Architecture (Structural Layer)

This skill formalizes the "Structural Layer" for Android and KMP projects. It enforces module isolation and dependency inversion to ensure cross-platform portability and testability.

project/
├── app/                  # Platform entry point (Android), DI wiring.
├── domain/               # Pure Kotlin. UseCases, Domain Models, Repository Interfaces.
├── data/                 # Repository Impls, DataSources (Room/SQLDelight), Network (Ktor).
├── presentation/         # ViewModels, UI State, Flow collection.
└── core/                 # Shared utilities, error types, base classes.

Dependency Rules (Immutable)

  1. Domain Isolation: domain MUST NEVER depend on data, presentation, or any platform framework.
  2. One-Way Flow: app -> presentation -> domain <- data.
  3. Mappers: Keep mappers (e.g., Entity -> Domain) as extension functions in the data layer.

Core Patterns

  • UseCase: Single business operation. Use operator fun invoke for clean call sites.
  • Result/Try: Use a sealed interface (e.g., Result<T>) for all repository/use-case returns to avoid unchecked exceptions.
  • DI: Standardize on Koin (KMP-friendly) or Hilt (Android-only).

Anti-Patterns

  • Context Leaking: Passing Android Context or framework classes into the domain layer.
  • Fat ViewModels: Putting business logic in ViewModels instead of UseCases.
  • Circular Deps: Allowing domain to know about data implementations.
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. 10d ago First seen · 55 lines · 30 tokens per session scan A 2cb499da3705

Subscribe to this mod's changes

android-kmp-architecture is a skill published in the GitHub repository jxoesneon/Ciel (1 stars, last pushed 3d ago), licensed Apache-2.0. It adds 30 tokens to every session and 552 once invoked, about $0.0002 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.