skills/kotlin-deep-logic-coroutines/SKILL.md
Deep Kotlin logic workflow for use-cases, repositories, ViewModels, Flow/coroutine orchestration, and compact architecture-safe refactors. Use when implementing non-trivial business rules, fixing coroutine race/cancellation issues, reducing logic complexity, or enforcing clean layered boundaries in Android Kotlin code.
npx skillsauth add envy-7z/mobile-agent-skillpack kotlin-deep-logic-coroutinesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Implement Kotlin logic that is compact, testable, and coroutine-safe by separating contracts, orchestration, and side effects.
sealed class, Result, domain error types).coroutineScope, supervisorScope) by need.Use this structure in responses:
# Kotlin Logic Plan
## Problem
- Current behavior:
- Expected behavior:
## Layer Placement
- UI:
- Domain:
- Data:
## Coroutine Design
- Scope model:
- Dispatcher boundaries:
- Error/cancellation strategy:
## Minimal Refactor Plan
1. ...
2. ...
## Verification
- Unit tests:
- Flow/state checks:
scripts/kotlin_logic_snapshot.sh <repo_root> to find large/high-risk Kotlin logic files.references/coroutine-logic-rubric.md for scoring complexity and safety.development
Use when you have a spec or requirements for a multi-step task, before touching code
data-ai
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
tools
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
testing
Applies Kent Beck's Thinkies—pattern-based thinking habits that generate ideas. Use when stuck, exploring alternatives, or reframing decisions.