gradle-patterns

gradle-patterns is a skill for Claude Code, Codex from TalissonVitorino/kmp-ios-skills. It costs 70 tokens per session (1,882 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,882 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.01882
Opus 5.5 $0.00028 $0.00753
Sonnet 5.5 $0.00014 $0.00376
Haiku 4.5 $0.00007 $0.00188

Measured 21d ago against content hash 2c84d4f81604, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 21d 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.5.1"              # AGP 9.x has built-in Kotlin — see [plugins] note; needs the matching Gradle — see the AGP release notes
kotlin = "2.4.21"          # still versions KGP-family plugins (Compose compiler); kotlin-android itself is gone
ksp = "2.3.13"              # KSP2 — decoupled from the Kotlin version number
compose-bom = "2026.09.00"
coroutines = "1.11.0"
koin = "4.2.2"             # Koin 4.x (major bump from 3.x)
ktor = "3.6.1"             # 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. 21d ago Changed 2c84d4f81604
  2. 3mo 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 (16 stars, last pushed 19d ago), licensed MIT. It adds 70 tokens to every session and 1,882 once invoked, about $0.0003 per session on Opus 5.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

gradle-patterns compared with skills from other repositories

gradle-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gradle-patternsTalissonVitorino/kmp-ios-skillsSkill1619d agoMITC70Claude Code, Codex
compose-multiplatformericrisco/rsc-harnessSkill6825d agoMITA80Claude Code, Codex
cmp-firebase-connectkvdm-co-pilot/create-cmpSkill07d agoMITA195Claude Code
add-featurekvdm-co-pilot/create-cmpSkill07d agoMITA169Claude Code
cmp-auditkvdm-co-pilot/create-cmpSkill07d agoMITA157Claude Code
add-screenkvdm-co-pilot/create-cmpSkill07d agoMITA202Claude Code
add-repositorykvdm-co-pilot/create-cmpSkill07d agoMITA181Claude Code