android-retrofit

Standardize Retrofit HTTP layers with Kotlin coroutines and Hilt.

1|Updated Sep 7, 2025
One-click install
npx skills add https://github.com/sahuadarsh0/Wallet --skill android-retrofit-sahuadarsh0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-retrofit
Source: https://github.com/sahuadarsh0/Wallet/tree/main/.cursor/skills/android-retrofit
Command: npx skills add https://github.com/sahuadarsh0/Wallet --skill android-retrofit-sahuadarsh0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Expert guidance for building reliable, type-safe HTTP networking in Android apps using Retrofit, standardizing service definitions, coroutines, and DI patterns.

Core Features & Use Cases

  • Type-safe Retrofit service definitions with clean coroutine-based suspend functions
  • OkHttp configuration, timeouts, interceptors, and error handling
  • Hilt integration for DI and scalable data layers across modules

Quick Start

Initialize Retrofit and DI in your app, then implement a sample service interface and call it to fetch data.

Frequently Asked Questions about android-retrofit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Retrofit with Kotlin coroutines for network requests?

Define type-safe Retrofit service interfaces using suspend functions for Kotlin coroutines. Configure OkHttp with appropriate timeouts and interceptors to handle network communication robustly.

How does Hilt integration work with Retrofit for dependency injection?

Hilt integration standardizes Retrofit dependency injection across Android modules. Wire Retrofit instances and service interfaces into your data layer to achieve scalable and testable HTTP network communication.

What is the best way to handle errors with Retrofit suspend functions in Android?

Robust error handling for Retrofit suspend functions requires standardizing OkHttp configurations and interceptors. This approach catches and manages network failures effectively during type-safe HTTP calls.

Can I configure OkHttp timeouts and interceptors for Retrofit in Android?

Configure OkHttp timeouts and interceptors to support robust error handling and reliable network communication for Android HTTP requests. This Skill provides guidance on setting up OkHttp to ensure reliable type-safe networking.

How do I make my Android Retrofit networking layer testable?

Standardize service definitions and utilize Hilt for dependency injection to make your Android Retrofit networking layer testable. This supports testable Retrofit patterns for reliable network communication across modules.