Android state

From HoangNguyen0403/agent-skills-standard · View interactive version

Android state is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Configure ViewModel state emission with StateFlow, SharedFlow, and sealed UiState classes in Android. Use for state modeling and sharing policies; defer generic lifecycle collection, navigation-event plumbing, Hilt injection, test code, and configuration-change recipes to their specific skills.

How to use this skill

Skill file

Android State Management

**Priority: P0 (CRITICAL)**

1. Structure ViewModel

See templates for ViewModel and UiState examples.

2. Define UI State (LCE Pattern)

See templates for sealed UiState pattern.

3. Collect State Lifecycle-Safely

Anti-Patterns

Verification

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.