kotlin-04-fix

Automates Android/Kotlin review fixes including ViewModel state separation and repository abstraction.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/tak-bro/claude-code --skill kotlin-04-fix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-04-fix
Source: https://github.com/tak-bro/claude-code/tree/main/skills/kotlin-04-fix
Command: npx skills add https://github.com/tak-bro/claude-code --skill kotlin-04-fix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Android/Kotlin review issues can accumulate, causing regressions; this skill standardizes fixes and enforces best practices to improve code quality.

Core Features & Use Cases

  • Critical fixes handling: move state management from UI (composables) to ViewModel, introduce immutable UiState, use repository pattern, proper scope usage.
  • Code quality improvements: enforce missing error handling, hard-coded strings replacement suggestions, removing GlobalScope usage, introducing test scaffolding and doc sync.
  • Use Case: When a Kotlin/Android code review identifies issues like UI logic in composables, lack of repository abstraction, or unsafe ViewModel usage, this skill provides steps to implement fixes and verify.

Quick Start

Run the Kotlin fix workflow on a review issue to apply critical fixes and verify with tests.

Frequently Asked Questions about kotlin-04-fix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix UI logic in Kotlin composables during an Android code review?

To fix UI logic in Kotlin composables, move state management to the ViewModel and introduce an immutable UiState. This enforces safe architecture by separating state from the UI layer and ensuring proper lifecycle-aware scopes.

How do I remove GlobalScope usage in my Kotlin Android code?

Remove GlobalScope usage by replacing it with proper lifecycle-aware scopes tied to the ViewModel. This prevents memory leaks and ensures asynchronous operations are safely managed during Android code review fixes.

What is the best way to implement the repository pattern in an Android Kotlin project?

The best way to implement the repository pattern is by abstracting data sources behind a repository interface. This standardizes data access, improves code quality, and enforces safe architecture in Kotlin codebases undergoing review.

Does this Android Kotlin fix workflow include regression verification steps?

Yes, the Android Kotlin fix workflow includes regression verification steps. It requires introducing test scaffolding and verifying applied critical fixes with tests to ensure changes do not cause regressions.

Can I use this skill to add missing error handling and replace hard-coded strings in Kotlin?

Yes, you can enforce missing error handling and receive hard-coded strings replacement suggestions. It applies these code quality improvements alongside critical architectural fixes in Kotlin Android codebases.