Skip to content
OpenSmartRoute
Skillv1.0.0

android-networking-retrofit-okhttp

Build Android networking stacks with Retrofit, OkHttp, interceptors, API contracts, and resilient error handling.

by krutikjain(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from krutikjain/android-agent-skills (skills/android-networking-retrofit-okhttp/SKILL.md). Install upstream with npx skills add krutikjain/android-agent-skills --skill android-networking-retrofit-okhttp. Copyright stays with the author.

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

Done Checklist

  • The implementation path is explicit, minimal, and tied to the right Android surface.
  • Relevant example commands and benchmark prompts have been exercised or updated.
  • Handoffs to adjacent skills are documented when the request crosses boundaries.
  • Official references cover the chosen pattern and the main migration or troubleshooting path.

Official References

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/krutikjain-android-agent-skills-android-networking-retro-af81b9/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

krutikjain-android-agent-skills-android-networking-retro-af81b9.ocm.jsonjson
{
  "ocm": "1",
  "id": "krutikjain-android-agent-skills-android-networking-retro-af81b9",
  "kind": "skill",
  "name": "android-networking-retrofit-okhttp",
  "description": "Build Android networking stacks with Retrofit, OkHttp, interceptors, API contracts, and resilient error handling.",
  "publisher": "krutikjain",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "android",
      "networking",
      "retrofit",
      "okhttp",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Build Android networking stacks with Retrofit, OkHttp, interceptors, API contracts, and resilient error handling."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/krutikjain/android-agent-skills",
      "path": "skills/android-networking-retrofit-okhttp/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/krutikjain/android-agent-skills/blob/HEAD/skills/android-networking-retrofit-okhttp/SKILL.md",
      "key": "krutikjain/android-agent-skills/skills/android-networking-retrofit-okhttp/SKILL.md"
    }
  },
  "instructions": "# Android Networking Retrofit OkHttp\n\n## When To Use\n- Use this skill when the request is about: retrofit android setup, okhttp interceptor android, api error mapping android.\n- Primary outcome: Build Android networking stacks with Retrofit, OkHttp, interceptors, API contracts, and resilient error handling.\n- Handoff skills when the scope expands:\n- `android-serialization-offline-sync`\n- `android-security-best-practices`\n\n## Workflow\n1. Confirm the data source, persistence boundary, sync model, and device capability involved.\n2. Model contracts explicitly before wiring network, storage, media,",
  "cost": {
    "context_tokens": 740
  }
}

Fetch it by URL: GET /api/v1/registry/krutikjain-android-agent-skills-android-networking-retro-af81b9/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.