build-tooling

build-tooling is a cursor rule for Cursor from RanaNadeemAslam/android-ai-skills. It costs 0 tokens per session (2,060 once invoked), scanned A, original, MIT.

A set of Android build-system instructions for Gradle Kotlin projects. It covers dependency version catalogs, code generation, reusable build conventions, app modules, and release shrinking.

In plain words
What is it for?
Use it when setting up or reviewing Android build files, centralizing library versions, organizing modules, configuring KSP, or preparing optimized release builds.
Why use it?
It keeps build configuration consistent and makes dependency updates and multi-module projects easier to manage.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when setting up or reviewing Android build files, centralizing library versions, organizing modules, configuring KSP, or preparing optimized release builds.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/rananadeemaslam/android-ai-skills/build-tooling
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.

Clone the repo
git clone --depth 1 https://github.com/RanaNadeemAslam/android-ai-skills

Made for: Cursor.

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 build-tooling

README.md
[![agentmods](https://agentmods.dev/badge/rules/rananadeemaslam/android-ai-skills/build-tooling.svg)](https://agentmods.dev/rules/rananadeemaslam/android-ai-skills/build-tooling)
Your own site
<a href="https://agentmods.dev/rules/rananadeemaslam/android-ai-skills/build-tooling"><img src="https://agentmods.dev/badge/rules/rananadeemaslam/android-ai-skills/build-tooling.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,060 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.00000 $0.02060
Opus 5 $0.00000 $0.01030
Sonnet 5 $0.00000 $0.00412
Haiku 4.5 $0.00000 $0.00206

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

Security

Grade A, and why

build-tooling 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 8d 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.

cursor/rules/build-tooling.mdc · 236 lines

How it starts

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

You are an expert in Android build systems. Use Gradle Kotlin DSL, version catalogs, and convention plugins. Optimize for build speed and maintainability.

Gradle Kotlin DSL

DO:

  • Use .gradle.kts (Kotlin DSL) for all build files
  • Use libs.versions.toml for centralized dependency management

DON'T:

  • Use Groovy .gradle files in new projects
  • Hardcode dependency versions in build files

Version Catalog

Source: https://developer.android.com/build/migrate-to-catalogs

DO:

  • Define all dependencies in gradle/libs.versions.toml:
[versions]
kotlin = "2.1.0"
compose-bom = "2025.04.00"
hilt = "2.51.1"
room = "2.7.1"
coroutines = "1.10.1"
ksp = "2.1.0-1.0.29"

[libraries]
compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose-bom" }
compose-ui = { group = "androidx.compose.ui", name = "ui" }
compose-material3 = { group = "androidx.compose.material3", name = "material3" }
compose-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
lifecycle-runtime-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version = "2.9.0" }
hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "hilt" }
hilt-compiler = { group = "com.google.dagger", name = "hilt-android-compiler", version.ref = "hilt" }
hilt-navigation-compose = { group = "androidx.hilt", name = "hilt-navigation-compose", version = "1.2.0" }
room-runtime = { group = "androidx.room", name = "room-runtime", version.ref = "room" }
room-ktx = { group = "androidx.room", name = "room-ktx", version.ref = "room" }
room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" }
datastore-preferences = { group = "androidx.datastore", name = "datastore-preferences", version = "1.1.4" }
kotlinx-coroutines-android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutines" }
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version = "1.8.0" }
coil-compose = { group = "io.coil-kt.coil3", name = "coil-compose", version = "3.1.0" }

[plugins]
android-application = { id = "com.android.application", version = "8.9.0" }
android-library = { id = "com.android.library", version = "8.9.0" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
room = { id = "androidx.room", version.ref = "room" }
  • Reference with libs.xyz in build files:
dependencies {
    implementation(platform(libs.compose.bom))
    implementation(libs.compose.ui)
    implementation(libs.compose.material3)
    implementation(libs.hilt.android)
    ksp(libs.hilt.compiler)
}

Read the full file on GitHub · 236 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. 8d ago First seen · 236 lines · 0 tokens per session scan A be5a5ae6ee4d

Subscribe to this mod's changes

build-tooling is a cursor rule published in the GitHub repository RanaNadeemAslam/android-ai-skills (6 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,060 tokens. 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.