skills/mobile-modern-clean-architecture/SKILL.md
Modern clean architecture workflow for Android (Kotlin, Compose/XML, coroutines) and Flutter (Dart, widget/state architecture). Use when designing new features, refactoring legacy modules, auditing code quality, or upgrading architecture and async patterns with low-risk, incremental changes.
npx skillsauth add envy-7z/mobile-agent-skillpack mobile-modern-clean-architectureInstall 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.
Audit and improve Android/Flutter projects using modern architecture boundaries, coroutine/async safety, and compact maintainable code patterns. Default to stability-first behavior and skip risky modernization when evidence is insufficient.
SAFE.SAFE mode, do only low-risk, incremental changes with clear rollback.NO-CHANGE and provide a safer next step instead of patching.safe-refactor-guard rules as mandatory constraints unless user explicitly requests broader refactor.scripts/mobile_modern_snapshot.sh <repo_root>.NO-CHANGE.StateFlow/single source of truth).GlobalScope; prefer lifecycle/owner scopes.Use this structure:
# Modernization Report
## Safety Decision
- GO-SAFE | NO-CHANGE
- Confidence:
- Reason:
## Current State
- Android findings:
- Flutter findings:
## Top Risks
1. ...
## Priority Plan
1. [Now] ...
2. [Next] ...
3. [Later] ...
## Minimal Patch Scope
- Files:
- Boundary preserved:
## Verification
- Commands:
- Expected signals:
scripts/mobile_modern_snapshot.shreferences/android-modern-checklist.mdreferences/flutter-modern-checklist.mdreferences/stability-gate.mddevelopment
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.