If you're tired of copying the same Gradle configuration across every Android module, this walks you through setting up Convention Plugins and Version Catalogs the way Now in Android does it. You'll create a `build-logic` composite build with reusable plugins that centralize things like Compose setup, Kotlin options, and target SDK configuration. The examples are concrete, showing exactly where files go and how to register plugins in `gradlePlugin` blocks. It's aimed at teams scaling beyond a single module app who want to stop maintaining duplicate build logic. The approach adds upfront structure but pays off once you have more than a handful of modules.

skills.sh installs
738
GitHub stars
1K
last updated
Aug 21, 2026

Install

$ npx -y skills add new-silvermoon/awesome-android-agent-skills --skill android-gradle-logic --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

Sponsors

Details

Repository
github.com/new-silvermoon/awesome-android-agent-skills
Categories
DevOps & CI/CD, Code Review & Quality, AI & Agent Building, Release Management, Mobile Development, Java & JVM
First seen
Jun 3, 2026

More from new-silvermoon/awesome-android-agent-skills

All 17
1zxkane avataraws-serverless-edazxkane/aws-skillsAWS serverless and event-driven architecture expert based on Well-Architected Framework. Use when building serverless APIs, Lambda functions, REST APIs, microse738skills.sh installs
2ruvnet avataradr-indexruvnet/rufloBuild or rebuild the ADR index + dependency graph by running scripts/import.mjs (handles v3-style and plugin-style ADR formats; one Bash call vs hundreds of MCP737skills.sh installs
3posit-dev avatarr-cli-appposit-dev/skillsBuild command-line apps in R using the Rapp package. Use when creating a CLI tool in R, adding argument parsing to an R script, turning an R script into a comma736skills.sh installs
4syncfusion avatarsyncfusion-react-dashboard-layoutsyncfusion/react-ui-components-skillsBuild responsive, interactive dashboard layouts with Syncfusion React Dashboard Layout component. Implement draggable and resizable panels, responsive grid syst735skills.sh installs
5syncfusion avatarsyncfusion-react-pivot-tablesyncfusion/react-ui-components-skillsUse this skill when users ask how to build or customize Syncfusion PivotView pivot tables in React. Trigger for React pivot grid/OLAP, aggregation, data binding734skills.sh installs
621st-dev avataragent-elements21st-dev/agent-elementsUse whenever the user wants to build or modify a chat, agent, or tool-calling UI in a React 19 + Tailwind v4 project — especially if the code imports from `@/co733skills.sh installs