Use the backing-property pattern: `private val _state = MutableStateFlow(initial)` and `val state = _state.asStateFlow()`. The public surface is read-only and mutation stays in the ViewModel; avoid a public `var` and minimize public visibility.
Scanned 9/5/2026
Install to Claude Code
npx -y skills add HoangNguyen0403/agent-skills-standard --skill kotlin-best-practices --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Kotlin Best Practices?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-kotlin-best-practices-2a3c1ed7)More formats (shields.io, HTML) on the badges page.
Use the backing-property pattern: `private val _state = MutableStateFlow(initial)` and `val state = _state.asStateFlow()`. The public surface is read-only and mutation stays in the ViewModel; avoid a public `var` and minimize public visibility.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.