
Android Networking Retrofit Okhttp
This covers the full stack of Android HTTP clients: wiring up Retrofit with OkHttp, building interceptors for auth and logging, mapping API errors to domain types, and handling retries without blocking the main thread. It pushes you to separate wire models from cache models and keep networking logic out of your UI layer. The workflow starts by confirming your data source and sync model before you write any code, which saves you from the classic mistake of treating every network failure like a crash. If you're still mixing Gson maps directly into ViewModels or wondering why your app ANRs on poor connections, this will get you to a cleaner architecture with actual offline-first patterns.
- skills.sh installs
- 296
- GitHub stars
- 14
- last updated
- Aug 21, 2026
Install
$ npx -y skills add krutikjain/android-agent-skills --skill android-networking-retrofit-okhttp --agent claude-codeInstalls into .claude/skills of the current project.
Files
Android Networking Retrofit OkHttp
When To Use
- Use this skill when the request is about: retrofit android setup, okhttp interceptor android, api error mapping android.
- Primary outcome: Build Android networking stacks with Retrofit, OkHttp, interceptors, API contracts, and resilient error handling.
- Handoff skills when the scope expands:
android-serialization-offline-syncandroid-security-best-practices
Workflow
- Confirm the data source, persistence boundary, sync model, and device capability involved.
- Model contracts explicitly before wiring network, storage, media, or background APIs.
- Apply the recommended AndroidX or platform pattern with migration-safe defaults.
- Validate offline, retry, and process death behavior against the sample apps and scenarios.
- Escalate security, performance, or release risk to the linked supporting skills when needed.
Sponsors
Details
- Repository
- github.com/krutikjain/android-agent-skills
- Categories
- Backend & APIs, DevOps & CI/CD, AI & Agent Building, Debugging, Mobile Development
- First seen
- Jun 3, 2026