gradle-patterns

gradle-patterns is a skill for Claude Code, Codex from TalissonVitorino/kmp-ios-skills. It costs 70 tokens per session (1,883 once invoked), scanned C, original, MIT.

A collection of common Gradle build patterns for Android. Gradle is the tool that configures projects, resolves libraries, and builds Android apps; the patterns include version catalogs, shared build plugins, and multiple modules.

In plain words
What is it for?
Use it to set up a version catalog, convention plugins, or a multi-module project. For detailed build-logic design or build-speed problems, the input points to other guidance.
Why use it?
It helps keep dependency versions and repeated build configuration organized across an Android project.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is // dependencyResolutionManagement.versionCatalogs { create("libs") { from(files("../gradle/libs.versions.toml")) } }.

Good fit Use it to set up a version catalog, convention plugins, or a multi-module project. For detailed build-logic design or build-speed problems, the input points to other guidance.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/TalissonVitorino/kmp-ios-skills
agentmods
npx agentmods add skills/talissonvitorino/kmp-ios-skills/gradle-patterns

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 gradle-patterns

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/talissonvitorino/kmp-ios-skills/gradle-patterns"><img src="https://agentmods.dev/badge/skills/talissonvitorino/kmp-ios-skills/gradle-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,883 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00070 $0.01883
Opus 5 $0.00035 $0.00941
Sonnet 5 $0.00014 $0.00377
Haiku 4.5 $0.00007 $0.00188

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

Security

Grade C, and why

gradle-patterns scanned grade C with 1 finding 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 12d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf ~/.gradle/caches
android/gradle-patterns/SKILL.md · 215 lines

How it starts

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

Gradle Build Patterns

Modern Gradle configuration for Android.

Version Catalog

# gradle/libs.versions.toml
[versions]
agp = "9.3.2"              # AGP 9.x has built-in Kotlin — see [plugins] note; AGP 9.3 needs Gradle 9.5+
kotlin = "2.4.10"          # still versions KGP-family plugins (Compose compiler); kotlin-android itself is gone
ksp = "2.3.11"              # KSP2 — decoupled from the Kotlin version number
compose-bom = "2026.08.00"
coroutines = "1.11.0"
koin = "4.2.2"             # Koin 4.x (major bump from 3.x)
ktor = "3.5.2"             # Ktor 3.x (major bump from 2.x)
# compose-compiler: removed. With Kotlin 2.0+ the Compose compiler ships as the
# org.jetbrains.kotlin.plugin.compose Gradle plugin (versioned with Kotlin) — see [plugins].
# A standalone compose-compiler catalog entry is obsolete.

[libraries]
# Compose BOM
compose-bom = { module = "androidx.compose:compose-bom", version.ref = "compose-bom" }
compose-ui = { module = "androidx.compose.ui:ui" }
compose-material3 = { module = "androidx.compose.material3:material3" }
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" } # debugImplementation only — never ships in release

# Koin
koin-android = { module = "io.insert-koin:koin-android", version.ref = "koin" }
koin-compose = { module = "io.insert-koin:koin-androidx-compose", version.ref = "koin" }

# Ktor Client
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
ktor-client-content-negotiation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktor" }
ktor-serialization-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor" }

# Build-logic classpath (convention plugins)
android-gradlePlugin = { module = "com.android.tools.build:gradle", version.ref = "agp" }
kotlin-gradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }

# Testing
junit5 = { module = "org.junit.jupiter:junit-jupiter", version = "6.1.3" } # JUnit 6 / Jupiter 6 — requires Java 17+
mockk = { module = "io.mockk:mockk", version = "1.14.11" }
turbine = { module = "app.cash.turbine:turbine", version = "1.2.1" }
coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }

[bundles]
compose = ["compose-ui", "compose-material3", "compose-ui-tooling-preview"]
ktor = ["ktor-client-core", "ktor-client-okhttp", "ktor-client-content-negotiation", "ktor-serialization-json"]
testing = ["junit5", "mockk", "turbine", "coroutines-test"]

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
# AGP 9 ships built-in Kotlin, enabled by default: do NOT apply org.jetbrains.kotlin.android —
# it fails with "Cannot add extension with name 'kotlin'". Temporary opt-out (removed in AGP 10):
# android.builtInKotlin=false + android.newDsl=false in gradle.properties.
# Kotlin 2.0+ Compose compiler plugin — still applied separately, versioned with Kotlin
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }

Read the full file on GitHub · 215 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. 12d ago First seen · 215 lines · 70 tokens per session scan C 7384ec5323ce

Subscribe to this mod's changes

gradle-patterns is a skill published in the GitHub repository TalissonVitorino/kmp-ios-skills (12 stars, last pushed 17d ago), licensed MIT. It adds 70 tokens to every session and 1,883 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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

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

cmp-new

Scaffold a new MOBILE app — Android + iOS from one Kotlin/Compose Multiplatform codebase — from a bare "create a mobile app" to a green, verified build. Guardrails first: if the user already chose a different framework (React Native, Expo, Flutter, SwiftUI, native), do NOT redirect them here; if they only asked a…

kvdm-co-pilot/create-cmp · 478 tokens

cmp-firebase-connect

Wire a freshly scaffolded CMP/KMP app to its OWN real Firebase project — the #1 post-scaffold manual step. Use this when the user wants to connect their app to Firebase, or asks "connect my app to firebase", "set up google-services.json", "wire firebase", "create a firebase project for this app", "replace the…

kvdm-co-pilot/create-cmp · 170 tokens

add-feature

Add a new conforming vertical-slice feature (Screen + ViewModel + UseCase + Repository + spec + tests + golden tree + nav route + DI wiring) to this Compose Multiplatform app, cloned deterministically from the project's configured exemplar feature (qa/approvals.json's exemplarFeature — home by default). Use this when…

kvdm-co-pilot/create-cmp · 169 tokens

cmp-audit

Adversarial audit of one subsystem of a Kotlin/Compose Multiplatform app against its spec AND against platform semantics — the class of defect desktop-tier tests cannot see (alarms, notifications, PendingIntents, reboot, process death, DST). Use this when the user says "audit the notifications", "double check X for…

kvdm-co-pilot/create-cmp · 157 tokens

add-screen

Add a presentation-only slice — Screen + ViewModel + tests + golden tree + spec + nav route — for an EXISTING entity/repository in this Compose Multiplatform app, cloned deterministically from the project's configured exemplar feature's presentation layer (qa/approvals.json's exemplarFeature — home by default).…

kvdm-co-pilot/create-cmp · 202 tokens