android-networking-retrofit-okhttp

android-networking-retrofit-okhttp is a skill for Codex from krutikJain/android-agent-skills. It costs 30 tokens per session (774 once invoked), scanned A, original, MIT.

Guidance for connecting an Android app to web services using Retrofit and OkHttp. It covers API data contracts, request interceptors, and handling network errors.

In plain words
What is it for?
Use it to build API clients, map server responses and errors, add request behavior, and support retries or cancellation safely.
Why use it?
It helps keep network code structured and makes failures such as timeouts, invalid responses, and server errors predictable.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to build API clients, map server responses and errors, add request behavior, and support retries or cancellation safely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/krutikjain/android-agent-skills/android-networking-retrofit-okhttp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add krutikJain/android-agent-skills --skill android-networking-retrofit-okhttp
Clone the repo
git clone --depth 1 https://github.com/krutikJain/android-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for android-networking-retrofit-okhttp

README.md
[![agentmods](https://agentmods.dev/badge/skills/krutikjain/android-agent-skills/android-networking-retrofit-okhttp/github.svg)](https://agentmods.dev/skills/krutikjain/android-agent-skills/android-networking-retrofit-okhttp)
Your own site
<a href="https://agentmods.dev/skills/krutikjain/android-agent-skills/android-networking-retrofit-okhttp"><img src="https://agentmods.dev/badge/skills/krutikjain/android-agent-skills/android-networking-retrofit-okhttp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for android-networking-retrofit-okhttp

Your own site · 80×15
<a href="https://agentmods.dev/skills/krutikjain/android-agent-skills/android-networking-retrofit-okhttp"><img src="https://agentmods.dev/badge/skills/krutikjain/android-agent-skills/android-networking-retrofit-okhttp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 774 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00774
Opus 5 $0.00015 $0.00387
Sonnet 5 $0.00006 $0.00155
Haiku 4.5 $0.00003 $0.00077

Measured 7d ago against content hash 9b420c871c5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

android-networking-retrofit-okhttp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run_examples.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/android-networking-retrofit-okhttp/SKILL.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Guardrails

  • Prefer typed models and explicit serializers over ad-hoc maps or bundles.
  • Keep background work idempotent and cancellation-aware.
  • Do not leak storage, media, or networking details into presentation code.
  • Treat user data durability, privacy, and migration paths as part of the implementation.

Anti-Patterns

  • Blocking the main thread with disk or network calls.
  • Treating retryable sync failures as terminal user-facing errors.
  • Mixing cache models and wire models without a mapping layer.
  • Requesting broad storage or notification capabilities when a narrower API exists.

Examples

Happy path

  • Scenario: Model sync requests and network failures for task refresh.
  • Command: cd examples/orbittasks-compose && ./gradlew :app:testDebugUnitTest

Edge case

  • Scenario: Handle stale cache and retry behavior in the XML fixture.
  • Command: cd examples/orbittasks-xml && ./gradlew :app:testDebugUnitTest

Failure recovery

  • Scenario: Differentiate networking prompts from serialization, security, and offline-sync requests.
  • Command: python3 scripts/eval_triggers.py --skill android-networking-retrofit-okhttp

Read the full file on GitHub · 66 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 66 lines · 30 tokens per session scan A 9b420c871c5b

Subscribe to this mod's changes

android-networking-retrofit-okhttp is a skill published in the GitHub repository krutikJain/android-agent-skills (14 stars, last pushed 5mo ago), licensed MIT. It adds 30 tokens to every session and 774 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

maui-networking-offline-data

Build MAUI networking and offline data. USE FOR: typed HttpClient, JSON serialization, Android 10.0.2.2, iOS simulator localhost, LAN/dev-tunnel fallback, debug cleartext, offline-first screens, SQLite/EF Core sync metadata, queues, encryption decisions, retries, cancellation. DO NOT USE FOR: auth redirects, Aspire…

dotnet/maui-labs · 87 tokens

maui-aspire-client

Connect MAUI apps to Aspire-hosted APIs. USE FOR: AddServiceDiscovery, typed HttpClient, https+http://apiservice, missing AppHost config on devices, Android emulator 10.0.2.2, iOS simulator localhost, physical-device LAN/dev-tunnel fallbacks, dev certs, Bearer handlers, debug-only cleartext. DO NOT USE FOR: offline…

dotnet/maui-labs · 100 tokens

network-tracing

Instrument API requests with spans and distributed tracing. Use when tracking request latency, correlating client-backend traces, or debugging API issues.

nexus-labs-automation/mobile-observability · 31 tokens

navigate

Call the unintent tool with the following exact parameters.

vNeeL-code/GHOST · 6 tokens

cloudkit

Implement, review, or debug iCloud sync in iOS/macOS apps with CloudKit. Covers CKContainer + private/public/shared CKDatabase, CKRecord / CKRecord.Reference / CKAsset, CKQuery + CKQueryOperation, CKSubscription (query/database/recordZone) with silent push, CKSyncEngine (iOS 17+: state serialization…

TalissonVitorino/kmp-ios-skills · 209 tokens

offline-first

Offline-first architecture patterns - NetworkBoundResource, sync strategies, conflict resolution, cache invalidation, and connectivity monitoring.

TalissonVitorino/kmp-ios-skills · 26 tokens