Android Networking Standards
SkillSecurityIntegrate Retrofit, OkHttp, and Kotlinx Serialization for type-safe API communication in Android. Use when building API clients, adding interceptors, or configuring network security—not standalone MockWebServer or API-test setup.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Android Networking Standards skill
What this skill tells your AI
The instructions your AI receives, as published by hoangnguyen0403/agent-skills-standard in skills/android/android-networking/SKILL.md and read by ahel’s review.
Priority: P0 (CRITICAL)
1. Configure HTTP Stack
- Use Retrofit 2 with OkHttp 4 for all backend communication.
- Use Kotlinx Serialization with
@SerialNamefor JSON field mapping. - Implement Certificate Pinning for sensitive production domains.
See setup & wrappers for DTO and API examples.
2. Define API Endpoints
- All API calls must
suspendfunctions. - Declare endpoints only in API interface — handle errors in Repository.
See setup & wrappers for API endpoint definitions.
3. Add Cross-Cutting Concerns
- Use OkHttp Interceptors for
Bearer tokeninjection andHttpLoggingInterceptor(debug only). - Wrap responses with
Resultwrapper orEitherin Repository layer. - Define R8/ProGuard rules for Retrofit/OkHttp when
isMinifyEnabled = true. - Use MockWebServer for unit/integration tests — cover 500, 401, 403 error cases.
Anti-Patterns
- No Blocking Network Calls: All API functions must suspend.
- No Logic in API Interface: Only declare endpoints — handle errors in Repository.
- No Raw Converter Factory: Explicitly set "application/json" MediaType with kotlinx.serialization.
References
Signals
- GitHub stars
- 565
- Forks
- 163
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
android-networking- Source
- github.com/hoangnguyen0403/agent-skills-standard