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
interfacewithsuspend funreturning DTOs. - Add
HttpLoggingInterceptoronly for debug builds. - Map DTOs to domain models in the repository layer.
- Handle
HttpExceptionandIOExceptionexplicitly; expose a sealedResulttype.
Reviews
Sign in to leave a review.
No reviews yet. Be the first!
Discussion(0)
Sign in to join the discussion.
No comments yet.