android-gradle-logic

android-gradle-logic is a skill for Claude Code, Codex from new-silvermoon/awesome-android-agent-skills. It costs 24 tokens per session (779 once invoked), scanned A, original, Apache-2.0.

A guide for organizing Android's Gradle build configuration with reusable Convention Plugins and Version Catalogs. Gradle is the tool that builds the app; these features centralize shared build settings and library versions.

In plain words
What is it for?
It helps create shared build logic for Compose, Kotlin, Hilt, and similar settings, structure a separate build-logic module, and keep library versions in one catalog.
Why use it?
It removes repeated configuration from individual modules and makes dependency and build-option changes easier to manage consistently.

Skill for Claude CodeCodex

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

Good fit It helps create shared build logic for Compose, Kotlin, Hilt, and similar settings, structure a separate build-logic module, and keep library versions in one catalog.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/new-silvermoon/awesome-android-agent-skills/android-gradle-logic
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 new-silvermoon/awesome-android-agent-skills --skill android-gradle-logic
Clone the repo
git clone --depth 1 https://github.com/new-silvermoon/awesome-android-agent-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/new-silvermoon/awesome-android-agent-skills/android-gradle-logic/github.svg)](https://agentmods.dev/skills/new-silvermoon/awesome-android-agent-skills/android-gradle-logic)
Your own site
<a href="https://agentmods.dev/skills/new-silvermoon/awesome-android-agent-skills/android-gradle-logic"><img src="https://agentmods.dev/badge/skills/new-silvermoon/awesome-android-agent-skills/android-gradle-logic/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-gradle-logic

Your own site · 80×15
<a href="https://agentmods.dev/skills/new-silvermoon/awesome-android-agent-skills/android-gradle-logic"><img src="https://agentmods.dev/badge/skills/new-silvermoon/awesome-android-agent-skills/android-gradle-logic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 779 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. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00024 $0.00779
Opus 5.5 $0.00010 $0.00312
Sonnet 5.5 $0.00005 $0.00156
Haiku 4.5 $0.00002 $0.00078

Measured 2mo ago against content hash 592c032fb523, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

android-gradle-logic 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 2mo 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.

.github/skills/build_and_tooling/android-gradle-logic/SKILL.md · 127 lines

How it starts

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

Android Gradle Build Logic & Convention Plugins

This skill helps you configure a scalable, maintainable build system for Android apps using Gradle Convention Plugins and Version Catalogs, following the "Now in Android" (NiA) architecture.

Goal

Stop copy-pasting code between build.gradle.kts files. Centralize build logic (Compose setup, Kotlin options, Hilt, etc.) in reusable plugins.

Project Structure

Ensure your project has a build-logic directory included in settings.gradle.kts as a composite build.

root/
├── build-logic/
│   ├── convention/
│   │   ├── src/main/kotlin/
│   │   │   └── AndroidApplicationConventionPlugin.kt
│   │   └── build.gradle.kts
│   ├── build.gradle.kts
│   └── settings.gradle.kts
├── gradle/
│   └── libs.versions.toml
├── app/
│   └── build.gradle.kts
└── settings.gradle.kts

Step 1: Configure settings.gradle.kts

Include the build-logic as a plugin management source.

// settings.gradle.kts
pluginManagement {
    includeBuild("build-logic")
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
    }
}

Step 2: Define Dependencies in libs.versions.toml

Use the Version Catalog for both libraries and plugins.

[versions]
androidGradlePlugin = "8.2.0"
kotlin = "1.9.20"

[libraries]
# ...

[plugins]
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
# Define your own plugins here
nowinandroid-android-application = { id = "nowinandroid.android.application", version = "unspecified" }

Step 3: Create a Convention Plugin

Inside build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt:

Read the full file on GitHub · 127 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. 2mo ago First seen · 127 lines · 24 tokens per session scan A 592c032fb523

Subscribe to this mod's changes

android-gradle-logic is a skill published in the GitHub repository new-silvermoon/awesome-android-agent-skills (1,000 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 24 tokens to every session and 779 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

android-gradle-logic compared with skills from other repositories

android-gradle-logic next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
android-gradle-logicnew-silvermoon/awesome-android-agent-skillsSkill1.0k3mo agoApache-2.0A24Claude Code, Codex
orca-emulator-androidstablyai/orcaSkill117kyesterdayMITA102Claude Code, Codex
glance-canonical-layoutsandroid/skillsSkill10kyesterdayApache-2.0A56Claude Code
android-tombstone-symbolicationdotnet/skillsSkill5.8kyesterdayMITA176Claude Code
dogfoodcallstack/agent-deviceSkill5.3kyesterdayMITA55Claude Code
winapp-mauimicrosoft/winappCliSkill1.4kyesterdayMITA68Claude Code
app_remixrome-os/romeSkill889todayMITA50Claude Code, Codex