roninforge/roninforge-kotlin-compose/compose-modernize-build
Claude Code and agent skill by roninforge/roninforge-kotlin-compose
- community
Checking that the SKILL.md file is still in the repository.
Modernize an Android project's Gradle build: bump to Kotlin 2.x with kotlin-compose plugin (replace kotlinCompilerExtensionVersion), migrate kapt to KSP, introduce Version Catalogs (libs.versions.toml), use the Compose BOM, switch to Material 3.
Install
npx vskill@latest install roninforge/roninforge-kotlin-compose/compose-modernize-buildSKILL.md
The same SKILL.md was published earlier as roninforge/roninforge-kotlin-compose/compose-modernize-build.
Modernize Android Build
When to Use
When inheriting an Android project on Kotlin 1.9 / Compose Compiler 1.5.x with manual version pinning, and bringing it forward to Kotlin 2.x with kotlin-compose plugin + Version Catalogs.
Instructions
Apply in order. Sync Gradle and build the project after each step.
Step 1: Create libs.versions.toml
gradle/libs.versions.toml:
Step 2: Update the root build.gradle.kts
Step 3: Module build.gradle.kts - replace composeOptions with kotlin-compose plugin
Step 4: kapt to KSP
Remove any kapt { correctErrorTypes = true } blocks and the kotlin-kapt plugin.
Step 5: Compose BOM for version alignment
Remove individual version pins on androidx.compose.* artifacts - the BOM provides them.
Step 6: Material 2 to Material 3
Verify the swap compiles. Some component names differ (TopAppBar API changed, IconButton parameters renamed). Adjust per the Material 3 docs.
In dependencies, swap:
Step 7: targetSdk / compileSdk bump
Required by the Play Store from August 2026 onward.
Step 8: Verify
Sync the IDE, confirm builds, run tests.
Anti-patterns to avoid
- Do not pin
composeCompilerseparately after applyingkotlin-compose- the plugin owns the version. - Do not mix
kaptandkspfor the same annotation processor - pick one (ksp). - Do not leave version literals in module
build.gradle.ktsafter introducing the catalog. The whole point is single-source-of-truth. - Do not migrate Material 2 to Material 3 module-by-module if multiple modules import the same screen - the runtime will pick one and components will look subtly broken.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/compose-modernize-build/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/roninforge/roninforge-kotlin-compose/compose-modernize-build)