SKILL Instructions

Android Retrofit Networking

Type-safe HTTP with Retrofit + OkHttp

claude
cursor
#android
#retrofit
#okhttp
#network

About

Patterns for building a robust Retrofit client: interceptors, error mapping, and coroutine suspend functions.

Metadata (SKILL.md frontmatter)

name
android-retrofit-networking
version
1.0.0

Instructions

Retrofit

  • Define API as an interface with suspend fun returning DTOs.
  • Add HttpLoggingInterceptor only for debug builds.
  • Map DTOs to domain models in the repository layer.
  • Handle HttpException and IOException explicitly; expose a sealed Result type.