android-networking

android-networking is a skill for Claude Code, Codex from noloman/Android-AI-skills. It costs 0 tokens per session (358 once invoked), scanned A, original, MIT.

A set of Android networking guidelines for Retrofit, OkHttp, Ktor, caching, error handling, timeouts, and resilience. Retrofit and Ktor are libraries for calling web services; OkHttp handles the underlying connections.

In plain words
What is it for?
Use it when building or reviewing Android or Kotlin Multiplatform network calls, API interfaces, authentication, caching, timeouts, and production logging.
Why use it?
It helps avoid blocked user interfaces, hidden HTTP errors, unsafe logging, insecure connections, and unreliable token or retry handling.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building or reviewing Android or Kotlin Multiplatform network calls, API interfaces, authentication, caching, timeouts, and production logging.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/noloman/android-ai-skills/android-networking
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 noloman/Android-AI-skills --skill android-networking
Clone the repo
git clone --depth 1 https://github.com/noloman/Android-AI-skills

Made for: Claude Code, 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

README.md
[![agentmods](https://agentmods.dev/badge/skills/noloman/android-ai-skills/android-networking.svg)](https://agentmods.dev/skills/noloman/android-ai-skills/android-networking)
Your own site
<a href="https://agentmods.dev/skills/noloman/android-ai-skills/android-networking"><img src="https://agentmods.dev/badge/skills/noloman/android-ai-skills/android-networking.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 358 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.00000 $0.00358
Opus 5 $0.00000 $0.00179
Sonnet 5 $0.00000 $0.00072
Haiku 4.5 $0.00000 $0.00036

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

Security

Grade A, and why

android-networking 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.

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.

android-networking/SKILL.md · 40 lines

What it actually says


name: android-networking description: Android networking — Retrofit, OkHttp, Ktor, caching, error handling, resilience. user-invocable: true

Android Networking

Cross-cutting skill — always activates alongside the project-type-specific skill.

Hard Rules

  • Use Retrofit (Android-only) or Ktor (KMP) as the HTTP client — not raw HttpURLConnection.
  • Define API interfaces with suspend functions — no blocking calls.
  • Handle all HTTP error codes explicitly — do not swallow non-2xx responses.
  • Use OkHttp interceptors for cross-cutting concerns (auth, logging, headers).
  • Never log request/response bodies in production — sensitive data exposure risk.
  • Set connect, read, and write timeouts explicitly — do not rely on defaults.
  • Use kotlinx.serialization or Moshi for JSON — not Gson (reflection-based, slower).
  • All network calls must happen off the main thread.
  • Use HTTPS for all endpoints — no cleartext traffic.
  • Implement token refresh in OkHttp Authenticator — not in individual API calls.

Core Patterns

  • Single OkHttpClient instance shared across Retrofit services.
  • Logging interceptor for debug builds only (HttpLoggingInterceptor.Level.BODY).
  • Auth interceptor adds Bearer token; Authenticator handles 401 refresh.
  • Wrap API responses in Result or sealed class for error propagation.
  • Use @Headers for static headers, @Header for dynamic per-request headers.
  • Repository layer transforms API DTOs to domain models.

References

  • references/retrofit_setup.md
  • references/okhttp_interceptors.md
  • references/error_handling.md
  • references/caching.md
  • references/ktor_multiplatform.md
  • references/advanced_patterns.md
  • references/testing.md
Files

What ships with it

7 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 · 40 lines · 0 tokens per session scan A 4dc06af2a52f

Subscribe to this mod's changes

android-networking is a skill published in the GitHub repository noloman/Android-AI-skills (6 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 358 tokens. 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-08-31.

Related

Other skills, from other repositories

build-zoom-contact-center-app

Reference skill for Zoom Contact Center. Use after routing to a contact-center workflow when implementing app, web, or native integrations; engagement context and state handling; campaigns; callbacks; or version-drift troubleshooting.

anthropics/knowledge-work-plugins · 48 tokens

add-signal

Add Signal channel integration via signal-cli device-link. Native adapter — no Chat SDK bridge.

nanocoai/nanoclaw · 22 tokens

build-zoom-meeting-app

Build or embed a Zoom meeting flow. Use when implementing Meeting SDK joins, web or mobile meeting embeds, meeting lifecycle flows, or when deciding between Meeting SDK and Video SDK.

anthropics/knowledge-work-plugins · 42 tokens

feature-flag-policy

Cargo feature flags for crates/xberg — ORT-incompatible targets (WASM, Android x8664 emulator), type-only and tract inference companion features, WASM/Android-safe variants, PDF backend, mutually-exclusive ORT variants, platform-conditional deps, aggregate feature sets, and build profiles. Load when adding, wiring, or…

xberg-io/xberg · 98 tokens

flutter-use-http-package

Use the http package to execute GET, POST, PUT, or DELETE requests. Use when you need to fetch from or send data to a REST API.

flutter/agent-plugins · 38 tokens

at_client_skills-sdk

Use this skill when a developer is building a Dart or Flutter app that depends on atclient or atclientflutter from pub.dev, stores or shares data via the Atsign Protocol, needs onboarding (CRAM new-atsign, atKeys file, keychain, APKAM) or APKAM enrollment, or asks about AtCollection , CItem , Query , sub-collections…

atsign-foundation/at_client_sdk · 232 tokens