krutikjain avatar

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-code

Installs 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-sync
  • android-security-best-practices

Workflow

  1. Confirm the data source, persistence boundary, sync model, and device capability involved.
  2. Model contracts explicitly before wiring network, storage, media, or background APIs.
  3. Apply the recommended AndroidX or platform pattern with migration-safe defaults.
  4. Validate offline, retry, and process death behavior against the sample apps and scenarios.
  5. 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

More from krutikjain/android-agent-skills

All 8
1cinience avataralicloud-security-kms-testcinience/alicloud-skillsMinimal smoke test for KMS skill. Validate auth and read-only key listing path.295skills.sh installs
2cinience avataralicloud-observability-sls-log-query-testcinience/alicloud-skillsMinimal smoke test for SLS log query skill. Validate SDK auth and one bounded query.294skills.sh installs
3mvanhorn avatarpp-docker-hubmvanhorn/printing-press-libraryPrinting Press CLI for Docker Hub. Docker Hub public API. Search container images, browse tags, check sizes, inspect Dockerfiles, and explore the...292skills.sh installs
4merit-systems avatarsocial-scrapingmerit-systems/agentcash-skillsScrape social media profiles, posts, comments, followers, and search across 4 platforms via x402. USE FOR: - Getting TikTok, Instagram, Facebook, or Reddit prof291skills.sh installs
5patricio0312rev avatarbackup-restore-runbook-generatorpatricio0312rev/skillsCreates comprehensive disaster recovery procedures with automated backup scripts, restore procedures, validation checks, and role assignments. Use for "database291skills.sh installs
6abcfed avatartapdabcfed/claude-marketplaceTAPD 敏捷研发管理平台集成。使用脚本调用 TAPD API,实现需求、缺陷、任务、迭代、测试用例、Wiki 等实体管理。使用场景包括:(1) 查询/创建/更新需求、缺陷、任务、迭代 (2) 管理测试用例和 Wiki (3) 管理评论和工时 (4) 关联需求与缺陷 (5) 获取源码提交关键字290skills.sh installs