android-development
Skill266 starsChanged 10 months agoApache-2.0View on GitHub
Android development guidelines for Kotlin with clean architecture, MVI pattern, Material Design, and best practices for building robust mobile applications
6 other projects use a version of this.
Adopted by
Most recently taken up by
- rinkuniks/android-claude-skilltheir own version, first seen Aug 9, 2026
- rajedev/AIWeatherApptheir own version, first seen Jul 24, 2026
- AntonPieper/ai-skillstheir own version, first seen Mar 27, 2026
- wzcxbg/develop-agent-skillstheir own version, first seen Feb 26, 2026
- travisjneuman/.claudetheir own version, first seen Feb 25, 2026
- dpconde/claude-android-skilltheir own version, first seen Dec 7, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- dpconde/claude-android-skill★ 335same name
- travisjneuman/.claude★ 101same name
- rinkuniks/android-claude-skill★ 4same name
- wzcxbg/develop-agent-skills★ 1same name
- AntonPieper/ai-skills★ 0same name
- rajedev/AIWeatherApp★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository264 other files it gives its agents.
- accessibility-a11ySkill
- alpine-jsSkill
- analytics-data-analysisSkill
- angular-developmentSkill
- angularSkill
- anime-jsSkill
- anthropic-claude-developmentSkill
- api-developmentSkill
- apollo-graphqlSkill
- aspnet-coreSkill
- astroSkill
- auth0-authenticationSkill
- autogen-developmentSkill
- automl-hyperparameter-optimizationSkill
- aws-developmentSkill
- azureSkill
- backend-developmentSkill
- bash-scriptingSkill
- beautifulsoup-parsingSkill
- bitbucket-workflowSkill
- blazorSkill
- blender-python-addonSkill
- blockchainSkill
- bootstrapSkill
- business-central-developmentSkill
- cheerio-parsingSkill
- chrome-extension-developmentSkill
- ci-cd-best-practicesSkill
- clean-architectureSkill
- clean-codeSkill
- clerk-authenticationSkill
- cloudflare-developmentSkill
- computer-vision-opencvSkill
- convexSkill
- cppSkill
- c-sharpSkill
- cssSkill
- cypressSkill
- data-analysis-jupyterSkill
- data-analystSkill
- data-jupyter-pythonSkill
- deep-learning-pythonSkill
- deep-learning-pytorchSkill
- deep-learningSkill
- deno-typescriptSkill
- design-systemsSkill
- devopsSkill
- django-pythonSkill
- django-rest-api-developmentSkill
- dockerSkill
- dotnetSkill
- drizzle-ormSkill
- drupal-developmentSkill
- elasticsearch-best-practicesSkill
- electron-developmentSkill
- elixirSkill
- embedded-stm32Skill
- esbuild-bundlerSkill
- ethereumSkill
- expo-react-native-javascript-best-practicesSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. 0 are common, 30 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
30
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use English for all code and documentation
- Distinctive: line 12
Always declare variable and function types explicitly
- Very specific: line 13
Avoid the any type; create necessary custom types
- Distinctive: line 21
Avoid magic numbers; define constants instead
- Distinctive: line 26
Keep functions under 20 instructions with single responsibility
- Distinctive: line 31
Use default parameters instead of null checks
- Distinctive: line 38
Follow SOLID principles; prefer composition over inheritance
- Distinctive: line 39
Keep classes under 200 instructions, 10 public methods, 10 properties
- Distinctive: line 44
Create custom exception types for domain errors
- Distinctive: line 50
Use repository pattern for data persistence and caching
- Distinctive: line 51
Keep business logic in Use Cases or Interactors
- Distinctive: line 68
Keep side effects predictable and traceable
- Distinctive: line 73
Use Navigation Component for fragment and activity routing
- Distinctive: line 80
Use BottomNavigationView for main destinations (Home, Profile, Settings, etc.)
- Distinctive: line 84
Use ViewBinding for type-safe view access
- Distinctive: line 85
Use Flow or LiveData for UI state management
- Distinctive: line 90
Prefer XML layouts and Fragments over Jetpack Compose (unless Compose is specifically required)
- Distinctive: line 91
Use ConstraintLayout for complex layouts
- Distinctive: line 93
Follow responsive design practices for different screen sizes
- Distinctive: line 102
Verify Email Screen - Email verification
- Distinctive: line 108
Test ViewModels, Use Cases, and Repositories
- Distinctive: line 109
Use test doubles for dependencies
- Distinctive: line 114
Write integration tests for API modules
- Distinctive: line 116
Use Espresso for instrumented tests
- Distinctive: line 122
Avoid memory leaks from improper lifecycle handling
- Distinctive: line 126
Use Coroutines for async operations
- Distinctive: line 128
Use WorkManager for deferrable background work
- Distinctive: line 131
Use Hilt or Dagger for dependency injection
- Distinctive: line 133
Keep DI configuration organized
- Distinctive: line 136
Avoid work on the main thread
- Distinctive: line 138
Use lazy loading for heavy resources
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Android Development Best Practices
General Kotlin Guidelines
Basic Principles
- Use English for all code and documentation
- Always declare variable and function types explicitly
- Avoid the
anytype; create necessary custom types - Eliminate blank lines within function bodies
Naming Standards
- PascalCase: Classes, interfaces, enums
- camelCase: Variables, functions, methods
- underscores_case: Files and directories
- UPPERCASE: Environment variables, constants
- Avoid magic numbers; define constants instead
- Functions should start with action verbs
- Boolean variables use prefixes:
isLoading,hasError,canDelete
Function Design
- Keep functions under 20 instructions with single responsibility
- Use verb-based naming
- Prefix boolean returns with
is,has, orcan - Prefix void returns with
execute,save,send - Combat nesting through early returns, utility extraction, and higher-order functions
- Use default parameters instead of null checks
- Consolidate parameters into objects (RO-RO pattern)
Data and Classes
- Employ data classes for data structures
- Encapsulate primitives in composite types; validate internally
- Favor immutability; use
valfor unchanging values - Follow SOLID principles; prefer composition over inheritance
- Keep classes under 200 instructions, 10 public methods, 10 properties
Exception Handling
- Reserve exceptions for unexpected errors
- Catch exceptions only to fix anticipated issues or add context
- Create custom exception types for domain errors
Android Architecture
Clean Architecture
- Implement clean architecture with clear layer separation
- Use repository pattern for data persistence and caching
- Keep business logic in Use Cases or Interactors
- Separate concerns between UI, domain, and data layers
Project Structure
app/
├── data/ # Data sources, repositories, models
├── domain/ # Use cases, domain models, interfaces
├── presentation/ # UI components, ViewModels, state
└── di/ # Dependency injection modulesMVI Pattern
- Deploy MVI pattern for state and event management
- ViewModels manage UI state as a single immutable state object
- UI components observe state and render accordingly
- Handle user intents/events through a single entry point
- Keep side effects predictable and traceable
UI Development
Navigation
- Use Navigation Component for fragment and activity routing
- Define navigation graph for app flow
- Handle deep links through Navigation Component
- Implement safe args for type-safe navigation arguments
Main Activity Structure
- MainActivity manages primary navigation
- Use BottomNavigationView for main destinations (Home, Profile, Settings, etc.)
- Handle navigation state properly across configuration changes
View Binding and State
- Use ViewBinding for type-safe view access
- Use Flow or LiveData for UI state management
- Observe state changes in lifecycle-aware manner
- Handle loading, error, and success states consistently
UI Framework Preferences
- Prefer XML layouts and Fragments over Jetpack Compose (unless Compose is specifically required)
- Use ConstraintLayout for complex layouts
- Apply Material 3 design guidelines
- Follow responsive design practices for different screen sizes
Authentication Flow
Structure authentication screens properly:
- Splash Screen - Initial app launch
- Login Screen - User authentication
- Register Screen - New user registration
- Forgot Password Screen - Password recovery
- Verify Email Screen - Email verification
Testing
Unit Testing
- Follow Arrange-Act-Assert conventions
- Test ViewModels, Use Cases, and Repositories
- Use test doubles for dependencies
- Achieve good coverage of business logic
UI Testing
- Implement widget testing for UI components
- Write integration tests for API modules
- Test navigation flows
- Use Espresso for instrumented tests
Best Practices
Lifecycle Management
- Handle lifecycle events properly
- Avoid memory leaks from improper lifecycle handling
- Use lifecycle-aware components
Background Processing
- Use Coroutines for async operations
- Handle cancellation properly
- Use WorkManager for deferrable background work
Dependency Injection
- Use Hilt or Dagger for dependency injection
- Scope dependencies appropriately
- Keep DI configuration organized
Performance
- Avoid work on the main thread
- Optimize RecyclerView with DiffUtil
- Use lazy loading for heavy resources
- Profile and optimize memory usage
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

